klaatcode

Open-source AI coding agent for the terminal. Claude Code-grade accuracy with smart model routing — uses the right AI model for each task, cutting costs 10x. Su

What is klaatcode?

Open-source AI coding agent for the terminal. Claude Code-grade accuracy with smart model routing — uses the right AI model for each task, cutting costs 10x. Supports Claude, GPT, Gemini, DeepSeek & more.

Overview of klaatcode

What it is

Klaat Code is an open-source, terminal-native AI coding agent that uses smart model routing to select the appropriate AI model for each task. It is part of the KlaatAI platform, which centers on Klaatu-o1, a small and fast agentic router model. The router automatically decides which model tier—from nano to titan—should handle a request, aiming to use lower-cost tiers for simple tasks and escalate to more powerful tiers only when needed. The CLI client is a thin interface to a hosted service that handles routing, model health tracking, pricing, and code-graph indexing on the server side.

Key features

  • Per-request model routing across six cost tiers (nano, fast, code, reason, heavy, titan), with automatic escalation for harder tasks
  • A code knowledge graph that indexes a project into a call graph with semantic search, querying symbols, callers, callees, and blast-radius instead of reading whole files
  • No “Continue” button; tool call rounds are free and unlimited—only messages count against quota, and stuck loops are detected and broken automatically
  • Real-time cost monitoring, per-task cost attribution, per-phase token budgets, a hard session cap, and --max-cost for CI use
  • Context compaction with snapshots and verification; the model is told what was lost and where to recover it; noise-filtering of tool output (progress bars, passing-test spam)
  • Reproducible benchmarks: the same 33 fixtures, prompts, and verify commands can be run against KlaatCode and other agents to verify results

Use cases

Klaat Code is designed for developers who want an AI coding assistant in the terminal that can read code, edit files, run commands, and verify its own work. It suits tasks ranging from quick edits and debugging to large refactors and complex architecture problems, with cost control and transparency. It can be used interactively in a project directory or in headless/CI mode with a single command.

Getting started

Install the standalone compiled binary (no Node or Bun runtime required at runtime):bashnpm install -g klaatcodeOr one-line installer (macOS/Linux):bashcurl -fsSL https://klaatai.com/api/install | bashAfter installation, authenticate and start:bashklaatcode loginklaatcode

License and pricing

The license is not stated in the provided metadata. The project is listed as open source with the pricing type

Based on the project's public README and repository metadata.

Add this badge to your README

Featured on YunoDB Badge styles & help

Maintain this project? Show that it is featured on YunoDB.

Markdown[![Featured on YunoDB](https://yunodb.com/badge/klaataiklaatcode.svg)](https://yunodb.com/tools/klaataiklaatcode?utm_source=github&utm_medium=badge)
HTML<a href="https://yunodb.com/tools/klaataiklaatcode?utm_source=github&utm_medium=badge"><img src="https://yunodb.com/badge/klaataiklaatcode.svg" alt="Featured on YunoDB" height="20"></a>