Kilo CLI — Installation & Usage Guide
Source: Dev.to
Installation
- Requirements: Node.js v18.0 or later, npm
- Install globally (recommended):
npm install -g @kilocode/cli - Or run without installing:
npx @kilocode/cli - Verify installation:
kilo --version - Older CPUs (no AVX support): download the
-baselinebinary from GitHub Releases for your platform.
Configuration
Launch the TUI:
kilo
Add your API key interactively:
/connect
Or configure manually at ~/.config/kilo/config.json:
{
"$schema": "https://app.kilo.ai/config.json",
"provider": {
"anthropic": {
"apiKey": "YOUR_API_KEY"
}
}
}
Basic Usage
- Launch interactive TUI:
kilo - One‑shot prompt:
kilo run "fix the login bug" - Show all options:
kilo --help
Commands
| Command | Description |
|---|---|
kilo | Launch interactive TUI |
kilo run [message] | Run a prompt non‑interactively |
kilo upgrade | Update to latest version |
kilo uninstall | Remove Kilo |
kilo models | List available models |
kilo stats | Show token usage & costs |
kilo auth | Manage providers & credentials |
kilo session | Manage sessions |
kilo export | Export session as JSON |
kilo pr | Checkout a GitHub PR and run Kilo |
TUI Commands
| Command | Description |
|---|---|
/connect | Add a provider / API key |
/models | Switch AI model |
/agents | Switch agent mode |
/new | Start a new session |
/sessions | Resume a previous session |
/compact | Summarize the session |
/undo / /redo | Undo or redo a message |
/export | Export transcript |
/themes | Switch UI theme |
/exit | Quit |
Agent Modes (switch with /agents inside the TUI)
| Mode | Purpose |
|---|---|
| Architect | Plan features before coding |
| Ask | Ask questions about your codebase |
| Debug | Trace and fix bugs |
| Orchestrator | Run parallel multi‑agent tasks |
| Custom | Define your own agent |
Upgrade & Uninstall
kilo upgrade # update
npm uninstall -g @kilocode/cli # uninstall
Resources
- Documentation:
- GitHub:
- npm package: