Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
NeuroCLI is an AI-powered command-line assistant that helps developers generate code, debug issues, and automate tasks directly from the terminal using natural language.
Jump to setup instructionsFetched from the repository for this visit.
A modern full-stack AI platform combining a powerful CLI tool with a beautiful web interface for seamless AI interactions
Features • Architecture • Quick Start • Documentation • CLI Usage
Neuro-CLI is a comprehensive AI-powered platform that provides multiple interfaces for interacting with advanced AI models. The project consists of:
| Feature | Description |
|---|---|
| Multi-Modal AI Chat | Engage with AI through chat, tool, and agent modes |
| Device Flow Auth | Secure authentication across CLI and web platforms |
| Conversation Management | Persistent conversation history and context |
| CLI & Web Sync | Seamless experience across command-line and browser |
| Rich UI Components | 50+ Radix UI components with TailwindCSS styling |
| Real-time Updates | Live session management and token validation |
graph TB
subgraph "Client Layer"
CLI[🖥️ Orbit CLI<br/>Terminal Interface]
WEB[🌐 Web App<br/>Next.js Frontend]
end
subgraph "Server Layer"
API[⚡ Express API<br/>Port 3005]
AUTH[🔐 Better-Auth<br/>Authentication Service]
AI[🤖 AI Service<br/>Google AI SDK]
end
subgraph "Data Layer"
DB[(🗄️ PostgreSQL<br/>Database)]
PRISMA[📊 Prisma ORM]
end
CLI -->|HTTP Requests| API
WEB -->|HTTP Requests| API
API --> AUTH
API --> AI
API --> PRISMA
PRISMA --> DB
style CLI fill:#4CAF50,stroke:#2E7D32,stroke-width:3px,color:#fff
style WEB fill:#2196F3,stroke:#1565C0,stroke-width:3px,color:#fff
style API fill:#FF9800,stroke:#E65100,stroke-width:3px,color:#fff
style AUTH fill:#9C27B0,stroke:#6A1B9A,stroke-width:3px,color:#fff
style AI fill:#F44336,stroke:#C62828,stroke-width:3px,color:#fff
style DB fill:#607D8B,stroke:#37474F,stroke-width:3px,color:#fff
style PRISMA fill:#00BCD4,stroke:#00838F,stroke-width:3px,color:#fff
sequenceDiagram
participant CLI as 🖥️ CLI/Web Client
participant Server as ⚡ Express Server
participant Auth as 🔐 Better-Auth
participant DB as 🗄️ Database
CLI->>Server: Request device code
Server->>Auth: Generate device code
Auth->>DB: Store device code
Auth-->>Server: Return user_code + device_code
Server-->>CLI: Display user_code
Note over CLI: User visits /device<br/>with user_code
CLI->>Server: Poll for authorization
Server->>Auth: Check device code status
Auth->>DB: Query device code
alt Not Approved Yet
Auth-->>Server: Status: pending
Server-->>CLI: Continue polling
else Approved
Auth->>DB: Create session
Auth-->>Server: Return access token
Server-->>CLI: Authentication success
end
erDiagram
User ||--o{ Session : has
User ||--o{ Account : has
User ||--o{ Conversation : has
Conversation ||--o{ Message : contains
User {
string id PK
string name
string email UK
boolean emailVerified
string image
datetime createdAt
datetime updatedAt
}
Session {
string id PK
string token UK
datetime expiresAt
string userId FK
string ipAddress
string userAgent
}
Account {
string id PK
string accountId
string providerId
string userId FK
string accessToken
string refreshToken
datetime accessTokenExpiresAt
}
Conversation {
string id PK
string userId FK
string title
string mode
datetime createdAt
}
Message {
string id PK
string conversationId FK
string role
string content
datetime createdAt
}
DeviceCode {
string id PK
string deviceCode
string userCode
string userId
datetime expiresAt
string status
}
Neuro-CLI/
├── 📂 client/ # Next.js Web Application
│ ├── app/ # Next.js App Router
│ │ ├── (auth)/ # Authentication routes
│ │ ├── approve/ # Device approval flow
│ │ ├── device/ # Device code entry
│ │ └── page.tsx # Home page
│ ├── components/ # 50+ UI components
│ │ └── ui/ # Radix UI primitives
│ ├── hooks/ # Custom React hooks
│ ├── lib/ # Utilities and helpers
│ ├── public/ # Static assets
│ └── package.json # Client dependencies
│
├── 📂 server/ # Express.js API Server
│ ├── src/
│ │ ├── cli/ # Orbit CLI implementation
│ │ │ ├── main.js # CLI entry point
│ │ │ ├── commands/ # CLI commands
│ │ │ │ ├── auth/ # Auth commands (login, logout, whoami)
│ │ │ │ └── ai/ # AI commands (wakeUp)
│ │ │ ├── chat/ # Chat implementations
│ │ │ └── ai/ # AI service integrations
│ │ ├── config/ # Server configuration
│ │ ├── lib/ # Shared libraries
│ │ ├── services/ # Business logic
│ │ └── index.js # Express server entry
│ ├── prisma/
│ │ └── schema.prisma # Database schema
│ └── package.json # Server dependencies
│
└── README.md # This file
Ensure you have the following installed:
| Tool | Version | Download |
|---|---|---|
| Node.js | 18.x or higher | nodejs.org |
| npm | 9.x or higher | Included with Node.js |
| PostgreSQL | 14.x or higher | postgresql.org |
| Git | Latest | git-scm.com |
Clone the Repository
git clone <repository-url>
cd Neuro-CLI
Install Server Dependencies
cd server
npm install
Install Client Dependencies
cd ../client
npm install
Setup Environment Variables
Create .env files based on the example templates:
Server (server/.env):
cd ../server
cp .env.example .env
# Edit .env with your configuration
Client (client/.env):
cd ../client
cp .env.example .env
# Edit .env with your configuration
See Server Documentation and Client Documentation for detailed variable descriptions.
Setup Database
cd ../server
npx prisma generate
npx prisma db push
Start the Server (Terminal 1)
cd server
npm run dev
Server will run on http://localhost:3005
Start the Client (Terminal 2)
cd client
npm run dev
Web app will run on http://localhost:3000
Use the CLI (Terminal 3)
cd server
npm run cli -- --help
| Command | Description | Usage |
|---|---|---|
login | Authenticate via device flow | npm run cli -- login |
logout | End current session | npm run cli -- logout |
whoami | Display current user info | npm run cli -- whoami |
wakeUp | Start AI chat session | npm run cli -- wakeUp |
# 1. Authenticate
npm run cli -- login
# Follow the prompts to complete device authentication
# 2. Check authentication status
npm run cli -- whoami
# 3. Start chatting with AI
npm run cli -- wakeUp
# Choose your mode: chat, tool, or agent
# 4. Logout when done
npm run cli -- logout
For detailed documentation, please refer to:
| Endpoint | Method | Description |
|---|---|---|
/api/auth/* | ALL | Better-Auth authentication endpoints |
/api/me | GET | Get current session (Bearer token) |
/api/me/:access_token | GET | Get session by token (deprecated) |
/device | GET | Redirect to device code entry page |
| Command | Description |
|---|---|
npm run dev | Start development server (hot reload) |
npm run build | Build for production |
npm start | Start production server |
npm run lint | Run ESLint |
# Generate Prisma Client
npx prisma generate
# Push schema changes to database
npx prisma db push
# Open Prisma Studio
npx prisma studio
# Create migration
npx prisma migrate dev --name migration_name
Contributions are welcome! Please feel free to submit a Pull Request.
git checkout -b feature/AmazingFeature)git commit -m 'Add some AmazingFeature')git push origin feature/AmazingFeature)This project is licensed under the ISC License.
Mausam Kar
Made with Next.js, Express, and Google AI SDK
GitHub checked 183h ago - refresh overdue. Recently viewed repositories target hourly refresh.
Find a documented setup for your client. No sign-in, installation, or tool execution.
If this MCP is also published on mcpchannel.ai, you can subscribe from Browse and use the gateway config there instead.