Claude Code is included with Claude's subscriptions — Pro at $20/mo, Max 5× at $100/mo, and Max 20× at $200/mo — or you can run it pay-as-you-go on the API, billed per token. There's no separate "Claude Code plan"; your Claude subscription is the plan. Here's how the two models compare and which one actually saves you money.

Advertisement

The plans at a glance

Claude Code, Anthropic's terminal coding agent, draws from the same usage allowance as your Claude chat subscription. That means the more you pay, the larger your token windows, and the more agentic coding you can do before you're throttled. Here's the lineup.

PlanPriceWhat you get for Claude Code
Pro$20/moClaude Code included, shared with chat usage. Fine for light-to-moderate coding.
Max 5×$100/mo~5× Pro usage — roughly 88,000 tokens per 5-hour window. For daily coding.
Max 20×$200/mo~20× Pro usage — roughly 220,000 tokens per 5-hour window. All-day heavy use.
APIPay per tokenNo monthly fee; billed by model. Best for variable or team usage.

Pro — $20/mo

Pro at $20/mo is the entry point, and it's the same plan that unlocks Claude chat, Opus 4.8 and Projects. Claude Code is bundled in and shares your usage allowance, so a heavy coding session eats into the same budget as your chat messages.

For part-time coding — small projects, occasional debugging, weekend builds — Pro is enough and excellent value. The moment you're running Claude Code for hours a day, though, you'll hit the 5-hour window limits and it's time to look at Max. We cover the tool itself in our Claude Code review.

Max 5× and 20×

Max is built for developers who live in Claude Code. Max 5× at $100/mo gives roughly five times Pro's usage — about 88,000 tokens per 5-hour window — which is enough for most full-time developers. Max 20× at $200/mo pushes that to roughly 220,000 tokens per 5-hour window for the heaviest workloads.

The jump from Pro to Max 5× is the one most working developers make. If you're constantly hitting limits on Pro, $100/mo for 5× the headroom is usually cheaper than the equivalent API spend and keeps your monthly cost predictable. Max 20× is for people who genuinely code with an agent all day, every day.

Advertisement

Pay-as-you-go API

Instead of a subscription, you can point Claude Code at the Anthropic API and pay only for the tokens you use. Rates are per model:

ModelInput (per M tokens)Output (per M tokens)
Sonnet 5 (standard)$3$15
Sonnet 5 (intro, through Aug 31, 2026)$2$10
Opus 4.8$5$25

The API has no monthly minimum, which suits variable or team usage. The catch: agentic coding burns tokens fast, and heavy Opus 4.8 sessions can run to hundreds of dollars a month — real-world estimates put all-day API coding at $100–$200+ per developer. Sonnet 5 is far cheaper and handles most coding well, so route to Opus only for the hardest problems.

How the token windows work

Subscription usage is measured in rolling 5-hour windows, not a flat monthly cap. Each window gives you a token budget — bigger on higher plans — and it resets a few hours later. This is why Max plans are quoted as "5×" and "20×" rather than a fixed number of messages.

In practice, that means bursty coding is fine on Pro, but sustained all-day sessions will exhaust a Pro window and pause you until it resets. If you routinely hit that wall, upgrading to Max buys you a bigger window rather than a bigger monthly total. Sonnet 5 also stretches your budget further than Opus 4.8, since it costs less per token.

Which plan is worth it?

Start on Pro at $20/mo — it includes Claude Code and is plenty for part-time coding. If you code daily and keep hitting window limits, move to Max 5× at $100/mo; that's the sweet spot for most professional developers. Reserve Max 20× at $200/mo for all-day agentic workflows.

Choose the API instead if your usage is spiky or you're billing a team and want to pay only for what you consume — just keep an eye on Opus 4.8 spend. Either way, Claude Code is one of the strongest coding tools of 2026; see how it compares in Claude Code vs Cursor and the wider best AI coding assistants roundup.

Frequently Asked Questions

How much does Claude Code cost in 2026?

Claude Code is included with Claude's subscription plans: Pro at $20/month, Max 5x at $100/month, and Max 20x at $200/month. You can also run it pay-as-you-go on the API, billed per token.

Is Claude Code included with Claude Pro?

Yes. Claude Code comes with the $20/month Pro plan, sharing your Claude usage allowance. Pro is enough for light-to-moderate coding, but heavy daily users typically move to a Max plan for the larger token windows.

What is the difference between Max 5x and Max 20x?

Max 5x ($100/mo) gives roughly 5x the usage of Pro — about 88,000 tokens per 5-hour window. Max 20x ($200/mo) gives roughly 20x Pro — about 220,000 tokens per 5-hour window — for all-day heavy coding.

How much does the Claude Code API cost?

On the API you pay per token by model. Sonnet 5 is $3 per million input and $15 per million output tokens at standard pricing ($2/$10 introductory through August 31, 2026). Opus 4.8 is $5 input and $25 output per million tokens.

Should I use a subscription or the API for Claude Code?

For predictable monthly cost, use a Pro or Max subscription. For variable or team usage where you want to pay only for what you consume, the API is often cheaper — but heavy Opus 4.8 use on the API can run to hundreds of dollars a month.

Is Claude Code worth it?

For developers, yes. At $20/month on Pro it's one of the best-value agentic coding tools, and the Max tiers pay off if you code with it all day. Actual value depends on how much you use it and which model you run.

Advertisement