Claude Code · 5 min
How much does Claude Code cost? Pricing and plans explained (2026)
Claude Code is free to install, but using it has a cost. Understand the two payment options and pick the right plan for your situation.

Quick answer
Claude Code costs nothing to install, but to work it needs a Claude subscription from Anthropic (Pro or Max plan) or Anthropic API credits. The actual cost depends on the plan you choose. As of this article, plans start at approximately $20 per month, but confirm current prices at anthropic.com before subscribing.
- Installing Claude Code is free
- Usage requires a Claude Pro/Max subscription or Anthropic API credits
- A fixed monthly subscription is ideal for regular or daily use
- API credits are the best option for occasional use or for controlling spending down to the cent
Ask AI about this guide:
Is Claude Code free or paid?
The short answer: installation is free, usage is not.
The file you install with npm costs nothing, and you can have it on your computer without paying anything. The cost appears when you start actually using it. Every request you make sends information to Anthropic's servers, where the artificial intelligence model processes everything and returns a response. That processing consumes computational resources, and that is where the cost comes in.
There are two different ways to cover that cost: a monthly Claude subscription (Pro or Max plan) or one-off credits loaded into your Anthropic API account. Both work, but they serve different usage profiles. Let's look at each one.
Option 1: Claude Pro or Max subscription
A Claude subscription is the simplest option and the one most people choose. With a Pro or Max plan, you get access to Claude across all Anthropic products, including Claude Code, within your plan's limits. You pay a fixed monthly fee and use it up to the limit without worrying about the cost per request.
As of this article, the Pro plan starts at approximately $20 per month. The Max plan offers significantly higher usage limits and costs more, designed for developers who use the tool intensively throughout the day. Always confirm current prices at anthropic.com/pricing, since prices may have changed since this article was published.
This option makes the most sense for anyone planning to use Claude Code regularly, several times a week or every day. The monthly cost is predictable and there are no surprises on the bill at the end of the month.
Option 2: Anthropic API credits
The alternative is to create a developer account on the Anthropic API and pay only for what you use, with no monthly subscription. You load credits into your account and each Claude Code request deducts a small amount of those credits, calculated based on the size of the conversation and the complexity of the model used.
This option has two big advantages: full control over spending and no monthly commitment. If you use little in a month, you pay little. If you use nothing in a month, you pay nothing. It is ideal for those who want to try it without committing, for occasional use, or for those managing one-off projects.
The downside is that it requires more initial setup: you have to create an API key at anthropic.com, add credits with a credit card, and set the key as an environment variable on your system. The process is well documented by Anthropic, but it is an extra step compared to the simplicity of a subscription.
Comparison of pricing options
| Criterion | Claude Pro/Max subscription | API with credits |
|---|---|---|
| Cost type | Fixed monthly | Per use (variable) |
| Best for | Regular or daily use | Occasional or experimental use |
| Usage limits | Set by the plan you choose | Controlled by your credit balance |
| Initial setup | Simple (just log in with an account) | Requires creating an API key |
| Cost predictability | High (fixed monthly amount) | Depends on how much you use |
| Initial free credits | Uncommon | Occasionally available for new users |
Is the investment worth it?
It depends a lot on what you want to do with Claude Code. If you are a developer and use the tool every day for real projects, the cost of a Pro subscription pays for itself quickly compared to the time saved. Sessions that used to take hours now take minutes when you have an assistant that reads your code, spots problems, and proposes solutions right away.
If you are a beginner and want to try it without pressure, start with API credits. You have full control over spending while you learn, and if the tool does not fit your way of working, you have lost nothing beyond what you used. Anthropic occasionally offers free credits for new API users, so it is always worth checking the available promotions when you create an account.
On the Claude Code page on Doutor AI you will find more resources, practical examples, and up-to-date information about the tool.
Frequently asked questions
Installation is free, but usage requires a paid plan. There is no free version for ongoing use. Anthropic occasionally offers credits for new API users, which lets you try it before committing.
Want to put this to work in your business?
1,859 ready-to-copy AI prompts, by industry.
Keep reading

Claude Code vs Cursor: which is the best AI tool for coding?
We compare Claude Code and Cursor to figure out which is the best AI tool for coding, depending on your profile and how you work.

Claude Code vs GitHub Copilot: a complete comparison
Claude Code and GitHub Copilot are AI tools for developers, but they work very differently. See which one fits your work better.

The best ChatGPT prompts (for your business)
Ready-to-use ChatGPT prompts, organized by business area: customer service, marketing, content, productivity, and more.

Artificial intelligence for businesses: the guide to getting started
A practical guide to artificial intelligence for businesses: where to start, which tools to use, and how to introduce AI to your team without hassle.
Sources
- anthropic.com/pricinganthropic.com
Save hours every week with AI, no hassle
Doutor AI gives you 1,859 ready-to-copy AI prompts, by industry and in plain English - plus a complete technical library for those who want to go further.
