Torna alle guide
Pricing·5 agosto 2026·Aggiornato il 4 settembre 2026·9 min di lettura

Claude Code pricing 2026 — subscription vs API, per-model rates, 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 September 4, 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)API key (pay-as-you-go)
What you payFlat monthly fee, from $20Per token, no monthly fee
LimitsRolling 5-hour and weekly usage windows, 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, 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:

PlanPriceWhat you get
Pro$20/month, or $17/month billed annually ($200 up front)Claude Code included, with Pro's usage limits
MaxFrom $100/monthTwo tiers — 5× or 20× Pro's usage — for people who keep hitting Pro's limits
TeamStandard seat $25/month ($20 annually); Premium seat $125/month ($100 annually)Per-seat allowance shared with Claude chat, plus admin spend reporting
EnterpriseCustomSeat allowances, usage credits, per-user analytics API

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, 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.

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-4-5$1.00 / $5.00$0.40 / $2.00Background calls, summaries, simple subagents
claude-sonnet-4-6$3.00 / $15.00$1.20 / $6.00Everyday coding — the default worth keeping
claude-sonnet-5$2.00 / $10.00$2.00 / $10.00Near-Opus coding quality at Sonnet cost
claude-opus-4-7$5.00 / $25.00$2.00 / $10.00Hard refactors, long-horizon agentic runs
claude-opus-5$5.00 / $25.00$2.00 / $10.00The current Opus — plan mode, multi-file features
claude-fable-5$10.00 / $50.00$7.00 / $35.00The most demanding long-horizon work

One caveat stated plainly: Claude Sonnet 5 is the one model Kunavo does not price under Anthropic. 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 matches it exactly at $2.00 / $10.00. For a Claude Code session where per-token cost is the deciding factor, claude-opus-5 is the better route: $2.00 / $10.00 on Kunavo, the same price Anthropic charges for Sonnet 5, with Opus-tier reasoning. 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.1×
5-minute cache write1.25×
1-hour cache write

In a warm session most input tokens are cache reads at a tenth of the rate, 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.0124$0.248$1.24
claude-sonnet-4-6$0.037$0.744$3.72
claude-opus-5$0.062$1.240$6.20

Twenty such days on Sonnet 4.6 is about $74 — versus about $186 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.037 per step on Sonnet 4.6:

  • $20 (Pro) buys about 540 agentic steps a month — roughly 27 twenty-step tasks.
  • $100 (Max, entry tier) buys about 2700 steps — roughly 134 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)
    "claude-haiku-4-5":  (0.40, 2.00),
    "claude-sonnet-4-6": (1.20, 6.00),
    "claude-opus-5":     (2.00, 10.00),
}

def session_cost(model, inp, out, cache_read=0, cache_write=0):
    i, o = RATES[model]
    return (
        inp / 1e6 * i            # fresh input
        + out / 1e6 * o          # output, incl. thinking tokens
        + cache_read / 1e6 * i * 0.10   # cache reads bill at 10% of input
        + 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-4-6", 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. Cached input bills at 10% of the input rate, 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. Route background calls to Haiku. Claude Code makes its own calls for summaries and titles. ANTHROPIC_DEFAULT_HAIKU_MODEL=claude-haiku-4-5 is one line and it is pure saving.

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-4-6
export ANTHROPIC_DEFAULT_HAIKU_MODEL=claude-haiku-4-5

ANTHROPIC_BASE_URL is the origin only — Claude Code appends /v1/messages itself. 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.

FAQ

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) and Max starts at $100/month. On an API key you pay per token with no monthly fee — as of September 4, 2026 Anthropic lists Claude Sonnet 4.6 at $3.00 input / $15.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.20 / $6.00 and $2.00 / $10.00.

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.037 on Claude Sonnet 4.6 at Kunavo rates. A $20 Pro subscription is therefore worth about 540 steps a month — around 27 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, 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 exists 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 subscription include API access?

No. claude.ai subscriptions and Claude API keys are separate products with separate billing, 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–60% lower depending on the model, and routing background calls to Claude Haiku 4.5 ($0.40 / $2.00 per million) takes another slice off.

How do I make Claude Code cheaper?

Four levers, in order of effect: let prompt caching work (cached input bills at 10% of the input rate, 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 route Claude Code's own background calls to Haiku via ANTHROPIC_DEFAULT_HAIKU_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.