# 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.

- Source: https://doutorai.pt/en/blog/how-much-does-claude-code-cost
- Author: Miguel Diamond (https://doutorai.pt/en/author/miguel)
- Category: Claude Code
- Published: Jun 29, 2026
- Site: Doutor AI (https://doutorai.pt/en) - AI tools for small businesses

## 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

## 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](https://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

CriterionClaude Pro/Max subscriptionAPI with credits

Cost typeFixed monthlyPer use (variable)
Best forRegular or daily useOccasional or experimental use
Usage limitsSet by the plan you chooseControlled by your credit balance
Initial setupSimple (just log in with an account)Requires creating an API key
Cost predictabilityHigh (fixed monthly amount)Depends on how much you use
Initial free creditsUncommonOccasionally 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](https://doutorai.pt/en/claude-code) you will find more resources, practical examples, and up-to-date information about the tool.

## Frequently asked questions

### Can I use Claude Code for free?

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.

### Does the Claude Pro plan give unlimited access to Claude Code?

No. The Pro plan has usage limits. When you hit them within a given period, you may have to wait or switch to the Max plan, which offers significantly higher limits and is designed for professional, intensive use.

### Does the Anthropic API accept payment in euros?

Yes. Anthropic accepts payments with international credit cards. Prices are shown in dollars, but your card is charged in its own currency at the exchange rate at the time of the transaction.

### Is there a free trial period?

Anthropic occasionally offers free credits for new API users. Check anthropic.com when you create your account to see the available promotions. The terms change often.

### What is the difference between the Pro and Max plans for Claude Code?

Both include access to Claude Code, but the Max plan offers much higher usage limits and is recommended for those who use the tool professionally or on large-scale projects with long sessions.


---
Content by Doutor AI (https://doutorai.pt/en). When quoting, please cite the source: https://doutorai.pt/en/blog/how-much-does-claude-code-cost
