Claude Code Pricing 2026: Plans, Limits and API Cost
Anthropic's own docs put the average Claude Code spend at "around $13 per developer per active day". That figure covers enterprise deployments billed at API rates. It is not a plan price, and most people who search for Claude Code pricing want the plan price.
Here is the short answer. Claude Code comes with every paid Claude plan. As of November 2026, claude.com/pricing prints Pro at $20 a month ($17 a month billed yearly, "$200 billed up front"), Max at $100 a month and Ultra at $200 a month. Team seats cost $25 or $125 a month ($20 or $100 billed yearly). Enterprise is $20 a seat a month plus usage at API rates. The Free plan does not include Claude Code.
If you have ever hit a limit at 3 p.m. in the middle of a refactor, you already know the card price is not the whole cost. This page covers what each plan includes, how the limits work, what the API charges per token, why the bill repeats in long sessions, and which plan fits which kind of use. I build Hindsight, a memory system for coding agents, so I watch what agents spend re-learning a repository. Every figure below comes from Anthropic's pricing page, support article and docs, read this month. For the memory side of Claude Code, see my page on Claude Code memory.
Claude Code Pricing at a Glance
Anthropic names four individual plans: Free, Pro, Max and Ultra. Each plan prints a tagline: Pro is "For everyday work", Max is "For all-day work" and Ultra is "For your longest tasks". Here is every plan that includes Claude Code, as of November 2026.
| Plan | Monthly price | Yearly billing | Claude Code | Usage wording as printed |
|---|---|---|---|---|
| Free | $0 | none | No | "Limited usage every 5 hours and every week" |
| Pro | $20 | $17 a month, "$200 billed up front" | Yes | "More usage than Free" |
| Max | $100 | not shown | Yes | "5x Pro usage" every 5 hours and every week |
| Ultra | $200 | not shown | Yes | "10x Pro usage every week", "No 5-hour limit" for verified accounts |
| Team, standard seat | $25 a seat | $20 a seat | Yes | "more usage than Pro" |
| Team, premium seat | $125 a seat | $100 a seat | Yes | "5x more usage than standard seats" |
| Enterprise | seat price plus usage at API rates | US$20 a seat a month, billed annually, 20 seat minimum | Yes | "Usage cost scales with model and task." |
The page adds that prices exclude tax and that "Price and plans are subject to change at Anthropic's discretion." The Claude Code row of the feature table reads No for Free and Yes for Pro, Max and Ultra. The pricing FAQ says it plainly: "Claude Code is included in all paid plans."
The plan price buys you a usage allowance. It does not buy you a fixed number of messages. The cheapest token is the one Claude Code never has to send again, so a good first step is to give Claude Code a memory of each repository with the Hindsight Coding Agents plugin. I come back to that in the section on repeated context.
What Each Claude Code Plan Includes and How the Limits Work
Pro and Max have a five-hour session limit and a weekly limit. Ultra has a weekly limit, and verified Ultra accounts have no five-hour limit. That wording comes from Anthropic's support article on using Claude Code with your plan.
The multiples are printed on the pricing page. Max gives 5x the Pro usage every five hours and every week. Ultra gives 10x the Pro usage every week. Max and Ultra also include Fable "for up to half your weekly limit", and the support article says they have a separate weekly limit for Fable.
One pool feeds everything. The support article says the limits "are shared across Claude and Claude Code, meaning all activity in both tools counts against the same limits." Your plan also covers Claude Code in supported IDEs, including VS Code, Cursor and other VS Code forks, and JetBrains IDEs like IntelliJ and PyCharm. IDE use counts toward the same limits. If you are choosing between the two editors, I compare them in Claude Code vs Cursor.
Teams and companies buy Claude Code through two other plans. Team is "For teams of 2 to 150" and sells a standard seat and a premium seat with 5x the usage of the standard one. The premium seat card also prints "Up to $500 per month in pooled API credits". Enterprise is "For large businesses operating at scale". The pricing FAQ says it is billed annually and includes everything in Team plus advanced security and admin controls, including SCIM, audit logs, custom data retention and role-based access. You can start Enterprise self-serve or contact sales for a quote.
Say you're Priya, a backend developer on Pro at $20 a month. She starts a two-hour refactor in Claude Code and keeps the Claude chat tab open for quick questions about a library. At 3 p.m. Claude Code stops at the five-hour limit. The terminal and the chat tab drew from one pool, so the questions she asked in the browser spent the same allowance as the refactor.
What can Priya do? The pricing FAQ lists three choices. She can wait for the limit to reset. She can move to a higher plan, which means $100 a month for Max. Or she can turn on usage credits, which keep her working "at standard API rates". The support article adds that Claude Code may keep working briefly at a five-hour limit to finish the step in progress, and says that allowance is rolling out gradually.
Claude Code API Pricing: Token Rates and What Developers Spend
The cost page opens with one sentence: "Claude Code charges by API token consumption." On a plan, Anthropic converts that consumption into usage limits. On an API key, you pay the token rates directly. Here are the rates from Anthropic's pricing page, per million tokens, as of November 2026.
Haiku 5.5 prices apply to prompts up to 100,000 tokens. Longer prompts cost $0.50 input and $2.50 output. Models from Claude 4.7 on use a newer tokenizer that, per Anthropic, "produces approximately 30% more tokens for the same text". So a prompt costs more tokens on a new model than on Sonnet 4.6, even before the price per token changes.
Which model does Claude Code pick? The model configuration docs say the default model is Opus 5.5 on Pro, Max, Ultra, Team, Enterprise and the Anthropic API. At $4 input and $20 output per million tokens, that is the third pair of bars in the chart.
How much does a developer spend? The cost page gives one number: "Across enterprise deployments, the average cost is around $13 per developer per active day and $150-250 per developer per month, with costs remaining below $30 per active day for 90% of users." That is an average over enterprise deployments, so your figure depends on model, codebase size and how many instances you run.
Max and Ultra include a monthly API credit "to build on the Claude Platform: $100 on Max, $200 on Ultra". Those credits "can't be used in Claude Code or the Claude apps." Don't count them as Claude Code money.
If you are weighing Claude Code against OpenAI's tool, plan prices for both are in Codex vs Claude Code.
Is Claude Code Free?
No. The Free plan's Claude Code row reads "No", and Claude Code is "included in all paid plans". The other route is an API key, and the cost page says Claude Code charges by API token consumption.
The route you sign in with decides which bill you get. A plan sign-in draws from the plan's limits. The support article warns about the other case: "If you have an ANTHROPIC_API_KEY environment variable set on your system, Claude Code will use this API key for authentication instead of your Claude subscription (Pro, Max, Ultra, Team, or Enterprise plans), resulting in API usage charges rather than using your subscription's included usage."
Picture Marco, who pays for Max. Months ago he set ANTHROPIC_API_KEY in his shell profile for a side project and forgot it. Claude Code now picks up that key, and his Console account takes the charges at API rates while his Max allowance sits unused. His first clue is a bill that has nothing to do with the $100 a month he expects. Before you blame the plan, check the environment.
Why Your Claude Code Bill Repeats: Re-Sent Context and What a New Session Forgets
The pricing page lists plans and limits and says nothing about this part. Cost follows how much text rides along with each prompt you send.
The cost page, in its section on why usage climbs in a long session, says: "Claude Code sends your full conversation with every request, and each time Claude uses tools it sends another request carrying that batch of tool results." With prompt caching, Claude Code re-reads that history at the cached token rate. Even so, "a one-line question in a session that has been open all day still draws usage for the whole conversation." The page also says that your first message after a break longer than the cache lifetime "misses the cache and reprocesses your full context."
A new session starts with less, and that has its own price. Per Anthropic's memory docs, a new session loads your CLAUDE.md files and the first 200 lines, or the first 25 KB, of auto memory's MEMORY.md. Auto memory is machine-local. claude --continue reopens the last session in the current directory. Claude Code does keep part of your project. My page on the CLAUDE.md file shows what each layer holds. What none of those layers does is learn from how the last session went.
Say you're Sam, on Max. On Monday Sam opens a new session in the payments repository. Before the first change, Sam tells Claude Code again that the API tests need a local Redis instance and which migration broke last week. Claude Code then reads a dozen files to re-learn the layout. Every one of those messages and file reads rides along in each request for the rest of the session. Part of the spend pays to re-learn what the last session already found.
My core argument is that a file a person writes does not learn. I think AI agent memory should learn from outcomes. Hindsight keeps one bank per repository, coding-agent::{gitProject}. It recalls on the first prompt of a session and retains the transcript at session end, per the Coding Agents plugin page. You install it with one line:
npx @vectorize-io/hindsight-coding-agents install claude-code
Here is what Hindsight states about its own measurement. On AMB's sdebench, a coding agent works through 61 real repository tasks, three runs each, with and without memory. For Claude Code, the mean of 3 runs shows cost per task at $0.445 without memory and $0.338 with Hindsight. Corrections per task fell from 0.85 to 0.36. Accuracy did not move: Hindsight states every run solves 60 to 61 of the 61 either way. These are Hindsight's figures on its own benchmark. They describe those 61 tasks, not your bill.
Install the plugin with the line above, or view Hindsight on GitHub and read how the bank works before you try it.
How to Lower Your Claude Code Cost
Anthropic's cost page lists the habits that cut token use. Here are the ones I'd start with, in the order I'd do them.
- Check where usage goes. Run
/usageat the Claude Code prompt. Its breakdown recommends a change for behaviors behind 10% or more of your recent usage, and long context and cache misses are on that list. Common mistake: tuning prompts before reading the breakdown. - Clear between tasks. The cost page says to use
/clear"to start fresh when switching to unrelated work." Every unrelated message you keep in the session is resent with each request. When you want continuity,/compact Focus on code samples and API usagetells Claude what to preserve. Compacting reads the whole conversation, so it is itself a large request. - Pick the model for the task. The cost page says "Sonnet handles most coding tasks well and costs less than Opus." Switch with
/model, or setmodel: haikufor simple subagent tasks. Theopusplanalias uses Opus in plan mode and Sonnet for execution, per the model configuration docs. Common mistake: leaving the Opus 5.5 default on for renaming variables. - Keep CLAUDE.md short. The docs advise under 200 lines per file, because the file loads into context at session start. Move multi-step procedures into skills, since "a skill's body loads only when it's used". I explain the file format in Claude Code skills explained, and the loading rule comes from Anthropic's skills docs.
- Trim tool overhead. Run
/contextand/mcpto see what your MCP servers add. The cost page says MCP tool definitions are deferred by default, so only tool names and server instructions enter context until Claude uses a tool. - Write specific prompts. The cost page says vague requests like "improve this codebase" trigger broad scanning. Name the file and the function.
- Unset ANTHROPIC_API_KEY when you mean to bill the plan. Marco's lesson from the section above. Check your shell profile.
Plan users can also see where they stand in Settings > Usage on claude.ai. The /usage-credits command opens that page.
Which Claude Code Plan to Pick
Choose by how you use the tool. These are the numbers, not a verdict for or against any plan.
- Occasional sessions: Pro at $20 a month, "For everyday work". If you hit the five-hour limit once a week, stay here.
- Daily sessions that hit the five-hour limit: Max at $100 a month, "For all-day work", with 5x the Pro usage.
- Long unattended tasks: Ultra at $200 a month, "For your longest tasks", with no five-hour limit for verified accounts.
- A team of 2 to 150: Team standard seats at $25 a month, or premium seats at $125 with 5x the usage of a standard seat.
- CI jobs and scripts: an API key, billed per token.
Here is a worked case for a lead with 10 developers. Ten standard seats at $25 a month cost $250. Ten premium seats at $125 cost $1,250. Anthropic's docs figure of $150 to $250 per developer per month at API rates comes to $1,500 to $2,500 for 10 developers. That docs figure covers enterprise deployments, so treat it as a reference point and not a quote.
Whatever you pick, the plan price sets your ceiling and your habits set how fast you reach it.
What to do next
- Read your own usage with
/usagebefore you change plans. - Run
/clearbetween unrelated tasks, and keep CLAUDE.md under 200 lines. - Check your shell for ANTHROPIC_API_KEY if your bill and your plan disagree.
- Install the Hindsight Coding Agents plugin with
npx @vectorize-io/hindsight-coding-agents install claude-code, so the next session starts with what the last one learned. - Reread claude.com/pricing before you commit to a plan, because Anthropic can change prices at its discretion.
Start free on Hindsight Cloud. Hindsight is open source under MIT, it also runs self-hosted, and the plugin has an uninstall command, so trying it costs you one line to add and one to remove.
Frequently Asked Questions
Does Claude Code usage count against my Claude chat limit?
Yes. Anthropic's pricing FAQ says your activity across Claude on web, desktop, mobile and Claude Code draws from the same pool. IDE use counts too, so a long chat in the browser and a long session in the terminal spend one allowance, not two separate ones.
Can I use the Max or Ultra monthly API credits in Claude Code?
No. The support article says the monthly API credits included with the Max plan "can't be used in Claude Code or the Claude apps", and says the same for Ultra. The credits are $100 on Max and $200 on Ultra, and they are for building on the Claude Platform.
Which model does Claude Code use by default?
Opus 5.5 on Pro, Max, Ultra, Team, Enterprise and the Anthropic API, per the model configuration docs. On the API it costs $4 input and $20 output per million tokens. Switch with /model, or use the sonnet, haiku or opusplan aliases.
Does Claude Code cost extra in VS Code or JetBrains?
No. Your Pro, Max or Ultra plan covers Claude Code in VS Code, Cursor and other VS Code forks, and JetBrains IDEs like IntelliJ and PyCharm. The usage counts toward the same limits shared across Claude and Claude Code, so an IDE session draws from the same allowance as the terminal.