The short answer: Claude Code itself has no free tier. It is included with every paid Claude subscription, which start at $20 per month (or an effective $17 per month billed annually), and it can alternatively run on a pay-per-token API key with no subscription at all. The software costs nothing to install; the model usage behind it is what you pay for. Here is the full picture, including the legitimately free ways to learn the tool before paying, and how to reason about which paid path fits.
What "free" means here, precisely
Claude Code is an agent: it reads your repository, plans, edits files, runs commands, and iterates. Every one of those steps consumes model tokens, and tokens are the metered resource behind every price below. Installing the CLI, the desktop app, or the IDE extensions costs nothing and takes a minute:
npm install -g @anthropic-ai/claude-code
Running it requires one of two things: a Claude subscription or an API key with credit on it. The Claude free tier covers the chat apps and does not include Claude Code, which is the direct answer to this article's title.
Path one: subscription plans
Claude Pro, $20 per month ($17 effective with annual billing). Includes Claude Code with a usage allowance that resets in five-hour session windows. For a developer using the agent through a normal workday, with focused tasks rather than continuous background fleets, Pro is genuinely enough, and it is where we tell most learners to start. Everything in our free 8-level course through the serious intermediate levels fits inside Pro allowances.
Claude Max, $100 or $200 per month. The two Max tiers carry 5x and 20x the usage of Pro plus higher output limits. Max earns its price when the agent becomes your primary way of working: long autonomous sessions, subagents fanning out in parallel, background tasks, and multiple projects in flight. Heavy users hit Pro's session ceilings and feel them; if that is you, you will know within a week.
The failure mode on subscriptions is friendly: when you exhaust a session allowance you wait for the window to reset. There is no surprise bill.
Path two: the API key
Point Claude Code at an Anthropic API key and usage bills per token with no subscription. Two profiles fit this path:
- Occasional users: an evening of experimentation typically costs single-digit dollars, so a small credit deposit can outlast a month of light use. Below roughly the subscription price in monthly usage, metered is the cheaper way in.
- Automation and CI: headless agents in pipelines, review bots, and scheduled jobs run on keys, scale with usage, and appear as a line item you can monitor. This is the professional deployment path regardless of what humans on the team use.
The failure mode here is the opposite one: costs are uncapped by default, so set spend limits in the console before wiring an agent to anything that loops.
What is genuinely free
Learning the tool. Level 1 of the Claude Code course is free, runs in the browser with no install and no API key, and teaches the real interaction loop. It exists precisely so that the answer to "can I try this without paying" is yes.
The software and its ecosystem. The CLI, the extensions, the documentation, and the MCP servers you connect (our MCP guide covers those) are free. Skills, hooks, and configuration cost nothing to write and are where much of the tool's value lives.
Alternatives with free tiers, honestly noted. OpenAI's Codex is available on ChatGPT's free plan, and Cursor has a free Hobby tier. If your constraint is strictly zero dollars this month, those exist, and our Codex comparison and Cursor comparison lay out what each trade looks like. We would rather point you at the honest map than pretend the question away.
How to decide in one paragraph
Start with the free course level to learn the loop. If the tool fits, buy Pro for $20 and use it for a month; that single decision covers the overwhelming majority of developers. Move to Max only when session limits interrupt you weekly. Add an API key the day you want an agent running in CI rather than in your terminal. And if you are building toward a credential, the same investment compounds: the skills Pro-tier usage teaches are the ones Anthropic's Claude Certified Architect exam tests, with practice tests ready when you are.
