Klaat Code Documentation
The terminal-native AI coding agent — smart model routing, a real code graph, and a full TUI.
Getting Started
Install KlaatCode, sign in with your KlaatAI account, and ship your first AI-assisted change from the terminal in under five minutes. No API keys.
CLI Reference
Complete KlaatCode CLI reference — every shell command, flag, environment variable, and exit code, with examples for scripting and automation.
Smart Model Routing
How Klaatu-o1 scores each request and routes it to the cheapest capable tier across 30+ frontier models — and how to override or pin a tier yourself.
Tools & Sub-Agents
KlaatCode's built-in tools, the Code Graph index of your repo, and background sub-agents that run tasks in parallel without blocking your session.
Commands & Shortcuts
Every slash command, keyboard shortcut, and input trick in the KlaatCode terminal UI — session control, model switching, and context management.
Configuration
Configure KlaatCode: config file format, themes, tool permissions, per-project rules, and the directory layout for global and project settings.
MCP Servers
Connect Model Context Protocol servers to KlaatCode — local stdio servers and remote HTTP servers with OAuth, plus tool discovery and permissions.
Automation
Automate KlaatCode with skills, lifecycle hooks, custom plugins, and headless mode — plus the local API server for scripting and CI pipelines.
Benchmarks
Klaat Code vs Claude Code, Cursor (both Composer variants), opencode, and Grok Build — same tasks, same prompts, measured.