Smart Routing
Regex rules + LLM-assisted classification. Configurable thresholds and patterns in locode.yaml.
Write your prompt — a question, a task, a code request.
Smart classification decides which model handles your task.
Ollama for simple tasks (free). Claude for complex ones (powerful).
Smart Routing
Regex rules + LLM-assisted classification. Configurable thresholds and patterns in locode.yaml.
Token Savings
Track per-agent and total token usage with USD cost estimates. Benchmark hybrid vs claude-only vs local-only.
Offline Ready
Works entirely offline without an API key. Falls back to Ollama automatically when Claude is unavailable.
MCP Support
Extend with Model Context Protocol servers — including remote ones like Linear.
| Mode | Claude Tokens Used | Estimated Cost |
|---|---|---|
| Claude-only | 100% | $$$ |
| Hybrid (locode) | ~40–60% | $ |
| Local-only | 0% | Free |
Run locode benchmark to see your own savings.
# Installnpm install -g @chocks-dev/locode
# First-time setuplocode setup
# Start codinglocode