Initializing...
Initializing...
Terminal AI coding companion
KaiCode is a powerful command-line agent designed to help you edit codebases, run test diagnostics, and build complex applications directly from the terminal.
# Auto-detecting context...
✓ React & Tailwind project detected
# Initializing Ollama (llama3.2)...
❯ /provider anthropic
✓ Switched provider to Anthropic (model: claude-3-5-sonnet)
❯ Add a dark theme button on layout
✓ File modified: src/components/layout/nav.tsx (+14, -2)
✓ View diff using `/diff` command
❯
Switch dynamically between local models via Ollama (default), Anthropic Claude, OpenAI, and Groq API systems.
Autonomously read and edit files with surgical diffs, run commands, list directory trees, and search codebases.
Auto-detects active stack settings (Next.js, Flutter, Python, Rust, Go) to customize workspace search and prompts.
Control your AI session directly using slash commands like /model, /provider, /diff, /save, and /load.
Perform quick repository diagnostic status queries and commit modifications directly inside the CLI.
Enjoy gorgeous terminal colorized outputs rendering diff lines, file trees, and markdown payloads.
Use the pip manager to fetch the latest compiled build.
# Install stable release
$ pip install kaicode
# Boot the assistant console
$ kaicode
Clone the repository to run or modify the codebase locally.
# Clone public repository
$ git clone https://github.com/kaicyrusdgreat/kaicode
$ cd kaicode
# Install in editable mode
$ pip install -e .
# Global configuration: ~/.kaicode/config.yaml
default_provider: ollama
providers:
ollama:
base_url: http://localhost:11434
default_model: llama3.2
anthropic:
api_key: sk-ant-your-key-here
default_model: claude-sonnet-4-6
| Command Option | Action Description |
|---|---|
| /model [name] | Switch models or view available list |
| /provider [name] | Switch provider engines dynamically |
| /diff | Display the last applied files modification diff |
| /save [name] | Save current conversation session history |
| /load <name> | Restore a previously saved session |
| /sessions | List all archived sessions |
| /context | Show auto-detected context and matching files |
| /status | Review token usage, model, and active provider info |
| /clear | Wipe active context and clear scrollback |
| /quit | Exit assistant prompt interface securely |