Is Claude Code free?
No. Claude Code needs a paid account: a Claude subscription (Pro from $20/mo, Max, Team or Enterprise), a Console account with pre-paid API credits, or your employer's cloud provider. There is no free tier and no trial — the free Claude plan doesn't include it. The "free forever" setups you'll find on YouTube point the CLI at somebody else's model, which is a different tool wearing the same client.
Anthropic's own quickstart lists what unlocks it — and a free plan isn't on the list.
The "Before you begin" section names exactly four ways in: a Claude subscription (Pro, Max, Team or Enterprise), a Claude Console account with pre-paid API credits, access through Amazon Bedrock, Google Cloud's Agent Platform or Microsoft Foundry, or a self-hosted Claude apps gateway your organisation runs. The login step repeats it plainly: Claude Code requires an account to use.
Two absences matter as much as the list. The free Claude tier appears nowhere in it, and no free trial of Claude Code is documented anywhere in the setup flow. Installing the CLI costs nothing and takes seconds — but the first prompt you type is a request to a paid model, so the install is not the thing being sold.
Prices below come from our verified plan sheet (checked 2026-07-16), the same one behind the subscription-vs-API calculator, so they don't drift out of step with the rest of the site when Anthropic reprices.
What actually unlocks it.
Claude Code authenticates against one of four things, and every one of them has a bill attached:
- A Claude subscription — Pro, Max, Team or Enterprise. The usual choice for individuals, and the one that makes usage feel flat-rate.
- A Claude Console account — pre-paid API credits, billed per token. No monthly commitment; on first login a "Claude Code" workspace is created for cost tracking.
- An enterprise cloud provider — Amazon Bedrock, Google Cloud's Agent Platform, or Microsoft Foundry. Your employer pays; you authenticate through them.
- A self-hosted Claude apps gateway, if your organisation runs one.
The free Claude tier is not among them. Neither is a trial.
Subscription and credits are genuinely different bets, not two prices for the same thing. A subscription is a flat monthly fee with usage limits; credits cost exactly what you consume, which is excellent for light or bursty use and unpleasant during a long refactor.
The honest way to choose is to model your own volume rather than trust a rule of thumb — that's what our subscription-vs-API calculator is for. If you're weighing tiers instead, we've written up Claude Free vs Pro and Pro vs Max separately.
Search this question and most of page one is people showing you how to avoid paying. The mechanism is nearly always the same: point the CLI's ANTHROPIC_BASE_URL at a proxy that serves some other model — an OpenRouter free tier, a Google AI Studio key, a local Ollama install.
It works, and it is worth being precise about what you end up with. You are no longer using Claude. You're using Anthropic's client with a different model behind it, so the coding quality is whatever that model does, not what the benchmarks for Claude say. If the proxy is somebody else's hosted service, your source code passes through it. And the part that was ever free — the client — was always free to install.
If your goal is genuinely zero spend, the honest version of that is an open-source agent pointed at a model you host yourself. Options below.
Agents that are free by design.
Both are open-source and can run against a model on your own hardware, so nothing leaves your machine and nothing is billed. We have not benchmarked either against Claude Code — quality tracks whatever model your hardware can host, so test on your own repository before committing.
Frequently asked.
Quick follow-ups people search after this question.