DuetDuet
BlogGuidesPricing
Log inStart free
  1. Blog
  2. Guides
  3. Claude Code Pricing 2026: Pro vs Max vs API Costs Explained
Guides
claude-code
pricing
claude-pro

Claude Code Pricing 2026: Pro vs Max vs API Costs Explained

A plain-English breakdown of Claude Code pricing in 2026. Compare Pro ($20), Max ($100/$200), Team, and API costs side by side, plus real monthly scenarios for solo devs, teams, and agencies.

Duet Team

AI Cloud Platform

·April 24, 2026·23 min read·
Claude Code Pricing 2026: Pro vs Max vs API Costs Explained

If you've spent any time trying to figure out what Claude Code actually costs, you've probably come away more confused than when you started.

There's a $20 Pro plan, a $100 Max plan, a $200 Max plan, raw API pricing with five different token rates. There are weekly limits that reset on a rolling window, a Team tier where Claude Code only works on certain seats, and a scary footnote about how your API key can silently override your subscription and bill you separately.

None of this is in one place. Anthropic's pricing page tells you the sticker price. It doesn't tell you which plan actually fits a solo developer shipping a side project, a team of five, or an agency running Claude Code across a dozen client codebases.

This guide fixes that. We'll break down every Claude Code pricing tier in plain English, compare them side by side, walk through real monthly cost scenarios, flag the hidden costs most buyers miss, and be honest about when Max is the right call, when API usage wins, and when a managed platform like Duet makes more sense than paying Anthropic directly.

By the end, you'll know exactly what Claude Code will cost you, not some hypothetical power user, and which plan to pick.

TL;DR

Claude Code ships under four pricing models: Pro at $20/month, Max 5x at $100 and Max 20x at $200, API pay-as-you-go ($1 to $25 per million tokens), and Team Premium seats at $100/seat with a 5-seat minimum. The right answer depends on how much you use it, whether you're solo or on a team, and how much billing predictability you need.

  • Solo dev under 50M tokens/month: Claude Pro at $20. Don't overthink.
  • Claude Code is your primary IDE: Max 20x at $200. Stop fighting rate limits.
  • Team of 3 to 10 with uneven usage: a managed platform with pooled usage like Duet beats $100/seat Team Premium math.
  • Agency with bursty client work: Duet for predictability, API for pure per-client cost tracking.

Claude Code pricing tiers at a glance

Claude Code Pro vs Max vs API usage

Claude Code has three pricing models that look similar on the surface but behave very differently in practice. Pick the wrong one and you'll either hit a wall mid-afternoon or pay two to three times what you needed to.

Subscription plans (Claude Pro and Claude Max)

This is the most common entry point. You pay a flat monthly fee and get a token allowance that resets on a 5-hour rolling window, with a weekly ceiling layered on top. There are three tiers:

  • Claude Pro: $20/month. Access to Sonnet 4.6 and Opus 4.6, roughly 44,000 tokens per 5-hour window, and about 40 to 80 hours of Sonnet use per week. Enough for focused coding sessions, not enough for all-day Claude Code as your primary IDE.
  • Claude Max 5x: $100/month. Around 88,000 tokens per 5-hour window and 140 to 280 hours of Sonnet plus 15 to 35 hours of Opus per week. Built for developers who were hitting Pro limits daily.
  • Claude Max 20x: $200/month. Roughly 220,000 tokens per 5-hour window, 240 to 480 hours of Sonnet, and 24 to 40 hours of Opus weekly. This is the tier where rate limits stop interrupting your day.

Claude Code plan token allowances compared

One important detail: your usage limit is shared across Claude.ai chat and Claude Code. If you burn tokens chatting with Claude in the browser, that eats into the same bucket Claude Code draws from.

Claude Code API pricing

Instead of a subscription, you can pay per token through the Anthropic API. Claude Code will authenticate with an API key and bill you based on what you actually use.

Current rates:

  • Opus 4.7: $5 per million input tokens, $25 per million output tokens
  • Sonnet 4.6: $3 input, $15 output per million tokens
  • Haiku 4.5: $1 input, $5 output per million tokens
  • Prompt caching: cache writes cost 1.25x the input rate, cache reads cost 0.1x

API billing is precise but unpredictable. Heavy Opus usage on a large codebase can easily run $30 to $60 per day. That's the flexibility tax.

Claude Code team plans and Enterprise

For groups, Anthropic offers Team plans starting at $20/seat/month on Standard, but Claude Code is only included on Premium seats at $100/seat/month, with a minimum of 5 seats. You can mix Standard and Premium seats on the same team.

Enterprise unlocks a 500K context window, HIPAA readiness, SSO, custom data retention, and custom pricing through Anthropic sales. It's the right fit if compliance or procurement is in the room.

The new "extra usage" wrinkle

In 2026, Anthropic added an "extra usage" toggle on every paid consumer plan. When you hit your included limit, instead of stopping cold, you can opt in to continue at standard API rates with a monthly spend cap you control.

This matters more than it sounds. It turns the Pro vs Max decision from "which ceiling do I want" into "which baseline do I want, and how much overflow am I comfortable paying for."

Extra usage toggle in Claude account settings

The trap everyone falls into

If you have an ANTHROPIC_API_KEY environment variable set on your machine, Claude Code will silently use the API key instead of your Pro or Max subscription.

You'll keep getting billed through the API while your $200/month Max plan sits there unused.

Check your shell profile before you pay for a subscription. This is the single most common Claude Code pricing mistake we see.

Checking for ANTHROPIC_API_KEY in your shell

Claude Code pricing comparison

This is the table to bookmark. Every plan Anthropic sells, plus the API option and where a managed platform fits, laid out so you can see the real trade-offs in one glance.

PlanPriceModels5-hr windowWeekly limit (Sonnet)Weekly limit (Opus)Best for
Claude Pro$20/moSonnet 4.6, Opus 4.6~44K tokens40–80 hrsLimitedSolo devs, side projects, a few focused hours/day
Claude Max 5x$100/moSonnet 4.6, Opus 4.6~88K tokens140–280 hrs15–35 hrsDaily Claude Code users hitting Pro limits weekly
Claude Max 20x$200/moSonnet 4.6, Opus 4.6~220K tokens240–480 hrs24–40 hrsFull-day Claude Code workflows, large repos
Team (Premium)$100/seat/mo, min 5 seatsSonnet 4.6, Opus 4.6Per-seat Max-equivalentPer seatPer seatTeams of 5+ with centralized billing
EnterpriseCustomAll + 500K contextCustomCustomCustomCompliance, SSO, HIPAA, procurement
API (pay-as-you-go)$3–25 per M tokensAll modelsNo capNo capNo capUnpredictable or very low usage, automation
DuetFlat team pricingClaude (managed)PredictableNo rate-limit surprisesNo rate-limit surprisesTeams who want flat monthly + shared access without per-seat math

More about the table

Price column. Max 5x and Max 20x aren't "better Pro." They're bigger buckets. The ceiling gets higher, the model access stays the same.

5-hour window. This is the rolling budget. Every prompt costs tokens; tokens reset 5 hours after your first request of a session. Miss this and you'll think Claude Code "broke" at 3pm.

Weekly limits. Added in August 2025 to stop 24/7 background usage. Most users never hit them. Power users running Claude Code across multiple repos all week can.

Models. Pro, Max, and Team all get the same Claude models. What differs is how much you can use them.

Opus vs Sonnet. Opus is the expensive, smarter model. On Max plans you get a separate weekly allowance for Opus on top of Sonnet. On Pro, Opus access is limited enough that most Pro users default to Sonnet.

Which Claude Code plan fits which buyer?

  • Hobbyist, student, occasional user. Claude Pro. You will not out-use $20/month.
  • Working developer coding 4 to 6 hours/day. Pro with extra usage enabled, or Max 5x if you hit the wall weekly.
  • Claude Code is your primary IDE. Max 20x. Stop fighting the limits.
  • Team of 5+ with one invoice. Team Premium seats, or a managed platform with flat pricing.
  • Agency with bursty, variable workloads. API for bursts, or Duet for predictability.
  • Healthcare, finance, regulated. Enterprise, no shortcuts.

Where the comparison table lies a little

Two asterisks worth knowing:

  1. "Tokens per 5-hour window" is Anthropic's estimate based on average usage. Large codebases burn tokens 3 to 5x faster than average because every file you load eats context. A 200K-line monorepo on Pro will hit limits long before "44K tokens" suggests.
  2. Team seats require a 5-seat minimum. A 3-person startup doesn't have a clean Anthropic option. You're either buying 5 seats and wasting 2, or stacking individual Max subscriptions and losing centralized billing.

This is where Claude Code pricing stops being a table and starts being a decision. The next section walks through four real scenarios with actual monthly numbers.

Claude Code cost scenarios

Sticker prices lie. What matters is what hits your card at the end of the month once you account for how you actually work. Here are four honest scenarios with real numbers.

Which Claude Code plan fits which buyer

The solo developer (side project + day job)

Profile. Full-time job, ships a side project on nights and weekends. Uses Claude Code 1 to 2 hours a day, mostly Sonnet, occasional Opus for hard bugs.

Estimated monthly usage. ~25M tokens.

Cost breakdown:

  • Pro ($20/mo). Fits comfortably, maybe 2 to 3 "you've hit your limit" moments per month. Best choice.
  • Max 5x ($100/mo). Overkill. You'd use 20% of the allowance.
  • API pay-as-you-go. ~$40 to $60/mo at Sonnet rates. More expensive than Pro and less predictable.

Verdict. Pro at $20/month. Turn on extra usage as a safety net.

The full-time Claude Code user

Profile. Developer who's gone all-in on Claude Code as their primary IDE. 6 to 8 hours a day, large repo, heavy Opus usage for architecture work.

Estimated monthly usage. ~300M tokens.

Cost breakdown:

  • Pro ($20/mo). You'll hit the 5-hour wall before lunch. Don't.
  • Max 5x ($100/mo). Workable most days. You'll hit weekly Opus limits by Friday.
  • Max 20x ($200/mo). Rate limits stop being a factor. This is the tier built for you.
  • API pay-as-you-go. Roughly $800 to $1,500/mo at this volume. One developer case study showed $15,000 in API charges over 8 months vs ~$800 on Max. A 93% swing.

Verdict. Max 20x at $200/month. The math isn't close.

The team of 5

Profile. Five-person engineering team, all using Claude Code daily, mix of Sonnet and Opus, one AP person who wants a single invoice.

Estimated monthly usage. Varies per dev; 3 heavy, 2 light.

Cost breakdown:

OptionMonthly costNotes
5× individual Max 5x$500No central billing, no admin controls, reimbursement headache
5× individual Max 20x$1,000Same problem, more expensive
Anthropic Team (5 Premium seats)$500Centralized billing, but 2 light users are overpaying
Mix: 3 Premium + 2 Standard$380Only if the 2 light users don't need Claude Code at all
Managed platform (Duet)Flat team priceUnlimited seats, shared access, predictable monthly

If every engineer codes with Claude daily, Team Premium at $500/mo is fine. If usage is uneven, which it almost always is, a managed platform with flat pricing avoids paying $100/seat for someone who uses Claude Code twice a week.

The agency

Profile. Eight developers rotating across a dozen client codebases, highly bursty (all-hands-on-deck during sprint weeks, quiet between). Needs shared access, not per-seat math.

Estimated monthly usage. 500M+ tokens, spiky.

Cost breakdown:

  • 8× Max 20x. $1,600/mo. Overpays in quiet weeks, still rate-limited per account during bursts.
  • Anthropic Team (8 Premium). $800/mo. Better, but per-seat allowances don't pool. One developer can hit limits while another's bucket sits idle.
  • API pay-as-you-go. $2,000 to $4,000/mo at this volume, fully variable. Great for cost tracking per client, brutal for cash flow.
  • Duet (managed, team plan). Flat monthly, usage pools across the team, no per-seat ceilings on individuals.

Agencies are where "predictable monthly + pooled usage" beats per-seat Anthropic pricing almost every time. Either Duet or an Enterprise conversation with Anthropic.

The pattern

Look across all four scenarios and one thing stands out: Anthropic's direct pricing is optimized for the individual power user (Max 20x is genuinely a bargain at 300M+ tokens).

It gets awkward for teams with uneven usage and agencies with bursty workloads, because per-seat allowances don't pool and Team pricing assumes everyone uses it equally.

That's the gap managed platforms fill. More on that two sections down.

Hidden Claude Code costs to watch (tokens, context windows, MCP calls)

The sticker price is only half the story. What makes Claude Code pricing genuinely hard to predict are the mechanics underneath, the things that quietly multiply your token burn without showing up on the plan comparison page. Here are the four that trip people up most often.

Context window tax

Every time Claude Code reads a file, that file stays in the context window for the rest of the conversation. Ask Claude to "look at the auth module" in a big repo and you might load 40,000 tokens before you've typed a single real prompt. Every subsequent message re-sends that context.

The practical effect: a 30-minute session on a large codebase can burn 300K to 500K tokens even if you only sent 10 messages. On Pro, that's a meaningful chunk of your 5-hour allowance gone before lunch. On the API, that's real dollars. A long Opus session can quietly cost $15 to $25.

What to do. Use /clear between unrelated tasks. Avoid loading entire directories when a single file will do. If you're on Pro and hitting limits fast, 80% of the time the culprit is context, not prompt count.

Output tokens cost 5x input tokens

API pricing has two numbers for a reason. Input tokens (what you send) are cheap. Output tokens (what Claude writes back) are 5x more expensive across every model. A request that costs $0.10 in input can cost $0.50 in output if Claude writes a long file.

This matters most for Claude Code specifically, because code generation is output-heavy. "Rewrite this 400-line component" is an expensive prompt. "Review this 400-line component and suggest 3 changes" is 10x cheaper.

What to do. Prefer targeted edits over full rewrites. Ask for diffs, not files. If you're on API billing, this one habit can cut your monthly spend in half.

MCP servers and tool calls

Model Context Protocol servers extend Claude Code with external tools: GitHub, databases, browsers, custom APIs. They're powerful, but every tool call is a round-trip. Claude reads the tool's output, which adds to context, which adds to cost.

A single "check the last 20 PRs" MCP call can load 8,000 tokens of PR metadata into context, where it then sits for the rest of your session. Chain three or four MCP calls in one conversation and you've added 30K to 50K tokens of background noise to every subsequent prompt.

What to do. Audit which MCPs load on every session vs on-demand. Turn off ones you don't use. For expensive MCPs (like full repo indexers), prefer explicit calls over auto-loading.

Prompt caching

This one cuts the other way. It's a hidden saving. Anthropic's prompt caching lets you reuse a portion of the context without paying full input price. Cache writes cost 1.25x the input rate, but cache reads cost just 10% of the input rate.

For Claude Code, this matters enormously. Your system prompt, common project files, and long-running conversation history can all be cached. When caching works well, input costs can drop by 80 to 90%.

The catch: caching only helps on API billing. Pro and Max plans already include caching in their flat fee, but you don't see the savings, you just get slightly more effective usage. If you're on API, make sure caching is actually enabled. Many Claude Code configurations don't turn it on by default.

The subscription-override trap

Worth repeating from earlier: if ANTHROPIC_API_KEY is set in your shell, Claude Code uses the API key and bills you at API rates, ignoring your $20 to $200 subscription entirely. People discover this when they see a $400 API bill on top of their $200 Max plan.

What to do. Run echo $ANTHROPIC_API_KEY in your terminal. If anything prints, either unset it before using Claude Code, or accept that your subscription is doing nothing.

The meta-lesson

Claude Code's real cost isn't the plan you pick. It's how you work. A disciplined Pro user can get more done than a sloppy Max 20x user, because the Pro user isn't burning 200K tokens per session on stale context and verbose rewrites. Treat your context window like a budget, not a buffer.

Where Duet fits

Every plan we've covered so far is a direct relationship with Anthropic. You pay them, you get tokens, you manage the seats yourself. For a lot of buyers, that's the right answer.

For others, it creates more problems than it solves: uneven usage across a team, bursty agency workloads, the 5-seat Team minimum, per-developer rate limits that don't pool, and the fact that billing is either predictable-but-wasteful (subscriptions) or flexible-but-volatile (API).

This is the gap managed platforms like Duet fill.

Duet shared workspace running Claude Code for a team

What "managed" actually means

Instead of every developer installing Claude Code locally with their own API key or subscription, Duet runs Claude inside a shared team environment. Each teammate gets access through the same workspace, so prompts, context, and conversations happen in one place the whole team can see.

The pricing implication is what most people come for: flat monthly pricing, shared usage, no per-seat rate limits to juggle.

When Duet beats buying Anthropic direct

A team of 3 to 10 with uneven usage. Anthropic's Team plan demands 5 Premium seats at $100 each, even if two of your developers only use Claude Code twice a week. Duet's pooled model means you pay once and usage flows to whoever needs it.

You want predictable monthly billing. API pay-as-you-go is the most flexible option Anthropic offers, but it's also the one most likely to give you a $3,000 surprise in a heavy month. Duet flattens that into a fixed line item your finance team can actually forecast.

You want shared context. In Claude Code direct, every developer's session is siloed. On Duet, your team works in shared channels, so research, decisions, and prior conversations are visible to the whole team instead of trapped in individual terminals.

You're an agency rotating across client codebases. Duet lets you spin up separate workspaces per client without separate Anthropic subscriptions, and usage pools across your team rather than being pinned to individual seats.

You want Claude Code plus the rest of your stack. Duet bundles Claude access with integrations to GitHub, Google Sheets, Slack-style channels, and hundreds of other tools through a managed MCP layer. You're not just paying for Claude. You're paying for the surrounding infrastructure that makes Claude useful for teams.

When buying Anthropic direct beats Duet

We said we'd be honest, so:

  • Solo developer on Pro ($20/mo). Nothing beats Pro for a single dev with modest usage. Don't overthink this.
  • Hardcore single-user on Max 20x. If you're one person doing 300M+ tokens a month through Claude Code exclusively, $200/month direct is the unbeatable option.
  • Enterprise with SSO, HIPAA, or procurement constraints. Anthropic Enterprise is the right answer when compliance is in the room.
  • Pure API automation. If you're wiring Claude into a product (not developers), the API is the right primitive.

The actual comparison

Buyer typeBest option
Solo dev, under 50M tokens/moAnthropic Pro
Solo power user, 200M+ tokens/moAnthropic Max 20x
Team of 3–4, uneven usageDuet
Team of 5+, even usageAnthropic Team Premium
Team of 5+, uneven or burstyDuet
Agency with multiple clientsDuet
Regulated enterpriseAnthropic Enterprise
Pure API / product integrationAnthropic API

Duet isn't trying to replace Claude Code for individual developers.

It's trying to fix the awkward middle, teams and agencies where Anthropic's per-seat math stops making sense, while bundling in the collaboration layer Claude Code doesn't have on its own.

If that's your situation, check the pricing page. If you're a solo dev coding on weekends, stick with Pro. We'll still be here when your team grows.

Epilogue

Claude Code pricing looks complicated because it is, but once you strip away the tiers and the token tables, the decision comes down to three questions:

How much do you actually use it? Under 50M tokens a month, Pro or API is fine. Over 200M, Max 20x wins by a mile. The middle is where choices matter.

Are you one person or a team? Anthropic's direct plans reward individuals and penalize uneven teams. A managed platform evens that out.

How much do you care about predictability? API pricing is the cheapest option on a good month and the most expensive on a bad one. Subscriptions flatten that curve. Managed platforms flatten it further.

The worst outcome isn't overpaying by $50/month. It's picking a plan, hitting a wall mid-afternoon, and losing three hours of flow state to a rate limit. Whatever you pick, pick it with enough headroom to not think about it again.

Still guessing?

If you're a solo developer, Anthropic's pricing page is the right place to start. Grab Pro or Max and get back to shipping.

If you're a team of 3+ with uneven usage, an agency juggling client codebases, or anyone who wants Claude access bundled with team collaboration, shared context, and predictable flat pricing, see how Duet compares.

No per-seat math, no surprise API bills, no 5-hour walls in the middle of a sprint.

See Duet pricing →

Frequently Asked Questions

Is Claude Code free?

No. There is no free Claude Code tier. You need at least a Pro subscription ($20/month), a Max plan, a Team Premium seat, or API credits to use it. Anthropic briefly experimented with including Claude Code in free tiers but walked it back.

How much does Claude Code cost per month?

Claude Code costs $20/month on Claude Pro, $100/month on Claude Max 5x, or $200/month on Claude Max 20x. Team plans are $100/seat/month for Premium seats (minimum 5 seats). You can also pay per token through the Anthropic API, which ranges from $1 to $25 per million tokens depending on the model.

What's the difference between Claude Pro and Claude Code?

Claude Pro is the $20/month subscription that includes Claude.ai (the chat interface) and Claude Code (the coding agent in your terminal). They share the same usage limits. "Claude Code pricing" is really "Claude subscription pricing, applied to Claude Code."

Claude Pro vs Max: which gives more of everything?

Roughly, yes. Max 5x gives you about 5x the token allowance of Pro per 5-hour window, and proportionally larger weekly limits. Max 20x gives you about 20x Pro. The model access is identical across tiers. You're paying for a bigger bucket, not better Claude.

Can you use a Pro subscription for Claude Code on the API?

No, these are separate billing systems. Your Pro or Max subscription covers usage through Claude Code's built-in authentication. API access is billed separately per token. And if you have ANTHROPIC_API_KEY set in your environment, Claude Code will use the API and bill you separately from your subscription.

What happens when I hit my Claude Code usage limit?

On Pro and Max, Claude Code stops responding until your 5-hour window resets. If you've enabled "extra usage," overflow continues at standard API rates up to a monthly cap you set. On the API, there's no cap. You keep paying per token.

Is Claude Max 20x worth it for most developers?

Only if Claude Code is your primary development environment and you're coding 6+ hours a day. For most working developers, Max 5x at $100/month is the sweet spot. For occasional users, Pro is enough.

How do Claude Code team plans work?

Anthropic Team plans start at $20/seat/month for Standard access, but Claude Code specifically requires a Premium seat at $100/seat/month, with a minimum of 5 seats. You can mix Standard and Premium seats on one team. Usage does not pool across seats. Each developer has their own limits.

Is there a cheaper alternative to Claude Max 20x for heavy users?

The honest answer is no, not from Anthropic directly. Max 20x at $200/month is already priced aggressively versus API equivalent usage. If you're a team, managed platforms like Duet can be cheaper because usage pools across developers, but for a single power user, Max 20x is the best deal in the market.

Does Claude Code pricing include Opus 4.7?

Pro, Max, and Team plans currently include Sonnet 4.6 and Opus 4.6 (the older flagship). Opus 4.7 access is through the API or Enterprise plans. Check Anthropic's pricing page for the current model lineup.

Can you switch between Claude Code plans?

Yes. You can upgrade or downgrade monthly. Downgrades take effect at the next billing cycle. There are no long-term contracts for Pro or Max. You can drop from Max 20x back to Pro anytime.

One more thing

Claude Code pricing is a moving target. Anthropic adjusts tiers, introduces new overflow toggles, and shifts model lineups every few months. Bookmark this post, or subscribe to Duet's newsletter where we track pricing changes the week they land.

Try Duet free →

Keep reading

  • How to run Claude Code in the cloud 24/7
  • Claude Duet: the always-on Claude Code workspace
  • Duet vs Claude Code: what's actually different
  • Claude Code for founders: GTM and ops automation
  • Claude Code vs Cursor vs Codex

Ready to run this workflow in your own workspace?

Start free in Duet and launch your always-on agent in minutes.

Start free

Related Articles

How to Run Claude Code in the Cloud (24/7 Persistent)
Guides
13 min read

How to Run Claude Code in the Cloud (24/7 Persistent)

Run Claude Code on a persistent cloud server. Keep sessions alive for days, access from anywhere, and collaborate with your team without draining your battery.

Duet TeamMar 1, 2026
Best AI Coding Tool 2026: Claude Code vs Cursor vs Codex
AI & Automation
11 min read

Best AI Coding Tool 2026: Claude Code vs Cursor vs Codex

Looking for the best AI coding tool in 2026? We tested Claude Code, Cursor 3, and Codex (GPT-5.3) on real startup work. Pricing, speed, agents — ranked.

Duet TeamMar 1, 2026
Build and Deploy a Web App Using Only AI
AI & Automation
13 min read

Build and Deploy a Web App Using Only AI

No dev team? No problem. Build and ship a fully functional web app using only AI — from idea to deployed in days.

Duet TeamMar 1, 2026

Product

  • Start free
  • Pricing
  • Documentation

Compare

  • See all comparisons

Resources

  • Blog
  • Guides
  • Getting started

Company

  • Contact

Legal

  • Terms
  • Privacy
  • Data Protection
Download on the App StoreGet it on Google Play

© 2026 Aomni, Inc. All rights reserved.