Claude Code, on the same models.
At market price.
Claude Code reads two environment variables to decide where it sends requests. Point them at UberLLM and it keeps using the Claude models it already uses — Opus stays Opus, Sonnet stays Sonnet — billed at what the market charges instead of list. One command, no code changes, reversible in one more.
Keep the exact models Claude Code ships with. Opus stays Opus, Sonnet stays Sonnet — routed through the market instead of billed at list.
curl -fsSL https://uberllm.dev/install/claude-code.sh | sh- 1Run the command
It backs up ~/.claude/settings.json, then writes the gateway URL and your key into it.
- 2Approve in the browser
The script opens a tab and waits. Approving mints a key for this machine — nothing else.
- 3Run claude
Same CLI, same models, same workflow. /status shows the gateway instead of Anthropic.
What the same models cost here
Live prices from the catalog — the cheapest endpoint we can actually route to right now — against Anthropic’s published list price for the same model.
| Model | UberLLM in / out | Anthropic list in / out | You save |
|---|---|---|---|
Claude Fable 5 anthropic/claude-fable-5 | $1.75 / $8.73 | $10.00 / $50.00 | 83% |
Claude Opus 4.5 anthropic/claude-opus-4.5 | $0.94 / $4.70 | $5.00 / $25.00 | 81% |
Claude Opus 4.8 anthropic/claude-opus-4.8 | $0.96 / $4.78 | $5.00 / $25.00 | 81% |
Claude Opus 4.7 anthropic/claude-opus-4.7 | $0.99 / $4.95 | $5.00 / $25.00 | 80% |
Claude Opus 4.6 anthropic/claude-opus-4.6 | $0.94 / $4.70 | $5.00 / $25.00 | 81% |
Claude Sonnet 4.5 anthropic/claude-sonnet-4.5 | $0.60 / $2.98 | $3.00 / $15.00 | 80% |
Claude Sonnet 4.6 anthropic/claude-sonnet-4.6 | $0.60 / $2.98 | $3.00 / $15.00 | 80% |
Claude Sonnet 5 anthropic/claude-sonnet-5 | $0.48 / $2.40 | $3.00 / $15.00 | 84% |
Claude Haiku 4.5 anthropic/claude-haiku-4.5 | $0.25 / $1.25 | $1.00 / $5.00 | 75% |
Prices are $/million tokens. The saving column blends input and output at 1:3 — the same blend on both sides — so a cheap input with an expensive output can’t flatter the number. Anthropic list prices were verified on 2026-06-24 against Anthropic’s published pricing; models we carry without a verified list price are left out of this table rather than estimated. Live prices move, so what you pay is whatever the catalog shows at request time.
How it works
The installer writes ANTHROPIC_BASE_URL and ANTHROPIC_AUTH_TOKEN into the env block of ~/.claude/settings.json. That is the whole change. Your existing settings file is backed up and merged into — hooks, permissions and MCP servers are untouched — and Claude Code itself is not modified, reinstalled or wrapped.
Start Claude Code and run /status: it will report the gateway as the API endpoint. Everything else — projects, sessions, slash commands, subagents — behaves as it did before.
Only these keys are ever managed by the installer, and only the two above are set on the default profile:
- ANTHROPIC_BASE_URL
- ANTHROPIC_AUTH_TOKEN
- ANTHROPIC_MODEL
- ANTHROPIC_DEFAULT_OPUS_MODEL
- ANTHROPIC_DEFAULT_SONNET_MODEL
- ANTHROPIC_DEFAULT_HAIKU_MODEL
- CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY
{
"env": {
"ANTHROPIC_BASE_URL": "https://api.uberllm.dev",
"ANTHROPIC_AUTH_TOKEN": "ull_your_key_here"
}
}Reversible, and revocable
The uninstaller removes the keys it added and restores the settings it found:
curl -fsSL https://uberllm.dev/install/claude-code.sh | sh -s -- --uninstallTo cut access without editing anything, revoke the key at /dashboard/keys. Each install gets its own key, so revoking one machine leaves the rest working.
Or go cheaper
Optional. Claude Code doesn’t care which model answers, so you can pin an open model instead and run the same CLI for a fraction of the price. Pick one of these in the installer above — the trade is cost against Claude-level behaviour.
GLM 5.2
1M context, strong tool use, roughly a fiftieth of Claude pricing.
DeepSeek V4
1M context reasoning model, priced for all-day agentic work.
GPT-5.4
If you would rather drive Claude Code with OpenAI’s latest.
Worth being clear about
Anthropic does not support or endorse routing Claude Code to a third-party gateway, and it does not endorse running it on non-Claude models. The default profile keeps the same Anthropic models Claude Code ships with, so what changes is the billing path, not the model; the cheaper profiles swap the model out, and its behaviour will differ from Claude’s. UberLLM is an independent marketplace and is not affiliated with Anthropic.
FAQ
Does this change how Claude Code behaves?
On the default profile, no. Nothing is pinned: Claude Code keeps asking for its own model ids and the gateway maps them onto the same Anthropic models, so Opus is still Opus and Sonnet is still Sonnet. The only difference is what you are charged. The optional cheap profiles do change the model, and therefore the behaviour.
What does the installer actually write?
It writes ANTHROPIC_BASE_URL and ANTHROPIC_AUTH_TOKEN into the env block of ~/.claude/settings.json, merging into your existing file after taking a backup. Your hooks, permissions and MCP servers are left alone. A cheap profile additionally pins the model keys; the default profile pins nothing.
How do I undo it?
Run the uninstaller — curl -fsSL https://uberllm.dev/install/claude-code.sh | sh -s -- --uninstall — and the keys it added are removed from ~/.claude/settings.json, restoring the settings it found. You can also revoke the key on its own at /dashboard/keys, which cuts access without touching any file.
Do I need an account before I run the command?
No. The one-liner opens your browser and waits for you to approve, minting a key for that machine as part of the install. If you are already signed in, the "Download installer" button hands you a script with a fresh key already baked in and skips the browser step entirely.
Is my Claude subscription still involved?
No. Requests go to the UberLLM gateway and are billed against your UberLLM balance at the prices on this page. Your Claude.ai or Claude Code subscription is untouched — and unused while the gateway is configured.
Can I use a cheaper model instead?
Yes. Pick a different profile before you install and it pins that model for both the main and the small/fast slot — GLM, DeepSeek or GPT. You can re-run the installer with a different profile at any time to switch.
One command, and you’re on the market
Same CLI, same models, same workflow — a different price. New accounts start with free credits, so you can try it before you fund anything.