Command-line interface for Kai
The Kai CLI provides a powerful terminal interface with persistent memory, background agents, and 21+ skills for AI-powered development.
Native macOS app with built-in Node.js runtime. No dependencies required. Just drag to Applications and run.
Download for Mac (Apple Silicon)Check GitHub Releases for downloads. For Intel Macs, use npm install below.
npm install -g kaiOr install locally in your project:
npm install --save-dev kaiCreate a .env file with your API keys:
OPENROUTER_API_KEY=your_key_here
MODEL_ID=moonshotai/kimi-k2.5 # optional
TAVILY_API_KEY=your_key # optional, for web searchGet an OpenRouter API key at openrouter.ai/keys
cd my-projectkaiOr run a one-shot query: kai "explain this code"
/git commitKai has AI-powered git workflows, agents, and 21+ skills.
kaiStart interactive REPL mode
$ kai
> explain this codebasekai "query"One-shot query without interactive mode
$ kai "review this file"kai startStart web server with UI and agents
$ kai start --port 3141kai agentManage background agents
$ kai agent list
$ kai agent run <id>/git commitAI-generated commit messages
> /git commit --push/skillList and manage skills
> /skill reload| Command | Description |
|---|---|
| kai --continue | Resume most recent session |
| kai --resume <id> | Resume specific session |
| kai --name "name" | Name the session |
| kai --yes | Auto-approve all tool calls |
| kai agent create <name> <workflow.yaml> | Create agent with optional --schedule |
| kai mcp list | List configured MCP servers |
| Command | Description |
|---|---|
| /help | Show all available commands |
| /clear | Clear conversation history |
| /compact | Compress context to save tokens |
| /sessions | List recent sessions |
| /soul | View core memory + recall stats |
| /diff | Show all changes made this session |
| /git | Git status + changed files |
| /git diff | Colorized diff (staged + unstaged) |
| /git commit [msg] [--push] | AI-generated commit + optional push |
| /git pr [title] | Create PR (branch + commit + push + open) |
| /agent | List background agents |
| /doctor | Run system diagnostics |
Kai loads config from (highest priority first):
.kai/settings.json (project-level)kai.config.json (project-level)~/.kai/settings.json (user-level){
"model": "moonshotai/kimi-k2.5",
"mcp": {
"servers": {...}
},
"permissions": {
"mode": "default",
"allow": [],
"deny": []
}
}