Back to guides
Pricing·August 5, 2026·Updated November 29, 2026·9 min read

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

Compare Claude Code subscriptions with API pricing, inspect recorded charges from small development tasks and single-request checks, and estimate a budget from explicit assumptions. These samples are not a representative daily budget.

Last reviewed on .

Claude Code has two separate ways to pay. A claude.ai subscription has a monthly fee and usage limits. An API key bills by usage, with provider rate limits and spending controls. Below are current rates, assumed budgets and dated measurements, each identified separately.

Rates verified November 29, 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 chatProvider rate limits and spending controls apply
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.50Earlier Sonnet generation, available by model ID
claude-sonnet-5$2.00 / $10.00$1.40 / $7.00Sonnet 5, available by model ID
claude-opus-4-7$5.00 / $25.00$3.50 / $17.50Earlier Opus generation, available by model ID
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.00Fable 5.2, available by model ID

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 three small tasks actually cost

On 2026-11-26, we ran Claude Code 2.1.331 through Kunavo on three small synthetic tasks, with Haiku 5.5 and Sonnet 5.5 twice each. Each row is one attempt, including every billed request. Failed attempts and retries remain in the results.

t2-fix fixes a median function and passes its existing tests. t3-count reads five CSV files and writes the exact row counts. t4-multi fixes two bugs across a small shopping-cart project. Acceptance requires normal CLI completion and passing the original grader without changing protected tests or data.

TaskModelRunAcceptedCharged USDSeconds
t2-fixclaude-haiku-5-51Yes$0.00075413.8
t2-fixclaude-sonnet-5-51Yes$0.01514714.8
t2-fixclaude-haiku-5-52Yes$0.00152324.4
t2-fixclaude-sonnet-5-52Yes$0.01305311.2
t3-countclaude-haiku-5-51Yes$0.00092416.3
t3-countclaude-sonnet-5-51Yes$0.02447818.4
t3-countclaude-haiku-5-52Yes$0.00103418.5
t3-countclaude-sonnet-5-52Yes$0.01086610.6
t4-multiclaude-haiku-5-51Yes$0.00118321.1
t4-multiclaude-sonnet-5-51Yes$0.01993320.9
t4-multiclaude-haiku-5-52Yes$0.00169527.7
t4-multiclaude-sonnet-5-52Yes$0.01506813.5

Each attempt starts in an isolated Linux container with a fresh workspace and CLI configuration, medium effort and bare mode, without plugins, hooks or MCP servers. Read, Edit, Write, Glob, Grep and Bash are available to both models, with the same 16-turn limit, 240-second timeout and $0.60 CLI estimate limit. A fresh session does not guarantee a cold provider cache.

Bare mode skips the hooks, skills, plugins, MCP servers, auto memory and CLAUDE.md files that a default session loads. Here the first request of each attempt wrote about 1,700 tokens to the cache, while the default-session smoke checks below wrote about 20,000 for a one-word reply. A default session carries that larger context into every request, so the same tasks would cost more there than this table shows.

Charges come from the dedicated key’s usage ledger, including cache writes and reads and every request of an attempt that failed. The CLI’s list-price estimate is recorded separately. Download the per-request tokens, costs and acceptance results and the prompts, fixtures and reproduction instructions.

Download the per-task charges (CSV) to compare the normal batch with its setup pilot. Filter by protocol before aggregating, then divide the sum of charges, including failed attempts, by the number of accepted runs. The CSV keeps the two denominators separate.

This is a small controlled test, not a customer case or a production coding benchmark. Two repeats per model do not establish a quality ranking or a daily or monthly budget. The evidence also retains all 12 earlier setup attempts, whose restrictive command permissions affected completion; they are excluded from the main comparison, and their charges are disclosed separately. Run your own representative tasks and count the cost of rejected outputs before choosing a model.

Measured Claude Code charges

On 2026-11-26, Claude Code 2.1.331 returned “ok” through Kunavo with the Sonnet and Haiku aliases. These are two single-request smoke checks, not completed coding tasks or a daily budget. Charges below are the recorded usage-ledger deltas, rounded to six decimals.

claude-code-smoke-check.txt
2026-11-26 | Claude Code 2.1.331 | reply: "ok"
model                 fresh  cache_read  cache_write  output  charged USD
claude-sonnet-5-5          4          0       19733      4     0.034567
claude-haiku-5-5           4          0       20556      4     0.001801

The cache writes include the CLI’s initial context, even for a short reply. Download the token counts and measurement scope. For longer coding tasks run with other agents, see the separate OpenCode and Cline measurements.

An assumed monthly budget

For this budget only, one agentic step means one request with 25,000 input and 1,200 output tokens. This is an assumption, not a measured average. The table uses Kunavo rates with no cache hits:

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 would cost about $87, versus about $124 at the model’s list price. This scenario is not a spending limit: larger prompts, more requests and tools can increase the bill.

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 month across enterprise deployments, with 90% of users staying under $30 per active day. These are Anthropic's aggregate observations. They are not a Kunavo measurement or a substitute for measuring your own tasks.

Comparing an API budget with a plan fee

A $20 API budget and a $20 subscription are different products. Divide a budget by the assumed request cost to estimate API volume; that does not tell you how many requests a subscription includes. Estimate your own volume in the cost calculator, then check it against your plan’s usage limits.

At this assumed request size, the break-even sits near 460 requests a month on Sonnet 5. Below that, an API key costs less than the $20 Pro fee; above it, Pro costs less, provided its usage limits cover the same work.

Costing a session from its own numbers

Use /usage to inspect session token counts, but collect individual requests for models with context-based price tiers. The CLI’s dollar estimate may use list prices; the provider’s usage ledger is the billing record. This script uses Kunavo catalog rates:

claude_code_cost.py
# Kunavo catalog estimate. Save one row per API request, not session totals.
# Rates: fresh input, output, cache read, 5m write, 1h write (USD / 1M),
# then long-context threshold, input multiplier, output multiplier.
RATES = {
    "claude-haiku-4-5": (0.7, 3.5, 0.07, 0.875, 1.4, 0, 1, 1),
    "claude-haiku-5-5": (0.07, 0.35, 0.007, 0.0875, 0.14, 100000, 5, 5),
    "claude-sonnet-4-6": (2.1, 10.5, 0.21, 2.625, 4.2, 0, 1, 1),
    "claude-sonnet-5": (1.4, 7, 0.14, 1.75, 2.8, 0, 1, 1),
    "claude-sonnet-5-5": (1.4, 7, 0.07, 1.75, 2.8, 0, 1, 1),
    "claude-opus-5": (3.5, 17.5, 0.35, 4.375, 7, 0, 1, 1),
    "claude-opus-5-5": (2.8, 14, 0.14, 3.5, 5.6, 0, 1, 1),
    "claude-fable-5-2": (5.6, 28, 0.14, 7, 11.2, 0, 1, 1),
}

def request_cost(model, fresh, output, cache_read=0, cache_write=0,
                 cache_write_1h=0, one_hour_policy="as_5m"):
    counts = (fresh, output, cache_read, cache_write, cache_write_1h)
    if any(type(n) is not int or n < 0 for n in counts):
        raise ValueError("Token counts must be non-negative integers")
    if cache_write_1h > cache_write:
        raise ValueError("1h writes are a subset of total cache writes")
    if one_hour_policy not in ("as_5m", "official"):
        raise ValueError("Check the provider's current 1h cache policy")
    i, o, r, w, h, threshold, im, om = RATES[model]
    # Anthropic usage.input_tokens is fresh; reads and writes are separate.
    prompt = fresh + cache_read + cache_write
    if not threshold or prompt <= threshold:
        im = om = 1
    hour = cache_write_1h if one_hour_policy == "official" else 0
    return ((fresh*i + cache_read*r + (cache_write-hour)*w + hour*h)*im
            + output*o*om) / 1e6

# Recorded single-request smoke check, 2026-11-26; not a coding task.
print(request_cost("claude-sonnet-5-5", 4, 4, cache_write=19733))
# Sum request_cost(...) across requests AND models for a task estimate.
# as_5m is Kunavo's default; official applies the 1h rate when confirmed.
# Excludes billing rounding, tools, retries not in your log, and payment fees.
# Reconcile with the provider's usage ledger for the actual charge.

Fresh input, cache reads and cache writes are separate counts. One-hour writes are part of total writes, not extra tokens. Apply a context tier to each request before summing a task; applying it to a whole session can overestimate the cost.

Record the model, token split, retries, elapsed time, accepted output and usage-ledger charge for each task. The existing monitoring workflow helps plan collection; compare the same tasks before and after changing models or context.

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 29, 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?

Compare your measured API spending with the subscription fee and usage limits. The examples below assume 25,000 input and 1,200 output tokens per request; they do not describe a typical task or a subscription allowance. Caching, model choice, retries and context length can change the result.

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. These are Anthropic's aggregate observations, not measurements of your tasks or a Kunavo bill. Measure your own accepted tasks, including failed attempts, before estimating a monthly budget.

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.