Is Claude Code free?
Short answer: no. The Claude Code installer costs nothing, but the free claude.ai plan does not include Claude Code, and every session needs a paid plan or an API key with credit. Here is what that costs to start, and which free offers to skip.
What is free and what is not
| Item | Cost | Note |
|---|---|---|
| Claude Code installer | Free | Installing does not unlock anything by itself |
| Free claude.ai plan | $0 | Limited use of the Claude apps, Claude Code is not included |
| Pro plan | $20 a month, $17 with annual billing | Includes Claude Code with usage limits |
| API key | Per token | No monthly fee, you pay for the tokens you use |
| Cloud provider access | Billed by the provider | Claude Code can also run through supported cloud platforms |
The cheapest way to start
If you want to try Claude Code without a monthly plan, pay per token and cap the spend. A small test costs cents, not dollars.
- Claude Haiku 5.5: Input / 1M tokens $0.10, Output / 1M tokens $0.50, Context 1M
- Claude Sonnet 5.5: Input / 1M tokens $2.00, Output / 1M tokens $10.00, Context 1M
Rates per million tokens from the catalog.
| Model | Input | Output | Total |
|---|---|---|---|
| Haiku 5.5 | 0.2 x $0.10 = $0.02 | 0.02 x $0.50 = $0.01 | $0.03 |
| Sonnet 5.5 | 0.2 x $2.00 = $0.40 | 0.02 x $10.00 = $0.20 | $0.60 |
Long sessions send far more context, so the real figure grows with use. That is why a spend limit on the key matters.
How to try it with a spend limit
Get a key with a limit
Open app.oneprovider.dev or the Telegram bot @oneprovider_robot, top up the balance, issue a key and set a spend limit on it.
Install Claude Code
Use the one-line installer for your system.
# macOS, Linux and WSL curl -fsSL https://claude.ai/install.sh | bash # Windows PowerShell irm https://claude.ai/install.ps1 | iexPoint it at the key
Use the root URL without /v1 and set the token as well.
export ANTHROPIC_BASE_URL=https://api.oneprovider.dev export ANTHROPIC_AUTH_TOKEN=sk-...Run a first task
A one-line request shows that everything works.
claude -p "say hi in one sentence"
Skip the fake free offers
Searches for free Claude Code lead to shared logins, cracked accounts and free API keys posted in chats. They are not free: you pay with your code and your prompts.
- A shared login or key can be revoked at any moment, in the middle of your work.
- Whoever owns the account or the key can read what you send through it.
- Keys posted publicly are usually already abused or about to be.
- Anthropic's own free material is a safe place to learn: Claude Academy has free courses, including Claude Code 101.
Frequently asked questions
Is Claude Code free to download?
Yes, the installer is free. Using it needs a paid Claude plan, a Console account with credit, or a gateway key with balance.
Can I use Claude Code with the free Claude plan?
No. Anthropic's setup page says the free claude.ai plan does not include Claude Code access.
Is there a free trial of Claude Code?
The pricing page lists no free Claude Code tier. Offers change, so check claude.com/pricing.
How much does a first test cost?
With a small model a short session costs a few cents, as the example above shows. Set a spend limit on the key so a long session cannot surprise you.
Can I use Claude Code without a subscription?
Yes. An API key from the Console or a gateway key works, and requests are billed per token.
Is it safe to use a free Claude Code account from a chat?
No. You cannot control a shared account, and its owner can see your prompts and code. Use your own key with a spend limit.
Claude, ChatGPT, GPT, Cursor and other product names are trademarks of their owners and are used only to describe compatibility. We do not give legal advice: following local rules stays with the user.