Claude Code can be billed through a Claude subscription or an API account, and that choice determines how you track usage, what happens when you reach a limit, and where the bill appears. Subscriptions draw from a usage allowance that resets over time, while API billing charges for the tokens in each request.
Pro, Max, and Team plans include Claude Code, and one account allowance covers Claude chat and coding sessions under five-hour and weekly limits. Fable 5.1 is the part that needs extra attention: Pro, Team Standard, and seat-based Enterprise Standard use usage credits from the first request, while Max plans and Premium seats include up to 50% of weekly Fable usage. API accounts start with token billing and have no subscription allowance.
For occasional repository work, Pro is usually enough, and daily users get more headroom from Max. Team or Enterprise is good for an organization that needs shared administration, and scripts, CI jobs, and project budgets work best with API billing.
Claude Code plans and prices
All prices are in US dollars before tax, and annual plans are billed upfront.
| Plan | Price | Usage |
|---|---|---|
| Free | $0 | Claude chat only |
| Pro | $20/month or $200/year | Included Claude Code limits; Fable 5.1 uses usage credits |
| Max 5x | $100/month | 5x Pro session usage; Fable models use up to 50% of the weekly limit |
| Max 20x | $200/month | 20x Pro session usage; Fable models use up to 50% of the weekly limit |
| Team Standard | $25/seat/month or $20/seat/month with annual billing | More usage than Pro; Fable 5.1 uses usage credits |
| Team Premium | $125/seat/month or $100/seat/month with annual billing | 5x Standard usage; Fable models use up to 50% of the weekly limit |
| Enterprise | $20/seat/month plus API usage | Organization-managed billing; access depends on seat and contract |
| API or Console | Pay by token | No included subscription usage |
Can Claude Free use Claude Code?
Claude Free does not include Claude Code in the terminal, IDE extensions, or on the web, although Claude chat can generate and analyze code, create files, and run code inside the app. Those chat sessions cannot operate on a local repository.
Claude Code works inside a repository, where it can inspect files, edit code, run commands and tests, use Git, and carry the task history across multiple turns. The terminal and supported IDEs require a paid Claude subscription or a Claude Console account, and Claude Code on the web is available to Pro, Max, Team, and Enterprise accounts with Claude Code access.
A free account handles code questions inside Claude chat, whereas local repository work requires Pro or another paid plan. A Console account supports that local workflow and bills each request at API rates.
Claude Pro pricing and limits
Claude Pro costs $20 per month, or $200 for an annual subscription paid upfront, which works out to $16.67 per month, and the subscription puts Claude chat and Claude Code under one account.
Pro does not promise a fixed number of prompts because a short request that reads one file can use much less capacity than a debugging session that searches a repository, reruns tests, and carries a long history. The model and effort level also affect how quickly the allowance is used.
The allowance is shared across Claude, so messages in the web, desktop, and mobile apps leave less capacity for Claude Code during that window.
Claude Max 5x and Max 20x
Max is the individual plan for people who use Claude throughout the day.
- Max 5x costs $100 per month and includes five times Pro’s session allowance.
- Max 20x costs $200 per month and includes twenty times Pro’s session allowance.
The 5x and 20x figures compare each tier with Pro during a session, and weekly limits, model caps, and other capacity controls continue to apply. Max accounts have an all-model weekly limit and a separate Sonnet weekly limit, and the Usage page shows the reset time for your account.
Max 5x is great for regular feature work and repeated debugging, while Max 20x suits sustained daily work across several repositories or parallel sessions. Neither tier is unlimited, and Fable sessions, multiple agents, and several Claude Code processes consume the allowance faster.
Team Standard and Premium seats
Team is for organizations with 2 to 150 members, whose owners can mix Standard and Premium seats and assign each member the capacity that fits their work.
A Standard seat costs $25 per month, or $20 with annual billing, and suits occasional or moderate coding work that needs more usage than Pro.
A Premium seat costs $125 per month, or $100 with annual billing, and includes five times the usage of a Standard seat. Premium seats suit people who spend much of the day in Claude Code, and lighter users can stay on Standard.
Team puts billing, seats, connectors, and Claude Code settings under one organization, with central administration, single sign-on, usage analytics, and a default policy that excludes customer content from model training.
Before a session starts, check which account Claude Code is using: a personal login charges the personal subscription, and an API key in the environment sends usage to the Console bill.
Enterprise pricing and usage
Enterprise costs $20 per seat per month plus usage at API rates, with annual billing. The seat covers product access and administrative controls, and model charges depend on the work the organization runs.
Pro, Max, and Team include a usage allowance, whereas usage-based Enterprise bills tokens from the first request and has no included five-hour pool.
Seat-based Enterprise plans can include usage with Standard and Premium seats, and an owner can enable usage credits after a member reaches the seat limit. The contract and organization settings determine which billing model applies.
Enterprise includes role-based permissions, user and organization spending limits, audit logs, the Compliance API, custom retention settings, network controls, and usage reporting.
Claude Code in the terminal, IDE, and web
| Runs on | Access and billing | |
|---|---|---|
| Terminal | Local machine | Paid plan or API account |
| VS Code and Cursor | Local IDE | Paid plan or API account |
| JetBrains | Local IDE | Paid plan or API account |
| Claude Code web | Anthropic cloud | Pro, Max, Team, or Enterprise |
In the terminal, Claude Code can reach a local repository, read and edit files, run shell commands, and use local development tools. IDE integrations put those actions beside the editor and add inline diffs, file references, plan review, and conversation history.
Claude Code on the web runs in an isolated cloud environment, connects to a repository after you sign in, continues after you close the browser, and prepares a branch or pull request. Those tasks draw from the account’s Claude Code capacity.
Related: Claude Code Commands Cheat Sheet
How the five-hour limit works
A subscription’s five-hour window measures recent account usage, not a reserved block of coding time, so a demanding task can use the allowance much faster than a short request.
Available capacity returns when the window resets, and Claude shows that reset time as you approach or reach the limit. The reset time is not tied to midnight, and unused capacity does not carry into the next window.
Claude chat on the web, desktop, and mobile apps draws from the subscription capacity alongside terminal, IDE, and web coding sessions.
Anthropic does not publish a reliable prompt count for each plan because a short request and a repository-wide debugging session can consume very different amounts of capacity depending on the task, model, and context. The Usage page shows the allowance assigned to your account.
How weekly limits work
Paid plans place weekly limits on top of the five-hour window, so a session reset restores short-term capacity without increasing the weekly pool.
Max plans have an all-model weekly limit and a separate Sonnet weekly limit, while eligible plans include a Fable allowance within the weekly pool. The reset day and time stay fixed from week to week, and the Usage page lists active weekly, model, and feature limits.
A large session allowance does not remove the weekly cap, and several demanding days can exhaust the pool even when no single session reaches its five-hour limit.
What consumes Claude Code usage
Claude Code usage comes from the tokens sent to and returned by the model, including conversation history, project instructions, file contents, tool definitions, command output, error logs, and summaries from other agents.
Your allowance falls faster when:
- A long conversation carries more history into each later turn.
- A large repository requires more file reads and search results.
- Fable and Opus consume more capacity than lighter models.
- Higher effort settings spend more tokens on reasoning.
- Large test logs, generated files, and pasted stack traces add context.
- MCP servers add tool definitions before a tool call runs.
- Subagents and agent teams create separate model conversations.
- Parallel Claude Code sessions draw from one account simultaneously.
- Repeated corrections leave failed approaches in the conversation history.
The context window determines how much information fits in one conversation, whereas the usage limit tracks how much model work the account can perform over time. You may have context space left after the five-hour allowance is exhausted.
Use /clear when the next task does not need the old conversation, and use /compact when the current task needs a shorter version of earlier work. Both reduce future token use, but neither refunds capacity spent during the current window.
Choosing a model in Claude Code
Run /model inside Claude Code to see the models available to the account. Note that changing models does not start a new conversation or restore capacity already used.
| Model | Best fit and plan access |
|---|---|
| Fable 5.1 | Hardest long-running agents and multi-stage work. Max and Premium seats include up to 50% of weekly usage; Pro and Standard seats use usage credits |
| Opus 5 | Cross-cutting refactors, difficult debugging, and architecture; consumes more quota than Sonnet |
| Sonnet 5 | Default for most coding: feature work, debugging, tests, and reviews |
| Haiku 4.5 | Fast lookups, small edits, and high-volume scripted runs |
Related: Claude Code Timeline: Release Date and Major Updates
Usage credits after the included allowance
Anthropic calls paid overage “usage credits,” although older account screens may use the label “Extra Usage.” Both labels refer to paid use after the included allowance runs out.
For models covered by your plan, Claude draws from included capacity first. Fable follows a separate billing rule: Pro, Team Standard, and standard seat-based Enterprise use credits from the first request, while Max, Team Premium, and premium seat-based Enterprise include up to 50% of weekly Fable usage. Claude warns you before paid use begins, and a funded credit balance lets the session continue at standard API rates.
Under Settings > Usage, you can add prepaid funds, set a monthly spending limit, enable alerts, and turn on auto-reload, which buys more credit when the balance reaches the chosen threshold. These charges are separate from the subscription.
Team owners buy organization credits, set spending limits for the organization or individual users, and enable the feature. Seat-based Enterprise plans can apply controls by organization, seat type, group, or user, and the Usage page shows the controls available to that organization.
Usage credits do not change the normal reset time: the included five-hour pool resets on its assigned schedule, and paid credits apply after that pool runs out.
Claude Code API pricing
| Model | Input per MTok | Output per MTok |
|---|---|---|
| Claude Fable 5.1 | $10.00 | $50.00 |
| Claude Opus 5 | $5.00 | $25.00 |
| Claude Sonnet 5 | $2.00 | $10.00 |
| Claude Haiku 4.5 | $1.00 | $5.00 |
Prompt caching prices
| Model | 5-minute cache write per MTok | 1-hour cache write per MTok | Cache read per MTok |
|---|---|---|---|
| Claude Fable 5.1 | $12.50 | $20.00 | $0.25 |
| Claude Opus 5 | $6.25 | $10.00 | $0.50 |
| Claude Sonnet 5 | $2.50 | $4.00 | $0.20 |
| Claude Haiku 4.5 | $1.25 | $2.00 | $0.10 |
Compare model rates: AI LLM API Pricing
Prompt caching helps when successive requests reuse context because Claude Code can reuse project instructions and other recurring prompt content. Cache writes have their own price, while cache reads cost less than sending those tokens as new input. Fable 5.1 reads cost 2.5% of its base input price, and the other models in the table use the standard 10% rate.
API rate limits govern requests or tokens over short periods and operate separately from the five-hour and weekly subscription windows. A traffic spike can trigger a rate-limit error even when the API account has credit.
Claude subscription login versus an API key
Claude Code uses the authentication method in the current session to decide where usage is billed.
With subscription authentication, /login connects Claude Code to a Pro, Max, Team, or Enterprise account, so interactive use draws from that plan or seat. Paying for the subscription does not create a Claude API credit balance.
With API authentication, Claude Code sends requests through a Console account, Amazon Bedrock, Google Cloud, Microsoft Foundry, or another supported provider, each of which applies its own token prices, rate limits, and spending controls.
If ANTHROPIC_API_KEY is set, Claude Code uses that key and ignores the subscription login for the session, so the session incurs API charges even when the user also pays for Pro or Max.
After changing login methods or development environments, check the active account because keys can come from shell profiles, IDE settings, containers, or CI secrets even when the current command does not print them.
Subscription and API balances do not overlap: Pro capacity stays inside the plan, Console credit pays API charges, and usage credits extend a subscription after its included capacity runs out.
What happens when a limit is reached
| Limit | Result and next step |
|---|---|
| Five-hour subscription | Included use stops until the displayed reset time. Wait, enable credits, switch to billed API usage, or upgrade |
| Weekly subscription | Included use stops until the assigned weekly reset. Wait, use credits, or change plans |
| Model-specific | Select another listed model or wait for its reset |
| Usage-credit balance | Add prepaid funds or enable auto-reload |
| Monthly spend | The owner raises the limit or paid use waits for the next billing period |
| API rate | Reduce concurrency and retry with backoff, or request a higher tier |
| API credit or billing | Add credit, correct billing, or raise the approved spending limit |
| Context window | Run /compact, start a new session, or load less material |
How to check current usage
Individual subscribers can open Settings > Usage in Claude to see five-hour and weekly bars, reset times, usage credits, and month-to-date credit spending, including activity across Claude products that a local terminal record would miss.
Inside Claude Code, /usage shows plan usage bars, recent activity, and local consumption, with a breakdown showing whether models, skills, subagents, plugins, or MCP servers account for a large share of recent use. It does not include work from another machine or the Claude web app.
Use /status to confirm the active account, model, and configuration, then check the Claude Usage page or Console for billing totals after switching between subscription and Console authentication.
The /usage-credits command opens credit controls for a subscription login, but it is unavailable when Claude Code uses only an API key.
For API billing, the Claude Console Usage page is the final billing record. Claude Code estimates session cost from local token counts, while the Console includes server-side calculations, adjustments, and usage from every client that shares the account.
Related tool: Claude Code Usage Monitor
Team and Enterprise owners also have organization analytics for adoption, activity, and spend, while member-level views depend on the organization’s settings and the viewer’s role.
Which plan fits each workload?
Start with the least expensive plan that handles a normal week, then check the Usage page after several real projects. One unusually large repository or debugging session can be an exception, whereas repeated interruptions usually indicate that the plan is too small.
| Workload | Recommended option |
|---|---|
| Code explanations and generated snippets in Claude chat | Free |
| A few focused repository tasks each week | Pro |
| Regular feature work and debugging | Max 5x |
| Heavy daily coding across several repositories | Max 20x |
| A team with mixed usage levels | Team with Standard and Premium seats |
| A development team with frequent Claude Code use | Team Premium |
| Security, identity, audit, and policy requirements | Enterprise |
| CI jobs, scripts, Agent SDK work, or unattended automation | API or separate Agent SDK credits |
| A short period of unusually heavy coding | Pro or Max with usage credits |
| Project budgets and machine-driven workloads | API with workspace limits |
Use less Claude Code capacity without giving up useful work
- Start a new session when you move to an unrelated task.
- Ask Claude to inspect named files or functions before searching the whole repository.
- Exclude generated files, build output, and large logs from the context unless they contain the error.
- Use Sonnet for routine implementation and reserve costlier models for decisions that need them.
- Run
/compactbefore a long conversation becomes difficult to manage. - Disable MCP servers you do not use because their tool definitions enter every request.
- Reserve parallel agents for independent tasks.
- Write the first prompt with a specific target, constraints, and acceptance test.
FAQs
Do weekly limits reset when a new billing month starts?
No. The weekly reset follows the day and time assigned to the account, so it is separate from the subscription renewal date.
Can usage credits be turned off?
Yes. Individual subscribers can disable usage credits under Settings > Usage, after which Claude stops paid overage when the included allowance runs out, while Team and Enterprise settings belong to organization owners.
Does switching models reset a usage limit?
No. Switching models changes future consumption but does not restore capacity used in the current session or weekly pool.
Does upgrading from Claude Pro to Max take effect immediately?
Yes. Max starts as soon as the upgrade takes effect, and Anthropic applies the unused value of the current subscription to the new plan.
Does canceling Pro or Max remove Claude Code immediately?
No. The paid plan stays active until the current billing period ends, after which the account moves to Free without Claude Code access.
Does claude -p use the normal Claude Code subscription limit?
No. Since June 15, 2026, claude -p and the Claude Agent SDK have used a separate monthly credit on eligible paid plans. The credit is $20 for Pro and Team Standard, $100 for Max 5x and Team Premium, and $200 for Max 20x and seat-based Enterprise Premium. Usage-based Enterprise receives $20. Seat-based Enterprise Standard does not.
Does Claude Code on the web charge for the cloud virtual machine?
No. Claude Code on the web draws from the signed-in account’s Claude Code allowance, and Anthropic does not add a separate virtual-machine charge.
Does Anthropic train models on Claude Code sessions?
Free, Pro, and Max accounts follow the user’s privacy setting for model training, while Team, Enterprise, and API data is not used for model training by default.
Related resources
- The Ultimate Claude Code Resource List: Agents, Skills, Plugins & More
- 10 Best CLI AI Coding Agents (Open Source)
- Claude Code Local: Run Claude Code With Local AI on Apple Silicon
- OpenAI API Rate Limits: RPM, TPM, Tiers, and 429 Errors
- AI Coding Plan Comparison: Prices, Limits, and Features
- Gemini API Free Tier Limits: Requests Per Day & Setup










