Table of Contents
- The three separate costs hiding inside one question
- What a Claude subscription actually costs
- The API route: pay per token, no subscription
- Every legitimate free route, in full
- The "free Claude Code" tricks, ranked by how badly they bite
- If free is the actual requirement
- The cost nobody prices in: somewhere for it to run
- Is Claude Code free? Quick answers
- Is Claude Code free with Claude Pro?
- Is Claude Code free in VS Code?
- Is Claude Code open source?
- Is Claude Code free for students?
- Is Claude Code hosting included in a Claude subscription?
- The bottom line
Do not index
Is Claude Code free? No. The app itself costs nothing to install, but it will not run a single prompt without a paid Claude plan (from $17 per month billed annually) or a funded Anthropic API account. The free claude.ai plan does not include Claude Code at all: not in the terminal, not in the VS Code extension.
That is the short answer. The long answer is worth five minutes, because the pricing has real nuance, the internet is full of "100% free Claude Code" tricks that range from clever to dangerous, and the honest list of genuinely free routes is much shorter than the tutorials suggest. Everything below is checked against Anthropic's live pricing and docs as of August 2026.
The three separate costs hiding inside one question
Claude Code has three cost lines. Most confusion about the price comes from mixing them up.
1. The software: $0, but not open source. You can install Claude Code right now with a curl one-liner, Homebrew, WinGet, or npm, and pay nothing. But free to install is not the same as open. The GitHub repo contains installers, plugins, and the issue tracker, no CLI source code, and its license is one line: "© Anthropic PBC. All rights reserved. Use is subject to Anthropic's Commercial Terms of Service." It is a proprietary binary that costs nothing to download.
2. The model usage: this is what you pay for. Every prompt Claude Code runs goes to Anthropic's models, and Anthropic meters that two ways: a subscription (Pro, Max, or a Team seat) or pay-as-you-go API billing. (Enterprise cloud routes like AWS Bedrock exist too, but those bill you as well.) No free tier includes Claude Code.
3. The computer it runs on. Free on your laptop, until you close the lid and your agent stops. More on that at the end, because it is the cost line nobody prices in.
What a Claude subscription actually costs
Verified on claude.com/pricing and Anthropic's help center today:
Plan | Price | Claude Code included? |
Free (claude.ai) | $0 | No |
Pro | $20/mo, or $17/mo billed annually | Yes |
Max 5x | $100/mo | Yes, about 5x Pro's per-session usage |
Max 20x | $200/mo | Yes, about 20x Pro's per-session usage |
Team Standard seat | $25/mo ($20/mo billed annually) | Yes, every seat |
Team Premium seat | $125/mo ($100/mo billed annually) | Yes, with more usage headroom |
Enterprise (self-serve) | $20/seat plus usage at API rates | Yes |
The cheapest legitimate way in is Pro at $17 per month billed annually. That subscription also covers Claude Code inside VS Code, Cursor, and JetBrains IDEs, plus Claude chat and Cowork.
Three details matter more than the sticker prices:
Your limits are shared. Claude chat, Claude Code, and Cowork draw from one pooled budget, structured as rolling 5-hour session windows plus a weekly cap that resets at a fixed time each week. Max tiers add a second weekly limit on top. Anthropic no longer publishes fixed hours per plan, so any article promising "40 hours of coding a week on Pro" is quoting 2025 numbers. The source of truth for your account is Settings, then Usage, or the /usage command inside Claude Code.
You can pay past your limit. Pro and Max subscribers can add prepaid usage credits: hit your plan cap and Claude Code offers to keep going, drawing down funds you add in Settings, then Usage, at standard API rates (the /usage-credits command takes you there). The credits are billed separately from the subscription. Handy in a deadline week, dangerous on autopilot.
A heavy chat afternoon eats your coding budget. Because the pool is shared, the agent you point at a refactor on Friday afternoon can run out of road because of Tuesday's chat sessions.
The API route: pay per token, no subscription
Claude Code also runs against an Anthropic API key. No monthly fee: you fund a Console account and pay per token. On first login, Claude Code creates its own dedicated workspace in the Console, so you can see, and cap, exactly what the tool spends.
Current rates per million tokens for the models Claude Code uses:
Model | Input | Output |
Claude Sonnet 5 | $2 until Aug 31, 2026, then $3 | $10, then $15 |
Claude Opus 5 | $5 | $25 |
Claude Haiku 4.5 | $1 | $5 |
Watch the default. Which model Claude Code starts on depends on how you sign in: Pro accounts start on Sonnet, but an API key starts on Opus 5 at $5/$25, and Anthropic's own cost docs flag Opus-left-as-default as a common cause of surprise bills. Anthropic recommends Sonnet for most coding work, with Opus reserved for complex architecture and multi-step reasoning, so switch with /model on day one. And note the date on Sonnet: the introductory price rises 50% on September 1, 2026.
What does per-token billing mean in real money? Anthropic's own cost documentation says the average across enterprise deployments is about $13 per developer per active day, and $150 to $250 per developer per month, with 90% of users staying under $30 a day. A casual evening of prompts can cost a dollar or two; a heavy agentic day can cost more than a month of Pro.
That comparison is the practical takeaway: if you will use Claude Code more than a few days a month, the $17 to $20 subscription is almost always cheaper than API billing. The API route wins when usage is occasional or when you want a hard spend cap instead of a soft limit.
Every legitimate free route, in full
This list is short because the honest list is short. As of August 2026 there is no standing free tier and no public free trial of Claude Code.
- New-account API credits. Anthropic gives new Console signups "a small amount of free credits" (their words; the amount is not published). Enough for an evening of testing on Sonnet or Haiku. Not enough to work.
- Education and research programs. Anthropic's AI for Science program grants free API credits (up to $20,000 for six-month research projects, life sciences focused), and Claude for Education covers students at partner universities through their school. There is no general student discount for Pro; Anthropic's help center says plainly that it does not discount paid plans.
That is the entire list.
The "free Claude Code" tricks, ranked by how badly they bite
Search this question and page one is a wall of tutorials promising Claude Code "100% free forever." They are not lying about the mechanics. They are quiet about the trade. Safest first:
Rerouting the CLI to a different model backend. Claude Code officially supports gateway setups (the documented ANTHROPIC_BASE_URL variable), and popular open-source routers use that to point it at free Gemini quota, OpenRouter's free models, or a model running locally on your own machine. It genuinely works and costs nothing. Be clear about the trade: you are now running Claude Code without Claude. You keep the harness, the planning loop, and the file edits, but a different brain does the thinking, and on real codebases the difference shows. Free model tiers also carry their own meters (OpenRouter's free models allow 50 requests a day until you buy credits), and some reserve the right to train on your prompts and code. Fine for toy projects. Not fine for anything private.
"Mirror API" resellers. Sites selling cheap or free "Claude endpoints" you wire in via a base-URL variable. Hard no. You are inserting a permanent unknown middleman between your codebase, your credentials, and the model. Treat every one as hostile until proven otherwise, which you cannot do.
Shared Pro accounts. Gray-market sites split one subscription across strangers. Anthropic's consumer terms bar sharing your login or making your account available to anyone else, bans land mid-project, and your code sits in an account other people control.
"Cracked" versions. There is nothing to crack. Authentication happens server-side, so a "cracked Claude Code" installer is by definition malware. Install only from Anthropic's official docs.
So the precise answer to "is Claude Code free" is: the harness can run for $0 if you bring a non-Claude model and accept the downgrade. Claude models inside Claude Code are never free.
If free is the actual requirement
If your real question is "can I get a terminal coding agent for $0," the answer is yes, just not this one. OpenAI's Codex CLI is open source (Apache-2.0) and free ChatGPT accounts get real Codex usage for quick coding tasks. Gemini CLI is open source too, and a personal Google account gets 1,000 requests a day at no cost. Open-source agents like Aider and Cline pair with free or local models as well. We compared the strongest option head to head in Codex vs Claude Code, including where its free tier actually gets you before the limits kick in.
The cost nobody prices in: somewhere for it to run
Say you pay for Pro. You still only have Claude Code while your laptop is open. Close the lid and the overnight refactor, the scheduled job, the agent watching your repo, all of it stops.
That third cost line is a computer that stays on, and no plan from Anthropic includes one. You can build it yourself with a VPS and tmux, and for one developer that is a fine weekend project. The managed version is what we sell, so here is the disclosure and the honest framing in one breath: nothing we sell is free either. Agent37 runs Claude Code always-on from $3.44 per month, metered by the minute, with a live web terminal, desktop, and file browser a signed URL away. Today you run Claude Code on it via a custom Docker image you register once; a one-click template is coming. New workspaces get a $1 starter credit, roughly a week of the cheapest instance, no card required.
Two things stay true on any host, ours included: you bring your own Anthropic plan or API key, so Anthropic bills your model usage directly, and an always-on agent deserves guardrails so a stuck loop does not burn tokens at 3 a.m.
Is Claude Code free? Quick answers
Is Claude Code free with Claude Pro?
Yes. Pro ($20/mo, or $17/mo billed annually) includes Claude Code at no extra charge, within Pro's usage limits. Those limits are shared with your Claude chat and Cowork usage.
Is Claude Code free in VS Code?
The extension is free to install, but it signs into the same account system. No paid plan or API key means no completions.
Is Claude Code open source?
No. The GitHub repo hosts installers, plugins, and the issue tracker, with no CLI source, and the license points to Anthropic's Commercial Terms of Service. The open-source terminal agents are Codex CLI, Gemini CLI, Aider, and friends.
Is Claude Code free for students?
There is no general student discount. Students at Claude for Education partner universities may get access through their school.
Is Claude Code hosting included in a Claude subscription?
No. Plans cover the software and model usage. A machine that keeps your agent running 24/7 is a separate line on every path, whether that is a $4 always-on instance, a VPS you administer yourself, or one of the self-hosted setups we have compared.
The bottom line
Claude Code is a free download with a mandatory paid engine. Budget $17 to $20 a month for Pro if you will use it regularly, or pay per token if you will not. Skip the mirror proxies and shared accounts entirely. If free is the hard requirement, Codex CLI or Gemini CLI are the honest answers today.
And once you are paying for the engine, make the hours count. An agent that only works while your laptop is open is half an agent. Run Claude Code always-on from $3.44 a month, keep your own Anthropic key, and delete the instance whenever you like.
