OneProvider
CLAUDE CODE · PRICING

Claude Code pricing: plans or API key

Claude Code is not sold on its own. You reach it through a paid Claude plan or through an API key billed per token. Below are both routes with current prices, Anthropic's own spend figures, and a worked example you can redo with your numbers.

Claude Code pricing at a glance

Ways to pay for Claude Code, November 2026
RoutePriceUsageClaude Code
Free plan$0Limited use of the Claude appsNot included
Pro$20 a month, $17 with annual billingMore usage than Free, with limitsIncluded
Max$100 a month5x the Pro usageIncluded
Ultra$200 a month10x the Pro weekly usage, no 5-hour limit for verified accountsIncluded
API keyPer tokenNo plan limit, you pay for what you useWorks

Plan data comes from claude.com/pricing, read on 29 November 2026. Prices exclude tax and Anthropic can change them. Team and Enterprise plans also include Claude Code and are priced separately.

What teams actually spend

Anthropic's Claude Code cost page says that with an API key you pay for token consumption, and gives averages across enterprise deployments: about $13 per developer per active day, $150 to $250 per developer per month, and below $30 per active day for 90% of users.

These are company-wide averages. Your own number depends on the model, the size of the repository and how many sessions run in parallel, so treat them as a sanity check and not as a quote.

What an API-key session costs

With an API key every request is billed as input tokens plus output tokens at the model rate. A coding session sends a lot of context, so the model you pick moves the bill more than anything else.

  • Claude Sonnet 5.5: Input / 1M tokens $2.00, Output / 1M tokens $10.00, Context 1M
  • Claude Opus 5.5: Input / 1M tokens $4.00, Output / 1M tokens $20.00, Context 1M
  • Claude Haiku 5.5: Input / 1M tokens $0.10, Output / 1M tokens $0.50, Context 1M

The balance does not expire and there is no subscription fee.

Example session: 3M input tokens and 0.3M output tokens, no caching. An assumption, not an average.
ModelInputOutputTotal
Haiku 5.53 x $0.10 = $0.300.3 x $0.50 = $0.15$0.45
Sonnet 5.53 x $2.00 = $6.000.3 x $10.00 = $3.00$9.00
Opus 5.53 x $4.00 = $12.000.3 x $20.00 = $6.00$18.00

Cached input is cheaper. For Sonnet 5.5 a token read from the prompt cache costs $0.10 per million instead of $2.00, and Claude Code relies on caching heavily, so real sessions often land below the table.

Subscription or API key

Neither route is better for everyone. Pick by how you work.

  • A subscription fits when you code most days and want a predictable monthly bill.
  • An API key fits when your usage comes in bursts, when you need a budget per person or project, or when Claude Code runs in scripts and CI.
  • You can switch without reinstalling: unset ANTHROPIC_API_KEY to go back to your subscription login, or set the key to leave it.

Pay per token with a OneProvider key

OneProvider is a pay-as-you-go gateway with a native Anthropic endpoint. You top up one USD balance, issue a key with its own name, spend limit and term, and point Claude Code at the endpoint.

  1. Get a key

    Open app.oneprovider.dev or the Telegram bot @oneprovider_robot, top up the balance and issue a key.

  2. Point Claude Code at the endpoint

    Use the root URL without /v1. Set the token as well, or a saved claude.ai login keeps its own billing.

    export ANTHROPIC_BASE_URL=https://api.oneprovider.dev
    export ANTHROPIC_AUTH_TOKEN=sk-...
  3. Set a limit

    Give each key a spend limit in the cabinet. Requests stop at the limit, so a runaway session cannot drain the balance.

The full setup, with settings.json and the usual login conflicts, is in the guide linked below.

Frequently asked questions

How much does Claude Code cost per month?

It depends on the route. Plans are $20 (Pro), $100 (Max) or $200 (Ultra) a month on claude.com/pricing. With an API key you pay tokens only, and Anthropic reports enterprise averages of $150 to $250 per developer per month.

Is Claude Code free?

No. The Free plan does not include Claude Code. The installer costs nothing, but using it needs a paid plan or an API key with credit.

Is Claude Code included in Claude Pro?

Yes. Claude Code is listed on Pro, Max and Ultra, with usage limits that depend on the plan.

Is the API cheaper than a subscription?

Sometimes. Light or uneven use is usually cheaper per token, while all-day use can be steadier on a plan. Multiply your tokens by the per-million rates above to check your own case.

Which model is cheapest for Claude Code?

Haiku 5.5 has the lowest rate in the table, Sonnet 5.5 sits in the middle and Opus 5.5 costs the most. Choose with the --model flag or the ANTHROPIC_MODEL variable.

Can I cap what Claude Code spends?

Yes. With a OneProvider key you set a spend limit per key. In the Claude Console you set a monthly spend limit for the organization.

Claude, ChatGPT, GPT, Cursor and other product names are trademarks of their owners and are used only to describe compatibility. We do not give legal advice: following local rules stays with the user.