Claude Code pricing: what each plan costs, what the API costs, and paying only for what you use
Claude Code comes with Claude Pro, Max, Ultra, Team and Enterprise, or runs on an API key per token. What each costs, what developers spend, and how to spend less.


The short answer
Claude Code isn't on the free Claude plan. You get it with a paid plan, Pro and up, where it shares your plan's usage limits, or you sign in with an API key and pay for every token at the API price. On a plan, the price is fixed and the limit is what you hit; on the API, there's no limit but the bill grows with use.
| Plan | Price | Claude Code usage |
|---|---|---|
| Pro | $20 a month, or $17 a month billed yearly | More than Free, reset every 5 hours and every week; Fable is paid with usage credits |
| Max | $100 a month | 5× Pro; Fable included up to half your weekly limit |
| Ultra | $200 a month | 10× Pro each week; no 5-hour limit for verified accounts |
| Team | $20 per seat a month yearly ($25 monthly); premium seats $100 ($125) | For 2–150 people; a premium seat has 5× a standard one |
| Enterprise | $20 per seat a month yearly, at least 20 seats, plus usage at API rates | Admins set spend limits per user and organization |
| API key | Per token; Opus 5.5 and Sonnet 5.5 below | No plan limit; you pay for what you use |
What it costs on the API
| Model | Per million tokens, input / output |
|---|---|
| Claude Opus 5.5 | $4 / $20 |
| Claude Sonnet 5.5 | $2 / $10 |
Anthropic's own figure for enterprise deployments: about $13 per developer per active day and $150–250 per developer per month, with 90% of users under $30 per active day. Your number depends on the model, the size of the codebase, and whether you run several sessions at once or in automation.
Article · Claude Code usage limits: what the messages mean, and how to keep working → Claude Code's 5-hour and weekly limits, and what to do when you hit one.
Article · Is Claude Code free? What it costs, and how to run it for free or for less → Is Claude Code free? Running it on local models with Ollama, or on cheaper providers.
See where your usage goes
Run /usage. On an API key, the Session block shows the session's estimated cost and tokens by model. On a plan, it shows your usage bars and a breakdown of what counts against them: skills, subagents, plugins and each MCP server, with recommendations. When the footer says something like “f to fix 2 of 3”, press f and Claude Code applies the ones it can (v2.1.305 or later).
Spend less
- Use
/clearbetween unrelated tasks; old context is re-sent with every message. - Let Sonnet do most coding and save Opus for hard reasoning; switch with
/model. - Lower
/efforton simple tasks; thinking tokens are billed as output. - Turn off MCP servers you aren't using in
/mcp, and prefer CLI tools such asghwhen they exist. - Send noisy work, such as test runs and log reading, to a subagent on a smaller model.
- Agent teams use roughly 7× the tokens of a normal session when teammates plan; keep their tasks small.
- Be specific, and use plan mode (Shift+Tab) before big changes so a wrong direction doesn't get built.
Article · Subagents in Claude Code and Codex: what they are and how to make your own → Subagents, and how to give one a cheaper model.
Paying per token in Mirasim
Mirasim runs the Claude Code CLI itself, so everything above works the same. What you choose is who pays, per session: your own Claude plan, or Mirasim credit, which charges only for what the session uses, at the discount listed for each model.
| Paying with | What runs | What it costs |
|---|---|---|
| Agent/Model account | Your own Claude sign-in or API key | Your plan's usage, or your API bill |
| Personal credit or space credit | Claude models provided by Mirasim | Off the official API price: Opus 5.5 50% off, Sonnet 5.5 50% off |
1 credit is $1 at the official API price; every model's price and discount is on mirasim.ai/models, and credit packs are on mirasim.ai/pricing. When your Claude plan runs out mid-task, switch the same session to Mirasim credit or to another agent and keep the conversation. A personal Claude subscription is for its owner only, so a session your team steers together runs on space credit or a shared key. Mirasim is not an Anthropic product.
Chapter 16 · Models, accounts and quota › Several accounts, and live quota →
Questions
- Is Claude Code free?
- Not on Anthropic's side: the free Claude plan doesn't include it. You need Pro or a higher plan, or an API key with pay-as-you-go billing.
- Pro or Max for Claude Code?
- If you hit Pro's 5-hour limit most days, Max gives 5× the usage; Ultra gives 10× each week and, for verified accounts, drops the 5-hour limit.
- Does Opus cost more of my plan than Sonnet?
- Yes. How fast you reach a limit depends on the model, how long the conversation is and how big the files are, and Opus uses more than Sonnet for the same work.
Article · Claude Opus 5.5 in Claude Code: vs Sonnet 5.5 and Fable 5.2, how to switch, what it costs → Opus 5.5, Sonnet 5.5 or Fable 5.2: which model to run, and how to switch.
Article · Claude Team plan vs Enterprise: what a development team gets → Claude Team or Enterprise for a team.
Article · Codex pricing: what each ChatGPT plan includes, what an API key costs, and paying only for what you use → The same for Codex: what each ChatGPT plan includes.
Sources
Checked on November 27, 2026 against claude.com/pricing and Anthropic's Claude Code documentation (code.claude.com/docs, Manage costs effectively). API prices are read from the same table as mirasim.ai/models. Anthropic changes plans and prices, so check claude.com/pricing before you buy.
Keep reading

Is Claude Code free? What it costs, and how to run it for free or for less
Claude Code is free to install, but running it on Claude needs a paid plan or an API key. The free and cheap options: local models with Ollama, or other providers.

Claude Code login: how to sign in, switch accounts, and fix login problems
How to log in to Claude Code with a Claude plan, the Console or an API key, which credential wins, how to keep several accounts, and fixes for common login errors.

Codex and Claude Code over SSH: run them on a remote server, and keep them running
How the ChatGPT desktop app and Claude Desktop connect to SSH hosts, how to run the CLIs on a server yourself, sign in without a browser, and keep them running.