Nepal's First Autonomous AI Terminal Agent
Lemda AI is a powerful, production-ready coding assistant that lives directly in your terminal. With a beautifully designed Terminal User Interface (TUI), native PC access, and a multi-model gateway, Lemda acts as your AI peer programmer, capable of executing commands, reading files, writing code, and answering complex queries.
- Beautiful TUI: Built with Rust (
ratatuiandcrossterm), featuring a live status bar, visible cursor, chunked typing effects, and message queueing. - Multi-Model Gateway: Connects to multiple LLMs seamlessly. Supports:
- Gemini 2.5 Flash (Advanced, FREE)
- Gemini 2.5 Pro (Ultra, PRO)
- Gemini 2.0 Flash Lite (Fast, FREE)
- DeepSeek V4 (Reasoning, FREE)
- Local PC Access: True autonomous capability. The agent can use tools like
run_shell,read_file, andwrite_fileto navigate your computer, check your OS, and write real code to your hard drive. - Interactive Command Menu: Type
/to open a dynamic popup menu to switch models, change levels, and access more modes on the fly. - Auto-Sync Authentication: Simple browser-based login flow. Paste your API key in the browser and watch the terminal automatically sync and boot up.
Lemda is structured as a modern Rust/TypeScript monorepo:
lemda/
├── apps/
│ ├── docs/ # Documentation website
│ └── ui/ # Web Dashboard (React/Next.js)
├── crates/
│ ├── agent/ # (Legacy) Core agent testing logic
│ ├── backend/ # Rust Axum Proxy - The Multi-Model Gateway
│ └── cli/ # Rust TUI Application - The Terminal Client
└── dont-touch-ai/ # Reserved internal services
The backend handles routing requests to Google Gemini and DeepSeek securely.
- Navigate to the UI folder and create an
.envfile:cd apps/ui touch .env - Add your API keys to
apps/ui/.env:GEMINI_API_KEY=your_gemini_key_here DEEPSEEK_API_KEY=your_deepseek_key_here
- Start the backend server:
cd crates/backend cargo run
The CLI is your primary interface. Install it globally on your machine:
cd crates/cli
cargo install --path . --forceNow, simply open any terminal window and type:
lemdaai- Type natural language prompts and press Enter.
- Use the Up/Down arrows to navigate chat history (Coming Soon).
- Type
/to open the Command Menu. - Select
/modelto switch between Gemini and DeepSeek.
Contributions are welcome! Please feel free to submit a Pull Request.