Voltar aos guias
Pricing·5 de agosto de 2026·Atualizado em 23 de novembro de 2026·9 min de leitura

Claude Code pricing 2026 — Pro, Max and Ultra plans vs an API key, and what a month costs

Claude Code costs either a flat monthly fee or a per-token bill, and almost every confusing answer about its price comes from mixing the two up. Here are the current numbers for both routes, what a real month costs, and the arithmetic for choosing.

Last reviewed on .

Claude Code has two entirely separate prices, and most of the confusion about what it costs comes from mixing them up. A claude.ai subscription bundles it into a flat monthly fee with usage limits. An API key bills per token with no monthly fee and no limits. This page has the current numbers for both, the arithmetic for deciding which one you want, and what a real month actually costs.

Rates verified November 23, 2026 against claude.com/pricing and Anthropic's API pricing documentation. Kunavo's per-token prices are read live from the model catalog.

TL;DR — which one is for you

Subscription (Pro, Max, Ultra)API key (pay-as-you-go)
What you payFlat monthly fee, from $20Per token, no monthly fee
Limits5-hour and weekly usage windows (verified Ultra accounts: weekly only), shared with Claude chatNone — you pay for what you use
A quiet monthStill charged in fullCosts nothing
A heavy monthCapped — you hit limits and waitScales with the work, and so does the bill
Cost visibilityUsage bars in /usagePer-token line items, per key
Best forDaily, predictable use by one personBursty use, teams needing per-seat attribution, CI and automation

They do not stack. While a credential variable is set, Claude Code uses the key and your subscription sits parked — its limits stop applying and usage bills to the key instead. Run /status to see which one is live.

Route 1 — subscription pricing

Claude Code requires a Pro, Max, Ultra, Team, Enterprise or Console account; Anthropic's setup documentation states the free Claude.ai plan does not include Claude Code access. Plan fees as published on claude.com/pricing, before tax:

PlanPriceWhat you get
Pro$20/month, or $17/month billed annually ($200 up front)Claude Code included, with Pro's usage limits
Max$100/month, billed monthly5× Pro's usage every five hours and every week, plus $100 a month in Claude API credits
Ultra$200/month, billed monthlyThe former Max 20×: 10× Pro's usage every week, no five-hour limit once the account is verified, plus $200 a month in Claude API credits
TeamStandard seat $25/month ($20 annually); Premium seat $125/month ($100 annually)Per-seat allowance shared with Claude chat, plus admin spend reporting
Enterprise$20 per seat a month, billed annually (20-seat minimum), plus usage at API ratesUsage billed at API rates on top of the seat fee

The important mechanic is the limit, not the fee. Usage on a plan is metered against a rolling five-hour window and a weekly window (a verified Ultra account has only the weekly one), both shared with Claude chat — so an afternoon in the web app eats into the same allowance as your coding session. Switching models with /model does not reset a window, because the windows span all models.

Max and Ultra now come with API credits. Max includes $100 and Ultra $200 a month in Claude API credits. You claim them after seven days on the plan by linking a Claude Console organization in the plan's billing settings, and unused credits expire at the end of each billing cycle. They pay for API calls, the Agent SDK and claude -p run with a key from that organization — not for interactive Claude Code in the terminal, IDE, desktop app or web, and not for extra usage beyond the plan's limits. Pro and Free include none.

Route 2 — API pricing, per model

On a key there is no plan and no window: Claude Code is billed as ordinary Claude API traffic. Files and tool output count as input tokens; edits, explanations and thinking tokens count as output. Rates per 1M tokens:

ModelAnthropic list (in / out)Kunavo (in / out)Use in Claude Code for
claude-haiku-5-5$0.10 / $0.50$0.07 / $0.35Background calls, summaries, simple subagents
claude-sonnet-4-6$3.00 / $15.00$2.10 / $10.50Everyday coding — the default worth keeping
claude-sonnet-5$2.00 / $10.00$1.40 / $7.00Near-Opus coding quality at Sonnet cost
claude-opus-4-7$5.00 / $25.00$3.50 / $17.50Hard refactors, long-horizon agentic runs
claude-opus-5$5.00 / $25.00$3.50 / $17.50The previous Opus — still callable by its id
claude-opus-5-5$4.00 / $20.00$2.80 / $14.00The current Opus — /model opus and the planning phase of opusplan with the pins below
claude-fable-5-2$8.00 / $40.00$5.60 / $28.00The most demanding long-horizon work

A note on Claude Sonnet 5: Anthropic made its $2.00 / $10.00 rate the permanent standard price on August 31, 2026 — the increase to $3 / $15 once scheduled for September 1 was cancelled — and Kunavo charges $1.40 / $7.00, 30% under it. Full per-model detail is in the Claude API pricing guide.

Caching is part of the price

Claude Code re-sends the whole conversation on every step, so most of what it bills is repeated context — which is exactly what prompt caching is for. Anthropic's published multipliers apply to Claude Code traffic like any other:

Token classMultiplier on the input rate
Cache read (a hit)0.10×; 0.05× on Opus 5.5 and Sonnet 5.5, 0.025× on Fable 5.2
5-minute cache write1.25×
1-hour cache write2×

In a warm session most input tokens are cache reads at a tenth of the input rate or less, which is why a naive tokens × price estimate overstates the bill badly. It also explains the single worst cost pattern in Claude Code: coming back after a long break misses the cache and reprocesses the entire context at full price.

What a month actually costs

Cost tracks agentic steps, not calendar days. One step is a model round trip inside a task — roughly 25,000 input and 1,200 output tokens once the system prompt, conversation and fresh file context are counted. At Kunavo rates, uncached:

ModelOne stepA 20-step taskA heavy day (5 tasks)
claude-haiku-4-5$0.0217$0.434$2.17
claude-sonnet-5$0.043$0.868$4.34
claude-opus-5-5$0.087$1.736$8.68

Twenty such days on Sonnet 5 is about $87 — versus about $124 at Anthropic's list price for the same model. Those are deliberately pessimistic numbers: no caching, one model for everything.

For a reality check against real deployments, Anthropic's own cost documentation reports an average of about $13 per developer per active day and $150–250 per developer per monthacross enterprise deployments, with 90% of users staying under $30 per active day. That is at list price on a mixed model diet, and it is the number to plan a team budget against.

The break-even

Put the two routes on the same axis. At $0.043 per step on Sonnet 5:

  • $20 (Pro) buys about 460 agentic steps a month — roughly 23 twenty-step tasks.
  • $100 (Max) buys about 2300 steps — roughly 115 tasks.
  • $200 (Ultra) buys about 4600 steps — roughly 230 tasks.

So the rule is simple: if you comfortably clear a couple of dozen real tasks a month, every month, the flat fee is good value. If your usage is bursty — some weeks heavy, some weeks nothing — per-token wins, because the quiet weeks are free. Teams almost always want keys regardless, for per-seat attribution and hard spend caps. Run your own numbers in the cost calculator.

Costing a session from its own numbers

Claude Code's /usage prints the four token counts for the current session. That is the honest input to a cost estimate, because it separates cache reads from fresh input:

claude_code_cost.py
# What one Claude Code session costs, from its own token counts.
# Run /usage in Claude Code to get the four numbers for a real session.
RATES = {  # USD per 1M tokens on Kunavo: (input, output, cache-read share of input)
    "claude-haiku-4-5":  (0.70, 3.50, 0.1),
    "claude-sonnet-4-6": (2.10, 10.50, 0.1),
    "claude-sonnet-5":   (1.40, 7.00, 0.1),
    "claude-opus-5":     (3.50, 17.50, 0.1),
    "claude-opus-5-5":   (2.80, 14.00, 0.05),
}

def session_cost(model, inp, out, cache_read=0, cache_write=0):
    i, o, r = RATES[model]
    return (
        inp / 1e6 * i            # fresh input
        + out / 1e6 * o          # output, incl. thinking tokens
        + cache_read / 1e6 * i * r      # cache reads: 10% of input, 5% on Opus 5.5
        + cache_write / 1e6 * i * 1.25  # 5-minute cache writes at 125%
    )

# The example session Anthropic's docs print for /usage:
print(session_cost("claude-sonnet-5", 1_200, 5_300, 940_000, 50_000))

Note what the split does to the total: in that example the session carries 940,000 cache-read tokens against 1,200 fresh input tokens, and the cache reads bill at a tenth of the input rate.

The four levers that move the number

  1. Let prompt caching work. Cache reads bill at a tenth of the input rate or less, and Claude Code re-reads the conversation on every step, so this is the largest single effect available (how it works).
  2. Clear between unrelated tasks. Context is re-sent every step, so one all-day session is quadratically expensive. A fresh task is a small context again.
  3. Match the model to the job. Leaving the largest model as the default is the most common cause of a surprising bill. Sonnet handles most coding work; reserve Opus for architecture and hard multi-step reasoning.
  4. Keep the Haiku line. Without ANTHROPIC_DEFAULT_HAIKU_MODEL=claude-haiku-5-5, Claude Code's haiku alias asks for Haiku 5.5 from v2.1.293, which Kunavo serves, and for a dated Haiku 4.5 id before that, which it does not, so /model haiku and subagents set to haiku return 404 on an older install, and on any install once the alias moves to a newer Haiku that Kunavo has not added yet. The same line moves the calls Claude Code makes on its own for summaries and titles off your main model.

Running Claude Code on Kunavo

Claude Code reads ANTHROPIC_BASE_URL natively, so it works against any endpoint that serves the Anthropic Messages API — no plugin, no proxy, no patched binary. That is the supported way to keep the same CLI and the same models at a lower per-token rate:

~/.zshrc
export ANTHROPIC_BASE_URL=https://api.kunavo.com
export ANTHROPIC_AUTH_TOKEN=sk-kn-...
export ANTHROPIC_MODEL=claude-sonnet-5
export ANTHROPIC_DEFAULT_OPUS_MODEL=claude-opus-5-5
export ANTHROPIC_DEFAULT_SONNET_MODEL=claude-sonnet-5-5
export ANTHROPIC_DEFAULT_HAIKU_MODEL=claude-haiku-5-5

ANTHROPIC_BASE_URL is the origin only — Claude Code appends /v1/messages itself. Keep the model lines: Claude Code's built-in default and its opus alias both resolve to the newest Opus, and if Kunavo does not serve that model yet, the first request returns 404. The sonnet alias asks for Sonnet 5.5, which Kunavo now serves; ANTHROPIC_DEFAULT_SONNET_MODEL keeps /model sonnet, the execution phase of opusplan and any subagent set to model: sonnet on Sonnet 5.5 when the alias moves to a model Kunavo has not added yet. The opus pin is Opus 5.5 (claude-opus-5-5, $2.80 / $14.00 per million here), which needs Claude Code v2.1.280 or later — run claude update on an older install. Use ANTHROPIC_AUTH_TOKEN rather than ANTHROPIC_API_KEY: the two go in different headers, and the latter needs a one-time interactive approval that is never re-prompted once declined. Create the sk-kn- key in the dashboard after signing up and topping up $10 — no monthly fee, and the balance doesn't expire, so a quiet month genuinely costs nothing. Full setup, including what stops working behind a gateway, is in the Claude Code router guide; credential details are in the Claude Code API key guide.

Frequently asked questions

How much does Claude Code cost?

Two separate prices, depending on how you pay. On a claude.ai subscription, Claude Code is included in the plan fee: Pro is $20/month ($17/month billed annually, $200 up front), Max is $100/month and Ultra, the former Max 20x, is $200/month. On an API key you pay per token with no monthly fee — as of November 23, 2026 Anthropic lists Claude Sonnet 5 at $2.00 input / $10.00 output per million tokens and Claude Opus 5 at $5.00 / $25.00, and Anthropic's own documentation puts real-world usage at around $13 per developer per active day and $150–250 per developer per month. Through Kunavo the same models are $1.40 / $7.00 and $3.50 / $17.50.

Is Claude Code cheaper on a subscription or an API key?

It depends on how many agentic steps you run, not on how many days you work. A step is roughly 25,000 input and 1,200 output tokens, which is $0.043 on Claude Sonnet 5 at Kunavo rates. A $20 Pro subscription is therefore worth about 460 steps a month — around 23 twenty-step tasks. Below that, pay-as-you-go is cheaper and a quiet month costs nothing; above it, the flat fee wins until you hit the plan's usage limits.

Which Claude Code plan do I need?

Claude Code requires a Pro, Max, Ultra, Team, Enterprise or Console (API) account — Anthropic's setup documentation states that the free Claude.ai plan does not include Claude Code access. Pro suits one developer working daily inside its limits; Max (5x Pro's usage) and Ultra (10x Pro's usage a week, with no five-hour limit once the account is verified) exist for people who keep hitting them; Team and Enterprise add per-seat allowances and admin spend controls. An API key is the alternative to all of them and has no plan at all.

Does a Claude Pro, Max or Ultra subscription include API access?

Pro does not. Max includes $100 and Ultra $200 a month in Claude API credits, which you claim after seven days on the plan by linking a Claude Console organization in the plan's billing settings; unused credits expire at the end of each billing cycle, and they pay for API calls, the Agent SDK and claude -p run with a key from that organization, not for interactive Claude Code in the terminal, IDE, desktop app or web. A plan and an API key are otherwise separate, and the two do not stack: while a credential variable such as ANTHROPIC_AUTH_TOKEN is set, Claude Code uses the key instead of your saved login, the plan's limits stop applying and usage bills to whoever owns the key. Unset it and Claude Code goes back to the subscription.

What does Claude Code cost per month for one developer?

Anthropic's cost documentation reports about $13 per developer per active day and $150–250 per developer per month across enterprise deployments, with 90% of users staying under $30 per active day. Those are list-price figures on a mixed model diet. On Kunavo rates the same volume lands 30% lower, and routing background calls to Claude Haiku 5.5 ($0.07 / $0.35 per million) takes another slice off.

How do I make Claude Code cheaper?

Four levers, in order of effect: let prompt caching work (cache reads bill at 10% of the input rate on most Claude models and 5% on Opus 5.5 and Sonnet 5.5, and Claude Code re-reads the whole conversation every step), clear between unrelated tasks instead of running one long session, match the model to the job rather than leaving the largest one as default, and keep ANTHROPIC_DEFAULT_HAIKU_MODEL=claude-haiku-5-5 in a gateway setup: the haiku alias asks for Haiku 5.5, which Kunavo serves, but Claude Code before v2.1.293 asks for a dated Haiku 4.5 id Kunavo does not serve, and the alias moves to Anthropic's next Haiku the day it ships, which returns 404 until Kunavo adds it; the line also moves Claude Code's own background calls off the main model. Pointing ANTHROPIC_BASE_URL at a cheaper endpoint compounds with all four.

Is there a free way to run Claude Code?

The CLI, the editor extensions and every piece of configuration are free. The model calls are not, and there is no free tier that lets Claude Code call a model at zero cost — Anthropic's setup docs state the free Claude.ai plan does not include Claude Code access. The lowest-commitment route is a pay-as-you-go key, which carries no monthly fee.

Does Claude Code cost extra on top of the model calls?

No. The CLI, the VS Code and JetBrains extensions, hooks, skills, subagents and MCP servers are all free. You pay for inference and nothing else. Even idle, background jobs like conversation summarisation typically stay under $0.04 per session.

Why did my usage climb in a session where I barely typed?

Because every request carries the full conversation, and every tool call is another request carrying that batch of results. A one-line question in a session that has been open all day still pays for the whole history. Cache misses after a long break are the other common cause — the first message back reprocesses everything at full price.

Do agent teams cost more?

Substantially. Each teammate runs its own context window as a separate instance, and Anthropic's documentation puts agent teams at roughly 7× the tokens of a standard session when teammates run in plan mode. Keep teams small and shut teammates down when their work is done.

Is Claude Code free?

Free to install, not free to run — the long version is in is Claude Code free.

How do I install it in the first place?

See install Claude Code for the per-OS commands, first-run login, and the errors people actually hit.

What about Codex CLI — is it cheaper?

Cost is a property of the model and the step count, not the CLI. The comparison that matters is in Claude Code vs Codex CLI.