Kilo Code CLI Cheatsheet - Terminal Open-source Coding Agent

All Kilo Code CLI terminal coding-agent commands in one place — from install to interactive/one-off tasks, model switching to MCP — organized by scenario. Copy and go.

AI CLI·16 commands·Last updated 2026-08-26

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

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

Edit this page on GitHub

Edit the source file directly and open a PR to improve this cheatsheet.