You installed the terminal agent, typed one command and hit a wall. So, is Claude Code free or did you just waste your evening?
The answer has layers. Anthropic keeps the real tool behind paid access, yet four legitimate routes can get you coding at zero cost. Each one trades something away and this guide shows you exactly what.
Is Claude Code Free Today?
No. The free Claude plan covers chat on the web, desktop and mobile, but it leaves out the terminal agent. Anthropic’s plan comparison marks Claude Code as unavailable on Free and included on Pro, Max 5x and Max 20x.
Think of it as a locked front door with a few side entrances. You can pay per token, claim a trial credit, redirect the tool to other models or qualify for a grant. The sections below walk through each one.
What the Tool Actually Does
Claude Code is an agentic coding assistant. It lives in your terminal or IDE, reads your repository, edits files, runs commands and works through multi step tasks without copy and paste. Developers exploring Claude’s automated workflows can also learn how Claude Auto Mode approaches automated tasks.
That autonomy explains the price tag. A single request like “fix this failing test” can trigger dozens of model calls behind the scenes.
Why Anthropic Charges for It
Every file read, tool call and retry consumes tokens. Agentic sessions also resend large chunks of context so a busy afternoon in a big codebase adds up fast.
Subscriptions bundle that usage into one pool. Claude Code shares limits with the rest of your plan so terminal work and chats draw from the same allowance. A rolling five hour window and a weekly cap control the pace.
Plans and Prices at a Glance
Here is how the consumer plans compare today.
| Plan | Monthly price | Claude Code | Models available |
| Free | $0 | No | Sonnet, Haiku |
| Pro | 20(17 with annual billing) | Yes | Opus, Sonnet, Haiku |
| Max 5x | $100 | Yes | All, with a larger Fable share |
| Max 20x | $200 | Yes | All, with a larger Fable share |
Pro charges $200 up front for the annual discount. Team and Enterprise plans also include the tool, with seat based billing.
Pay per token Console billing sits outside this table. You pay only for what you send and receive, which suits bursty weeks and quiet ones alike.
What the Free Plan Still Delivers
Don’t write the free plan off. It runs Sonnet, supports web search, file uploads, projects and file creation and it handles one off debugging well. No Claude Code free tier exists inside it, though so a pasted stack trace in the browser is the closest you get.
Here are the limits developers hit first:
- No terminal agent. No workaround changes this on the chat plan.
- A rolling usage window. Anthropic publishes no exact message count and the window starts when you send your first message.
- Load-based throttling. Peak hours feel tighter than quiet ones.
- Rereading costs. Long threads burn through your allowance faster because each reply processes the whole conversation.
- No Opus. Opus access starts at Pro.
Route One: Console Credits

This route gives you the genuine product. Create an account on Anthropic’s Console, generate an API key and install the native installer. Claude Code then runs real Claude models on your real code.
Some new accounts have received a small promotional credit. Anthropic does not promise it so check your billing page before you build a plan around it.
Spend any credit on one meaningful task, such as refactoring a module you own. Stay in one repository per session, because prompt caching cuts repeat input costs sharply. A focused session on a Sonnet-class model often costs well under a dollar, though large codebases cost more.
Route Two: OpenRouter Free Models
OpenRouter is a gateway to hundreds of models and a rotating handful cost nothing. Claude Code reads its endpoint from a base URL setting so you can point it at OpenRouter’s Anthropic compatible address.
Be clear about the trade. You keep the interface, agent loop and slash commands, but a Qwen or Llama style model replaces Claude. OpenRouter itself warns that the tool is only guaranteed to work with Anthropic’s own provider.
Rate limits bite harder than model quality. At the time of writing, free models allow 20 requests per minute and 50 per day until you buy credits once. A single $10 purchase raises the daily cap to 1,000. Verify these numbers before relying on them, because they shift often.
Setting It Up in Minutes
Create a free OpenRouter account and generate a key. Then add three values to the settings file in your home Claude folder: the OpenRouter base URL, your key as the auth token and an empty string for the Anthropic API key.
If you ever signed in with an Anthropic account, run the logout command and relaunch. A cached login overrides your settings and triggers confusing model errors.
Finally, run the status command inside a session. It shows which base URL and credential the tool actually uses, which beats guessing.
Route Three: Local Models With Ollama
Ollama runs open models on your own machine. You get no keys, no rate limits and full offline use. Since early 2026, Ollama speaks the Anthropic message format directly so no translation proxy sits in the middle.
The cost shifts to hardware. A 16 GB Mac handles 7B to 14B models for simple edits. A 24 GB machine is the practical floor for agentic work and 32 GB or more suits 30B-class coding models. On Windows or Linux, GPU memory matters more than system RAM.
Set the context length to at least 32K tokens or the tool will stumble. Also expect gaps. Ollama skips prompt caching so each request reprocesses everything and it ignores forced tool choices, which can send the agent into loops.
Route Four: The Open Source Grant
Anthropic’s open-source program has offered qualifying maintainers six months of Max 20x, the top consumer plan. That includes Claude Code with generous headroom.
Eligibility has covered maintainers of widely downloaded packages, committers on major foundation projects and contributors with many merged pull requests. Borderline cases can still apply.
The grant covers the subscription only. API key usage bills separately so don’t point a build pipeline at it. Check Anthropic’s current program page, since criteria and caps change.
Compare the Free Routes
Use this table to weigh the trade offs side by side.
| Route | Real Claude model | Cost | Main limit | Best for |
| Console credits | Yes | Small credit, then per token | Credits run out | Honest evaluation |
| OpenRouter free models | No | $0 | Daily request caps | Ongoing zero-cost use |
| Ollama local models | No | Hardware | Memory and speed | Privacy and offline work |
| Open source grant | Yes | $0 for six months | Eligibility | Qualifying maintainers |
Pick Your Best Fit
New to the tool? Start with Console credits or buy one month of Pro for $20. One real project teaches you more than an evening of configuring substitutes.
Want ongoing zero cost access? OpenRouter offers the best quality-to-effort ratio, as long as you accept the daily caps.
Guard your source code closely? Choose Ollama, but only with 24 GB or more of memory. Maintain a popular package? Apply for the grant before anything else.
Fix Common Setup Errors
Login prompts keep returning. The tool needs a credential and a reachable URL doesn’t count as one. Set your token in a shell export or the home settings file, because project level files load only after the first run wizard.
A warning names two credential sources. Run the logout command to clear the saved login.
You see 400 errors about unrecognized fields. Turn off experimental beta fields in your settings, since some gateways reject them.
Errors mention thinking or adaptive reasoning. The upstream model lacks support so you must switch models or update the gateway.
Protect Your Code and Keys

Free tiers rarely match paid plans on data handling. Read each provider’s terms before sending proprietary code through them.
Never put credentials in a project settings file that your team commits. Use the local settings file, which Claude Code adds to your gitignore or the home folder file. To reduce the risk of leaked credentials and unexpected charges, follow Anthropic’s guidance on how to protect your API keys when using Claude Code and third-party tools.
Rotate any key you suspect has leaked. Also remember that setup tools can detect and reuse keys already on your machine so review what a new configuration picked up.
Final Thoughts
Is Claude Code free access exists only as trials, substitutes or grants and each path costs you something in quality, limits or setup time, yes. Start with the route that matches your goal, then upgrade only after the tool proves its value in your workflow.
For most developers, one genuine session on real Claude models settles the question faster than any workaround.
FAQs
Is Claude Code Free in VS Code without paying?
Not on the free Claude plan. The VS Code extension costs nothing to install. But it needs a Pro, Max, Team or Enterprise login or a pay per token Console API key. You can redirect it to free OpenRouter or local Ollama models, though those replace Claude with weaker substitutes.
Are free Claude Code projects on GitHub official?
No. Projects like Free Claude Code are independent, open source proxies that route requests to free tier, local or paid models. Anthropic does not build or endorse them. Their token allowance claims come from project readmes, not provider guarantees so review the code and each provider’s data terms before sending private work.
Can I trust online forum advice on free access?
Community threads can show real setup experiences, but they age quickly. The free chat plan excludes Claude Code so posters usually discuss trial credits, OpenRouter free models or local Ollama setups. Verify every claim against Anthropic’s pricing page, because plans, credits and rate limits change often.
What usage limits apply when you use Claude Code?
Free chat accounts get none, because the plan excludes it. Pro and Max share one usage pool with chat, governed by a rolling five hour window and a weekly cap. Anthropic publishes no exact message count. Free OpenRouter models allow 20 requests per minute and 50 daily until you buy credits.
