Kilo Code CLI Cheatsheet - Terminal Open-source Coding Agent

Kilo Code CLI shares its engine with the Kilo Code VS Code/JetBrains extensions, for developers who want the same agent outside the IDE — running one-off tasks (kilo run) while still having a TUI. Being same-engine, it fits scripted/pipeline one-shot code work. This sheet covers install, interactive/one-off tasks, model switching, and MCP.

AI CLI·34 commands·Last updated 2026-08-26
kilokilo-codekilocodeaicliagentCoding Agent

Install & Launch 5

npm install -g @kilocode/cli
Install Kilo Code CLI globally
kilo --version
Print the installed version
kilo
Start the interactive TUI in the project dir
kilo upgrade
Upgrade to the latest version
brew install Kilo-Org/tap/kilo
Install on macOS via Homebrew

Interactive & One-off Tasks 5

kilo run "add input validation to the signup form"
Run a one-off task and exit
kilo --mode architect
Start in architect mode
kilo --workspace /path/to/project
Start with a specific workspace
kilo -c
Resume the most recent conversation (--continue)
kilo --auto "Implement feature X"
Autonomous mode: no prompts (trusted envs only)

Models & Integrations 6

kilo auth
Manage AI providers and credentials
kilo models
List available models
kilo mcp
Manage MCP servers
kilo session list
List session history
kilo export <sessionID>
Export a session as JSON
kilo serve
Start a headless kilo server

Extended Commands 18

kilo "Add input validation to the signup form"
Start a task directly from a prompt (exit after)
kilo --model claude-sonnet-4
Specify the model for this launch
kilo --provider anthropic
Specify the AI provider
kilo --orchestrator
Enable Orchestrator mode for multi-step tasks
kilo --memory-bank
Enable Memory Bank for persistent project context
kilo config
Open the config editor (same as /config)
kilo web
Start a kilo server and open the web UI
kilo roll-call
Batch connectivity and latency test for models
kilo profile
Show the Kilo account profile
kilo stats
Show token usage and cost statistics
kilo import
Import session data from a JSON file/URL
kilo github
Manage the GitHub agent
kilo pr
Fetch and check out a GitHub PR branch, then run kilo
kilo remote
Enable remote connection for live session relay
kilo daemon
Manage the local kilo daemon
kilo console
Open or stop the local Kilo Console
kilo db
Database tools
kilo uninstall
Uninstall kilo and remove related files

Tips

  • The Kilo CLI shares the same engine as the IDE extensions — reuse your VS Code/JetBrains models, MCP servers, and rules in the terminal.
  • `kilo --auto` runs autonomously and fits CI/CD pipelines; pair it with `--timeout 300` to cap automatic tasks and avoid runaway execution.
  • `kilo -c` resumes the latest conversation and `kilo session list` manages history, so interrupted long tasks can pick up where they left off.

FAQ

Does the Kilo Code CLI share the engine with the IDE extensions?

Yes. The CLI uses the same underlying technology as the VS Code/JetBrains extensions, so you reuse the models, MCP servers, and rules configured in your IDE, with a consistent workflow.

What environment is kilo --auto suited for?

It suits trusted automation environments like CI/CD, where it auto-approves all tool calls and runs without interaction. For daily local work, interactive mode is safer to avoid unconfirmed file changes.

Official References

Each command links to its official documentation below, so you can verify the latest usage and read deeper.

Maintained by LaoHand

Publicly updated on Aug 26, 2026, continuously proofread against official docs.

Contact Us

Wrong command or description? Send us corrections, business inquiries or product feedback by email.

Contact Us