Tokenomics sits in front of Claude Code and opencode and routes each turn to the model that fits it — across Anthropic, DeepSeek, Gemini, GLM, Qwen and more. Tool calls pass through intact; you see which model ran and why.
The agent sends a turn — context, tools, the lot. It assumes it’ll be answered by the most expensive model available. It won’t.
→ 14.2k ctx · tools=[edit,bash,read,grep]
Trivial, background, code, or reasoning? We classify it, then weigh price against capability across every provider you’ve allowed.
classify → code · medium candidates → haiku-4.5 glm-4.6 deepseek-v4 …
Tool calls and streaming stay intact. If the cheap model stumbles, we escalate automatically — and it’s always visible in the log.
route → haiku-4.5 · −$0.21 this turn · verified
[░░░░░░░░░░░░░░░░░░░░░░░░]
[░░░░░░░░░░░░░░░░░░░░░░░░]
[████░░░░░░]
██████████████████████$0
░░░░░░░░░░░░░░░░░░░░░░$0
Never breaks tool-call pairs or the stream. Stumble → auto-escalate.
Which model, why, and what it saved — on every turn. No silent downgrades.
Anthropic, DeepSeek, Gemini, GLM, Qwen and more. Free tiers used first where they fit; no vendor is the favourite.
Keys sealed and encrypted at rest. Self-host the single binary and they never leave your machine.
Provider keys sealed in encrypted storage. The same screens whether you run on our managed cloud or the single binary locally — only where the keys live changes.
Pay only on the savings we measure, or a flat platform fee. No markup on tokens, ever. Local & OSS are free.
$ export ANTHROPIC_BASE_URL=<gateway-url> $ export ANTHROPIC_AUTH_TOKEN=tok_<your-token>