Claude Code Pricing: Plans, Limits and API Costs

Claude Code has no price of its own. It comes with Claude Pro, Max, Ultra and Team, or you pay per token through the API. Here is what each option costs.

Cover for the guide: Claude Code Pricing: Plans, Limits and API Costs

The first time I checked my API bill after a weekend with Claude Code, I learned that it had been using an old API key from my shell profile instead of my subscription. Nothing was broken. I just did not know how Claude Code decides who pays.

In short: Claude Code has no price tag of its own. You get it with a paid Claude plan (Pro $20, Max $100, Ultra $200 a month, or a Team seat), or you pay per token with a Claude API key. The plan decides how much you can use before you hit a limit. Prices were checked on Anthropic's pages on November 29, 2026.

Key takeaways

  • Claude Code is not part of the Free plan.
  • Pro ($20), Max ($100), Ultra ($200) and Team seats all include Claude Code.
  • Claude Code shares one usage allowance with the Claude apps.
  • An ANTHROPIC_API_KEY in your environment switches Claude Code to API billing.
  • Monthly API credits on Max and Ultra cannot be used in Claude Code.
  • On the API, Sonnet 5.5 costs $2 per million input tokens and $10 per million output tokens.

What are the ways to pay for Claude Code?

There are two: a subscription or the API.

OptionPriceHow usage is limitedBest for
Pro$20/month, or $17/month yearlyFive-hour and weekly limitsDaily use with short sessions
Max$100/month5x Pro, per five hours and per weekHeavy daily coding
Ultra$200/month10x Pro weekly, no five-hour limit for verified accountsLong agent sessions
Team Standard$25/seat monthly, $20 yearlyMore than ProSmall teams
Team Premium$125/seat monthly, $100 yearly5x a Standard seatTeam members who code all day
Claude APIPer tokenYour spend and rate limitsAutomation, CI and occasional use

How do subscription limits apply to Claude Code?

Claude Code draws from the same pool as chat. A long morning in the terminal leaves less for the Claude app in the afternoon.

  • Pro and Max have a five-hour session limit and a weekly limit.
  • Ultra has a weekly limit and, for verified accounts, no five-hour limit.
  • Max and Ultra also have a separate weekly limit for the Fable models.
  • When you hit a limit, you can wait for the reset or turn on usage credits, which are billed at standard API rates.

Inside Claude Code, the /usage and /status commands show where you stand.

How do you make sure Claude Code uses your plan, not your API key?

Claude Code prefers an API key when one is set. If ANTHROPIC_API_KEY exists in your environment, you are billed at API rates even if you pay for Max.

# See if a key is set
echo $ANTHROPIC_API_KEY

# Remove it for this session
unset ANTHROPIC_API_KEY

If the key is set in a file such as ~/.zshrc or ~/.bashrc, remove the line there too, then open a new terminal.

What does Claude Code cost on the API?

On the API you pay per million tokens (MTok). These are Anthropic's current list prices for the newest models:

ModelInputOutputCache hit
Claude Fable 5.2$8 / MTok$40 / MTok$0.20 / MTok
Claude Opus 5.5$4 / MTok$20 / MTok$0.20 / MTok
Claude Sonnet 5.5$2 / MTok$10 / MTok$0.10 / MTok
Claude Haiku 5.5$0.10 / MTok (prompts up to 100,000 tokens)$0.50 / MTok$0.01 / MTok

Coding sessions resend a lot of context, so prompt caching matters. A cache hit on Opus 5.5 costs $0.20 per million tokens instead of $4.

Subscription or API: which is cheaper?

For most people who code with Claude every day, a subscription is cheaper and more predictable. The API makes sense in three cases:

  1. You use Claude Code a few times a month.
  2. You run it in automation, such as a CI job or a scheduled agent.
  3. A company account pays for usage and needs per-token billing.

If you are on the API, set a spend limit in the Claude Console before a long session.

Can Max or Ultra API credits pay for Claude Code?

No. Max includes $100 a month and Ultra $200 a month in Claude API credits, and Team plans get up to $500 a month in pooled credits. Anthropic says the credits on Max and Ultra cannot be used in Claude Code or the Claude apps. Use them for things you build on the Claude Platform.

Bottom line

If you code with Claude most days, start on Pro and move to Max once the five-hour limit keeps interrupting you. Use the API for automation and occasional use, and always check that a stray ANTHROPIC_API_KEY is not billing you twice.

Sources

Questions people ask

Is Claude Code free?

No. Claude Code is not included in the Free plan. It comes with every paid plan, starting with Pro at $20 a month, or you can pay per token with an API key.

How much does Claude Code cost per month?

Claude Code is included in Pro at $20 a month ($17 on the yearly plan), Max at $100, Ultra at $200 and Team seats from $20 to $125. The plan sets how much you can use, not which features you get.

Does Claude Code share limits with the Claude app?

Yes. Chat in the Claude apps, Claude Code in the terminal and Claude Code in your IDE all count toward the same five-hour and weekly limits.

Why is Claude Code charging my API account?

If the ANTHROPIC_API_KEY environment variable is set, Claude Code uses that key instead of your subscription and bills standard API rates. Unset it to use your plan.

Is the API cheaper than a subscription for Claude Code?

It depends on volume. Light, occasional use can be cheaper on the API. Daily coding sessions usually cost less on a subscription, because heavy API use adds up quickly at per-token prices.

Claude CodeClaude Code pricingClaude APIClaude Max
I rest. The agents work. A relaxed panda on a beanbag while a small robot carries its paperwork

One email a week. One agent you can copy.

Every week I send the setup I actually used: the tools, the prompts and the steps. Short enough to read on your phone.

No spam. Unsubscribe with one click.