No. Claude Code is not free, and the free Claude plan does not include it. Anthropic’s own documentation is unambiguous: “Claude Code requires an account to use,” and the accounts that work are a Claude subscription on the Pro, Max, Team or Enterprise tier, a Claude Console account with pre-paid credits, or access through a supported cloud provider. The $0 Claude plan is not on that list.
That is the whole answer, and we have put it at the top because most pages ranking for this question bury it under four hundred words of preamble or answer a different question instead.
What follows is the part that is actually useful: what is free, what the cheapest legitimate way in costs, and the arithmetic on which route works out cheaper for how much you code. There is a real decision hiding behind this question, and it is not the one the question implies.
What each account type actually gets you
| Account | Price | Claude Code? | Source of the answer |
|---|---|---|---|
| Claude Free | $0 | No | Not listed among the accounts Claude Code accepts |
| Claude Pro | $17/month annual ($200 upfront) or $20 monthly | Yes — “Includes Claude Code and Claude Cowork” | claude.com/pricing |
| Claude Max | From $100/month | Yes | Listed as a supported login |
| Claude Team | $20–25/seat/month standard, $100–125 premium | Yes | Listed as a supported login |
| Claude Enterprise | $20/seat, annual only | Yes | Listed as a supported login |
| Claude Console (API) | Pay per token, pre-paid | Yes | “API access with pre-paid credits” |
| Amazon Bedrock, Google Cloud Agent Platform, Microsoft Foundry | Billed by your cloud provider | Yes | Third-party integrations |
Note the shape of that table. There is no free tier, no perpetual trial, and no reduced-capability free mode. Every row that says yes has a price attached to it.
Free to install, not free to run
The confusion is understandable, because installing Claude Code costs nothing and requires no payment details. All of these are free operations:
curl -fsSL https://claude.ai/install.sh | bashon macOS, Linux or WSLirm https://claude.ai/install.ps1 | iexin Windows PowerShellbrew install --cask claude-codevia Homebrewwinget install Anthropic.ClaudeCodeon Windows- Installing with apt, dnf or apk on Debian, Fedora, RHEL and Alpine
- Running
claude --versionto confirm it worked
You will get a working binary on your machine for nothing. Then you type claude, it prompts you to log in, and that is the wall. The distribution is free; the model access is what you are buying. This is the same arrangement as a database client that ships free and connects to a paid server — and it is why “I downloaded Claude Code and it didn’t cost anything” and “Claude Code is not free” are both true statements.
The same rule holds across every surface. The desktop app’s documentation states plainly that “a paid subscription is required.” The web version at claude.ai/code, the VS Code extension, the JetBrains plugin, the Slack integration and the GitHub Actions integration all sit behind the same account requirement. The overview page puts it in one line: “Most surfaces require a Claude subscription or Anthropic Console account.”
What the free Claude plan does give you
The $0 plan is not nothing. It includes Claude chat, code generation in the chat window, web search, memory, file creation, connectors, desktop extensions and extended thinking. You can paste code into it and get code back, all day, subject to usage limits.
What it does not do is act on your repository. Claude Code is an agent: it reads your files without being handed them, runs commands, edits code in place, makes commits and opens pull requests. That loop — read, run, edit, verify — is what the paid tier buys, and it consumes far more tokens than a chat turn, which is the practical reason it sits behind a paywall.
If your actual need is “help me write this function,” the free plan covers it. If your need is “go fix the failing tests across these nine files,” it does not, and no amount of prompt engineering in the chat window will make it.
The Console route, and its free credits
The second legitimate door is a Claude Console account, which is metered API access with pre-paid credits. Anthropic’s pricing FAQ states that “new users receive a small amount of free credits to test the API.” The amount is not published. This is the closest thing to a free trial of Claude Code that exists, and we want to be precise about what it is: a small credit balance on an API account, not a free tier of the product.
Once those credits are gone you are paying per token, at these published rates:
| Model | Input per million tokens | Output per million tokens |
|---|---|---|
| Claude Opus 4.5 through Opus 5 | $5 | $25 |
| Claude Sonnet 5 | $2 | $10 |
| Claude Sonnet 4.5 and 4.6 | $3 | $15 |
| Claude Haiku 4.5 | $1 | $5 |
Two mechanisms cut that bill substantially, and Claude Code uses both automatically. Prompt caching charges 1.25x the input rate to write a five-minute cache entry or 2x for a one-hour entry, then 0.1x to read it — a cache hit costs a tenth of a fresh input token, which is why a long session is far cheaper than its raw token count suggests. The Batch API takes 50% off input and output for asynchronous work.
Which route is actually cheaper
Here is the arithmetic almost nobody does, using Anthropic’s own published figures.
Anthropic’s cost documentation states that across enterprise deployments, Claude Code costs “around $13 per developer per active day and $150-250 per developer per month, with costs remaining below $30 per active day for 90% of users.” Those are token costs at API rates — what the Console route bills you.
Claude Pro is $17–20 a month and includes Claude Code.
So at the average enterprise intensity, the metered route costs roughly eight to thirteen times the subscription. One and a half active days of Console usage costs more than a whole month of Pro. If you code every day, the subscription is not close to a fair fight.
The catch is the one we keep running into on this site: the subscription’s ceiling is not published. Anthropic states only that “every plan has usage limits that reset on a rolling five-hour session window, and paid plans add weekly limits on top,” with no number attached to either window. We took that apart at length in our piece on Claude Pro’s usage limits, and the finding was that no message count, hour count or token quota exists in public for any tier.
Which reduces the real decision to this: the subscription gives you a known price with an unknown ceiling; the Console gives you a known ceiling with an unknown price. Neither is free, and neither is fully specified. Most individual developers should take the subscription, because a fixed $20 downside beats an open-ended meter, and because $20 buys far more work than $20 of tokens does.
What happens if you exhaust a subscription
You wait for the window to reset, or you turn on usage credits and keep working at metered rates. There is one detail worth knowing before you do: Anthropic’s documentation notes that the prompt cache lifetime “is an hour on a subscription and drops to five minutes once you’re drawing on usage credits.” The mechanism that lets you continue past the limit also makes every subsequent request after a short break more expensive, because your full context gets reprocessed instead of read from cache. Budget for that, not just for the credits.
Is it free for students?
Not through any self-serve route we could find. Anthropic’s education offerings are institution-level: Claude for higher education is described as a “comprehensive university-wide plan for institutions, including its students, faculty, and staff,” and it is sold by contacting the education team, not by clicking a button. There is a separate Claude for Teachers programme for K–12 and a campus programme aimed at student builders.
What is not published on claude.com/pricing or the education pages is a discounted individual student plan you can sign up for with a .edu address. If your university has bought an institutional plan, ask your IT department whether your account includes Claude Code — that is a real and common route to free access, and it is worth ten minutes of asking. If it has not, students pay the same $17–20 as everyone else.
The workarounds we are not going to write about
Search results for this question are full of pages promising free Claude Code through shared API keys, unofficial proxies, reverse-engineered gateways and credential pools. We are not going to explain any of them, and the reason is not squeamishness.
Routing an agent that reads your entire repository and executes shell commands through an unaffiliated third-party endpoint means handing that endpoint your source code and your command output. That is a materially worse trade than $20 for anyone whose code has any value at all. It also violates the terms you agreed to, which means the account can vanish mid-project. If your budget genuinely is zero, the honest options are the free Claude chat plan, the Console trial credits, or a genuinely free competing tool — we cover the field in Claude Code alternatives, and GitHub Copilot’s free tier in particular includes 2,000 code completions a month at no cost, which we compare against Claude Code in our Copilot comparison.
What we could not verify
- The size of the Console free credit grant. Anthropic confirms new users get “a small amount of free credits” without stating the amount or the expiry.
- Any numeric usage limit on any paid plan. Not for Pro, Max, Team or Enterprise, and not for either the five-hour or the weekly window.
- The Claude Max 20x list price. The pricing page says “from $100/month” and offers a 5x or 20x choice without printing the second figure.
- Whether any free trial of Pro exists. None is advertised on the pricing page; we found no published trial for the subscription tiers.
- Institutional coverage. Whether a given university’s Claude for Education plan includes Claude Code is decided per contract and is not published.
Frequently asked
Is there a free version of Claude Code?
No. There is no free tier, no reduced-capability free mode and no perpetual trial. The CLI installs for free but requires a login, and the accounts it accepts are Claude Pro, Max, Team or Enterprise, a Claude Console account with pre-paid credits, or a supported cloud provider. The $0 Claude plan does not unlock it.
Can I try Claude Code for free?
Only via the Console. New Console users receive what Anthropic calls “a small amount of free credits to test the API,” and Claude Code can authenticate against a Console account, so those credits will run it. The amount is not published, and at the published rates a serious session will consume a meaningful share of any small grant. There is no advertised free trial of the Pro subscription.
What is the cheapest way to use Claude Code?
Claude Pro at $17 a month billed annually ($200 upfront), or $20 billed monthly. It explicitly includes Claude Code. By Anthropic’s own published figures a developer working at the average enterprise intensity consumes $150–250 of tokens a month, so for anyone coding regularly the subscription is dramatically cheaper than metered Console access — with the caveat that its usage ceiling is not disclosed.
Is Claude Code included in the Claude Pro plan?
Yes. The pricing page lists “Includes Claude Code and Claude Cowork” under Pro. Usage draws on the same rolling five-hour session window and weekly window that governs the rest of the plan, shared with Claude chat, and the size of that allowance is not published.
How is Claude Code billed — per seat or per token?
Both, depending on how you sign in. On Pro, Max, Team and Enterprise it is a flat subscription and your usage draws on your seat’s allowance. On the Console it is metered per token at published API rates. On Amazon Bedrock, Google Cloud’s Agent Platform or Microsoft Foundry it is billed per token to your cloud account. If your organisation mixes sign-in methods, each developer is metered by whichever one they authenticated with.
Is Claude Code free for students?
Not through any self-serve route published by Anthropic. The education offerings are institution-level and sold by contacting the education team; there is no .edu discount you can claim on the pricing page. If your university has an institutional Claude plan, your account may already include Claude Code — worth checking with IT before paying.
Is the Claude Code CLI open source?
Anthropic distributes it as a binary through an install script, Homebrew, WinGet and the major Linux package managers, and native installs update themselves in the background. The install is free and requires no payment details. That is distribution, not licensing — being able to download something at no cost says nothing about whether you can run it without an account, and in this case you cannot.
What can I use instead if I will not pay?
GitHub Copilot Free gives 2,000 code completions a month plus limited chat at no cost, though its agent features draw on a credit allowance. The free Claude chat plan will still write code for you; it simply will not touch your repository. Beyond that, see our roundup of Claude Code alternatives and the full pricing comparison for tools with genuine free tiers.
Sources
Every claim above was read from an Anthropic-operated page in August 2026. Where a page contained no number, we said so instead of estimating.
| Source | What we took from it |
|---|---|
| code.claude.com — Quickstart | “Claude Code requires an account to use”; the full list of accepted logins; every install command |
| code.claude.com — Overview | “Most surfaces require a Claude subscription or Anthropic Console account”; the desktop app’s paid-subscription requirement |
| code.claude.com — Manage costs effectively | $13 per developer per active day; $150–250 per month; 90% under $30/day; the cache lifetime drop on usage credits |
| claude.com/pricing | Plan prices; “Includes Claude Code and Claude Cowork” on Pro; the five-hour and weekly window statement; what the Free plan contains |
| platform.claude.com — Pricing | Per-token rates by model; caching multipliers; the 50% Batch discount; “new users receive a small amount of free credits” |
| claude.com — Education solutions | The institution-level scope of Claude for higher education |
If you are weighing Claude Code against a paid competitor rather than against zero, our Claude Code vs Cursor comparison covers the editor-native alternative, and Claude Code vs Codex covers the other terminal agent.
Update, 31 August 2026: the Sonnet 5 rate in the table above is now permanent
When this page was written, the $2/$10 per million token rate for Claude Sonnet 5 was introductory pricing with an expiry date of today, and the table above carried a second row showing $3/$15 from 1 September 2026. That second row is gone, because it is no longer going to happen: Anthropic’s pricing documentation now states that $2/$10 is the standard price for Sonnet 5 and that the scheduled increase will not occur. The table now shows a single Sonnet 5 row.
This does not change the answer to the question in the title. Claude Code is still not free, and the API credit balance on a new account is still a small starting credit rather than a free tier. What it changes is the size of the gap between the two ways of paying for it. If you are running Claude Code against the API rather than on a subscription, the per-token rate you were told to plan around from tomorrow was 50% higher than the rate you will actually be charged (our arithmetic on Anthropic’s official list prices: $3 against an actual $2 for input, $15 against an actual $10 for output).
The practical version, for anyone deciding between paying per token and paying for a plan: prompt cache reads are billed at 0.1x the base input rate, so Sonnet 5 cached input stays at $0.20 per million tokens instead of moving to $0.30. Claude Code re-reads most of its context from cache on every turn, so cached input is the line that actually dominates a long coding session — not the fresh-input line most cost estimates quote. Holding that line at $0.20 pushes the point at which per-token billing becomes more expensive than a subscription further out than it would have been.
One caveat before you compare these numbers to another vendor’s: Anthropic’s pricing documentation notes that Claude 4.7 and later models use a newer tokenizer producing approximately 30% more tokens for the same text, with Sonnet 4.6 and earlier on the previous tokenizer. Per-token list prices are therefore not directly comparable across vendors. We work through what that does to one specific cross-vendor comparison in the GLM coding plan versus Claude Code breakdown, and the full per-model rate tables live on our AI coding assistant pricing page.
Official list prices, read 31 August 2026.
Correction, 24 September 2026: the Anthropic sentence quoted above is no longer on the vendor’s page
This page cites Anthropic’s explicit statement that a previously scheduled increase to $3 and $15 per million for Sonnet would not go ahead. That statement was on the official pricing documentation when we wrote it and was still there on 23 September 2026. As of 24 September 2026 the sentence has been removed from the page, and the rate table has been restructured.
The prices themselves are unchanged: Sonnet 5 is $2 input and $10 output per million, cached input $0.20. Budget against those figures, because they are what is published and what you will be billed.
We are leaving the original passage in place with this correction attached rather than editing it away, and we are not predicting a price rise — a note that has served its purpose is a routine thing to remove in a page redesign, and we do not publish guesses about vendor intent. We explain the change, and why archiving vendor prose with a read-date matters more than archiving vendor tables, in our AI coding assistant pricing comparison.
