The short answer
Claude's free plan doesn't include Claude Code. It works with a paid Claude plan (Pro, Max, Team or Enterprise) or with a Claude Console account you pay for as you use it (setup docs).
The cheapest plan that includes Claude Code is Pro, at $20 a month on monthly billing (pricing page). Claude Code can only be used in the countries Anthropic supports.
Plans
Every paid plan includes Claude Code, and your work in the terminal comes out of the same usage pool as your chats. The limits reset every 5 hours, and a weekly limit comes on top of that. The amounts below are in dollars as on the pricing page, tax not included.
Pro is $20 on monthly billing. If you pay yearly, you pay $200 up front and a month comes to $17. If you're not sure, start with monthly. If you switch to yearly later from Settings > Billing, your unused time is taken off your first yearly invoice (pricing page).
Max is for people who work with Claude all day, and it's billed monthly only (pricing page). 5 times Pro's usage is $100 a month, and 20 times is $200 a month (Max help page).
Team is for teams of 2 to 150 people, and every seat includes Claude Code (help center). A Standard seat gives more usage than Pro, at $20 per person a month on yearly billing and $25 on monthly billing. A Premium seat is $100 a month on yearly billing and $125 on monthly, with 5 times the usage of Standard (pricing page).
The pricing page also lists monthly API credit for Max and Team. According to the help center's Max and Team pages, that credit can't be used in Claude Code.
Using it through the API
Instead of a subscription, you can open a Claude Console account and load credit in advance (Quickstart). You log in to Claude Code with this account, or with an API key you get there, and the tokens you use are billed at standard API prices (Claude Code page).
The prices in the table are per 1 million tokens. Input is the tokens that go to the model, and output is the tokens the model writes (API pricing).
| Model | Input | Output |
|---|---|---|
| Fable 5.1 | $10 | $50 |
| Opus 5.5 | $4 | $20 |
| Sonnet 5.5 | $2 | $10 |
| Haiku 5.5, prompt up to 100,000 tokens | $0.10 | $0.50 |
| Haiku 5.5, prompt over 100,000 tokens | $0.50 | $2.50 |
For most coding work Sonnet is enough, and it's cheaper than Opus. Keep Opus for complex architecture decisions and multi-step reasoning (costs).
The Console account is for individual developers (deployment options). Claude Code in the terminal works here too, while some features, like the desktop app and mobile, need a login with a claude.ai account (features).
When you work through the API, /usage shows the estimated cost of the session. The exact amount is on the Usage page in Console.
If you have a subscription and ANTHROPIC_API_KEY is set on your computer, Claude Code asks you once in interactive mode whether to use the key. Don't skip that question without reading it. If you say yes, usage is billed to the API account. Run it with claude -p and it uses the key without asking (login options).
Which plan is for whom
Pick Pro to start. The accounts suggested when you log in to Claude Code are Pro, Max, Team and Enterprise (Quickstart). The pricing page doesn't say how many messages Pro handles in 5 hours. That depends on how long the conversation is and which model you pick.
Type /usage in Claude Code and you see how much of your plan you've used. When your usage runs out, wait for the limit to reset, or turn on usage credits and pay for the rest at standard API prices. The help center suggests Max 5x for people who hit the limit often.
If you'll use it with your team, Anthropic suggests Team or Enterprise for organizations, with billing and management in one place. You can mix seat types from person to person.
Give the person who writes code more usage than someone who chats. According to the costs doc, a single debugging session in Claude Code can use up more than a day of chatting.
Company accounts and other providers
If your company gave you a Team or Enterprise seat, you log in with the claude.ai account your admin invited (login options).
Enterprise costs $20 per seat a month, usage is billed separately at API prices, and payment is yearly. You can also get a custom quote from the sales team (pricing page).
On new and self-serve Enterprise plans, Claude Code is in every seat. On older plans it's only in the Chat + Claude Code and Premium seats (help center).
For enterprise deployments, Anthropic puts the average at $150-250 per developer a month (costs).
You can also use Claude Code through Amazon Bedrock, Google Cloud Agent Platform (formerly Vertex AI) or Microsoft Foundry. Those routes are for companies already running on those clouds.
You're charged per token on your cloud account, and the spending controls sit in the provider's billing screen. Token prices are on each provider's own page (AWS, Google Cloud, Azure).
Prices change
Look at the claude.com/pricing page before you buy. The API pricing doc also points there for the latest prices.
Once you've picked your plan, you can build a small web app from your own idea in the 2-hour program and put it online. The program is free. You use Claude Code in the terminal there, so any of the paid plans works, and so does an API key.