How to Use Claude Code With a Cheaper API Key in 2026
Run Claude Code on a cheaper API key: what each route costs, a 5-minute setup with ANTHROPIC_BASE_URL, and when a Claude Max plan is the better deal.
Claude Code costs $20 to $200 a month on Pro, Max and Ultra, or per token on the API. Plan limits, API rates, hidden charges and what a month of real use costs.
TL;DR
Claude Code is included in Claude Pro ($20 per month, $17 billed yearly), Max ($100) and Ultra ($200), and in Team seats from $20. On the API, Claude Code bills per token: Opus 5.5 is $4 / $20 per 1M tokens, and Anthropic puts the average at $150 to $250 per developer per month.
We build Sidrune AI, an API gateway that sells Claude below the official price. Anthropic's prices below are copied from claude.com/pricing and the Claude Help Center, last checked on 16 November 2026. Our own prices are from Model Plaza on the same day.
Claude Code has no separate price. You get it through a Claude subscription, or you pay per token through an API key.
| Plan | Price | Claude Code usage |
|---|---|---|
| Free | $0 | Not included |
| Pro | $20 per month, or $17 per month billed yearly ($200 up front) | Pro allowance, shared with chat |
| Max | $100 per month, monthly billing only | 5x Pro every five hours and every week |
| Ultra (former Max 20x) | $200 per month, monthly billing only | 10x Pro every week, no five-hour limit on verified accounts |
| Team, Standard seat | $25 per seat monthly, $20 billed yearly | 1.25x Pro per five-hour session |
| Team, Premium seat | $125 per seat monthly, $100 billed yearly | 6.25x Pro per five-hour session |
| Enterprise | $20 per seat per month, billed yearly, 20 seats minimum | No allowance: all usage billed at API rates |
| API key (Claude Console) | Per token, no monthly fee | No five-hour or weekly limits, you pay for every token |
Sources: claude.com/pricing, What is the Max plan?, What is the Ultra plan?, What is the Team plan?, What is the Enterprise plan?. US prices before tax.
Paid plans have two limits. The first resets on a rolling five-hour window; verified Ultra accounts do not have it. The second is a weekly limit across all models, which resets at a fixed day and time assigned to your account. Claude Code, Claude Desktop, the web app and the mobile apps all draw from the same pool, so a long coding session leaves less for chat.
Anthropic does not publish a fixed number of messages or tokens per plan. How far the allowance goes depends on the model, the length of the conversation, the size of the files Claude reads and the features you use. Anthropic also reserves the right to add other caps, such as monthly limits or limits on specific models.
Two things have their own rules:
When you hit a limit, you can wait for the reset, upgrade, or turn on usage credits, which bill the extra usage at standard API rates.
With an API key, Claude Code bills every token at the model's API price. Prices per 1M tokens on Anthropic's API:
| Model | Input | Output | Cache read | Cache write (5 min) |
|---|---|---|---|---|
| Fable 5.2 | $8 | $40 | $0.20 | $10 |
| Fable 5.2, fast mode | $16 | $80 | Not listed | Not listed |
| Opus 5.5 | $4 | $20 | $0.20 | $5 |
| Opus 5.5, fast mode | $8 | $40 | Not listed | Not listed |
| Sonnet 5.5 | $2 | $10 | $0.10 | $2.50 |
| Haiku 5.5, prompts up to 100K tokens | $0.10 | $0.50 | $0.01 | $0.125 |
| Haiku 5.5, prompts over 100K tokens | $0.50 | $2.50 | $0.05 | $0.625 |
Sources: claude.com/pricing, Fast mode docs.
Caching matters more in Claude Code than in most apps. Each turn resends the conversation, the files Claude has read and the tool definitions, and most of that comes back as cache reads. On Opus 5.5 a cache read costs $0.20 per 1M tokens, 5% of the $4 input price. A session that sits idle long enough for the cache to expire pays for that context again at the cache write price on the next turn.
How much does that add up to? Across enterprise deployments, Anthropic puts the average at about $13 per developer per active day and $150 to $250 per developer per month, with 90% of users below $30 per active day.
A subscription has a fixed price and a usage cap. An API key has no cap and a price that grows with your usage. So the answer depends on how much you use Claude Code each month.
The table shows three monthly workloads, measured at Anthropic's list price, and what the same tokens cost on each option. The middle row is inside Anthropic's $150 to $250 average. The last row assumes 22 working days at $30, the ceiling Anthropic reports for 90% of users.
| Usage per month, at list price | Anthropic API | Sidrune AI, 0.18x | Sidrune AI, 0.36x | Claude Pro / Max / Ultra |
|---|---|---|---|---|
| $50 (light use) | $50 | $9 | $18 | $20 / $100 / $200, if it fits the limits |
| $200 (typical) | $200 | $36 | $72 | $20 / $100 / $200, if it fits the limits |
| $660 (heavy, 22 days at $30) | $660 | $118.80 | $237.60 | $20 / $100 / $200, if it fits the limits |
Anthropic does not say how many tokens fit into each plan, so nobody outside Anthropic can tell you exactly where a subscription beats the API. What you can calculate is the point where a cheaper key costs the same as a plan. At 0.18x of list price:
If your monthly usage at list price stays under those numbers, the key costs less than the plan, and it has no five-hour or weekly limits. Above them, the plan is cheaper for as long as your work fits inside its limits.
For a team, the seat price is only part of the bill. Three examples with yearly billing:
| Team | Seats | Usage | Monthly total |
|---|---|---|---|
| 5 developers, Team Standard | 5 × $20 = $100 | Included up to each seat's limits | $100, plus usage credits past the limits |
| 5 developers, Team Premium | 5 × $100 = $500 | Included up to each seat's limits | $500, plus usage credits past the limits |
| 20 developers, Enterprise | 20 × $20 = $400 | 20 × $150 to $250 at API rates | About $3,400 to $5,400 |
The Enterprise row uses Anthropic's average of $150 to $250 per developer per month. Enterprise seats include no usage at all: every token in chat, Claude Code and Cowork is billed at API rates, and admins cap spend with limits per organization or per user. Team plans cover 2 to 150 seats and let you mix Standard and Premium seats.
ANTHROPIC_API_KEY in your environment. If this variable is set, Claude Code uses the key instead of your subscription and bills API usage. Run /status to see which login is active./usage figure is an estimate at list price. The Session block computes cost locally from token counts at list price. For the real bill, check the Usage page in the Claude Console, or your gateway's balance.Anthropic's Manage costs page lists the main levers. The ones with the biggest effect:
/model and keep Opus or Fable for the hard problems./clear between unrelated tasks and /compact before long sessions grow. Each turn resends the context, so a smaller context costs less on every turn.CLAUDE.md files and unused MCP servers add tokens to each turn. The plan usage breakdown in /usage shows which ones cost the most./effort.Sidrune AI sells Claude through several routes, each with its own multiplier on the official price. Prices per 1M tokens, input / output, from Model Plaza on 16 November 2026:
| Route | Opus 5.5 | Sonnet 5.5 |
|---|---|---|
| Official Anthropic price 1x | $4.00 / $20.00 | $2.00 / $10.00 |
| Claude-Max-STANDARD INJECT-ONLY CC 0.18x, Claude Code only | $0.72 / $3.60 | $0.36 / $1.80 |
| Claude-Max-STANDARD INJECT 0.2x, any client | $0.80 / $4.00 | $0.40 / $2.00 |
| Claude-Max-NO INJECT 0.36x, any client | $1.44 / $7.20 | $0.72 / $3.60 |
| Claude-Anthropic-Official 0.7x | $2.80 / $14.00 | $1.40 / $7.00 |
INJECT routes add a system prompt to each request, and Model Plaza notes that it may lower output quality in some cases. NO INJECT adds nothing. You pay per token from a prepaid balance, with no monthly fee and no five-hour or weekly limits.
The setup takes about five minutes: create a key, set ANTHROPIC_BASE_URL and ANTHROPIC_AUTH_TOKEN, and check /status. The full steps, every Claude route and the troubleshooting table are in How to Use Claude Code With a Cheaper API Key.
Claude Code is included in Claude Pro at $20 per month ($17 per month billed yearly), Claude Max at $100 per month and Claude Ultra at $200 per month. Teams pay $20 to $125 per seat. Without a subscription, Claude Code bills per token at API rates, for example $4 / $20 per 1M input and output tokens on Opus 5.5.
No. The Claude Free plan does not include Claude Code. The cheapest way to use it is the Pro plan, or an API key billed per token, where you pay only for the tokens you use.
Yes. On Pro, Max, Ultra and Team plans, Claude Code and Claude on web, desktop and mobile draw from the same usage pool. Most plans have a limit that resets every five hours and a weekly limit on top; verified Ultra accounts have only the weekly limit.
Max costs $100 per month and gives five times the Pro plan's usage every five hours and every week. Ultra, the former Max 20x, costs $200 per month and gives ten times the Pro plan's weekly usage, with no five-hour limit on verified accounts. Both are billed monthly only and both have weekly limits.
No. Anthropic's help center says the monthly API credits included with Max and Ultra plans don't cover interactive Claude Code sessions or usage credits. They cover claude -p and the Agent SDK only when run with an API key from the linked Claude Console organization.
Across enterprise deployments, Anthropic reports about $13 per developer per active day and $150 to $250 per developer per month, with 90% of users under $30 per active day. The model, the codebase and parallel sessions change that number a lot.
For light or irregular use, a per-token key costs the least because you pay only for what you use. On Sidrune AI, Claude Code runs on a route priced at 0.18x of the official API price, so Opus 5.5 costs $0.72 / $3.60 per 1M tokens instead of $4 / $20.
Allow Google Analytics to measure article views and product link clicks? You can keep reading if you decline.