Is Claude Code free? Free to install, from $20 a month to run, and free for a year for some teachers and scientists

In brief

No. Claude Code is free to install, but Anthropic's free Claude plan does not include it, so running it starts at Claude Pro at $20 a month as of November 2026. Four groups get it free: US K-12 teachers and research lab leads for 12 months, open source maintainers for 6 months, and guest pass holders for 7 days.

Is Claude Code free? Every version installs free, and none runs on the free plan

We checked six places Claude Code runs on 10 November 2026, from the terminal to GitHub Actions. None of them accepts a free Claude account. Anthropic's setup docs say "Claude Code requires a Pro, Max, Ultra, Team, Enterprise, or Console account." The next line is blunter: "The free claude.ai plan does not include Claude Code access."

An open dark laptop with an empty terminal window on a low black plinth, an unlocked chrome padlock beside it and a small brass key resting on a cream card, in a charcoal studio.
Where Claude Code runs, 10 November 2026Cost to install or set upWhat it needs before it does any workWho bills the usage
Terminal app on macOS, Windows or Linux$0A Pro, Max, Ultra, Team or Enterprise plan, or a Console accountYour Claude plan, or per token on a Console key
VS Code extension, which also installs in Cursor$0"Any paid Claude subscription" or a Console accountSame as the terminal app
Claude Desktop app, Code tab$0 downloadA Claude sign in on a plan that includes Claude CodeYour Claude plan
Cloud sessions at claude.ai/code and in the mobile app's Code tab$0, with "no separate charge for the cloud VM"Pro, Max, Ultra, Team, or an Enterprise seat that includes itYour plan's usage limits
GitHub Actions, through @claude in issues and pull requests$0 to add the actionA Console API key, or a subscription token from Pro and upAnthropic per token or your plan, plus GitHub Actions minutes
Amazon Bedrock, Google Cloud's Agent Platform or Microsoft Foundry$0An account with that cloudThat cloud provider

So the part that's free is the software. You pay for the model time behind it, and Anthropic sells you that time on a plan or by the token. Its API pricing docs say "New users receive a small amount of free credits to test the API." They don't give the amount. After that, Claude Sonnet 5.5 costs $2 per million input tokens and $10 per million output tokens.

Who can run Claude Code free, and for how long?

Four groups can run Claude Code on Claude's own models without paying for it. Only US K-12 teachers and the people who lead university research labs get a full year. Maintainers get 6 months if they're accepted, and a guest pass lasts 7 days.

Free Claude Code lasts a year for teachers and lab leads, 7 days on a guest pass
Claude for Teachersverified US K-12 educators12 monthsTeam plan for scientistslab leads at universitiesand nonprofits12 monthsClaude for Open Sourcemaintainers, by application6 monthsGuest passnew users invited by a subscriber7 dayseach square is one week of free Claude Code, from Anthropicpages read 10 November 2026; 6 months counted as 26 weeks

Claude for Teachers, launched on 14 July 2026, gives verified US K-12 educators a free year. Anthropic says it "includes Claude Code and Cowork." Teachers who sign up by 30 June 2027 get the whole year.

The Claude Team plan for scientists is the route most guides miss. Anthropic says "10,000 scientists around the world can now get Claude at no cost to start." It's for principal investigators at accredited universities and nonprofit research institutes, and it covers the natural sciences, mathematics, computer science and engineering. "Standard seats are free" for 12 months from sign-up, and a Standard seat includes Claude Code. A lab can have 1 to 25 seats. Anthropic reviews most applications in 5 to 7 business days, and a group that sits idle for 90 days can go back to normal Team pricing.

Claude for Open Source gives accepted maintainers "6 months of free Claude Ultra," the $200 plan. You only need to clear one of its five bars. Three of them: 500 or more repos that depend on your code, or 100 of your pull requests merged into other people's repos in the last 12 months. A repo with an OpenSSF criticality score of 0.4 or higher also counts. When the 6 months end, a free account "returns to the free plan."

The guest pass is the short one, and its rules are stricter than most guides say. Anthropic's Guest Pass Terms, effective 5 November 2026, let "Pro and Max subscribers who have been subscribed for at least 31 days" send a 7 day Pro trial. You qualify only if you've never had "a paid subscription to, or free trial of, any Claude product." The terms don't name Ultra, though Anthropic's help page on passes does. You add a card, and the pass turns into paid Pro unless you cancel. The Claude Code free trial guide walks through redeeming one.

What does the free Claude plan do for code?

The free Claude plan helps with code in a chat window, and it stops there. Claude's pricing page lists "Search the web, create files, and run code" on the Free card, with "Limited usage every 5 hours and every week." The same page marks Claude Code "No" in the Free column.

So with a free account, Claude can read the code you paste in, explain a stack trace to you and run a short script in its own sandbox. It can't open your repo or run your test suite. It can't edit files on your machine, either. That's the job Claude Code does. Anthropic doesn't publish a free message count, and its pricing FAQ says Pro gives "at least 5x more usage per 5-hour session than Free."

Whizi, which publishes this page, is another chat route, not a Claude Code substitute. A free Whizi account gets 10 messages a day on Whizi AI, Auto and Claude Haiku 5.5. Whizi Pro adds Claude Sonnet 5.5 and Claude Opus 5.5 next to GPT and Gemini, with the first 7 days at $1.99, then $29.99 a month. There's no terminal agent, no file editing and no Claude Code login.

Is Claude Code free with Claude Pro?

Yes. Claude Code comes with every paid Claude plan at no extra charge, and Pro is the cheapest of them at $20 a month, or $200 a year. Anthropic's pricing FAQ says "Claude Code is included in all paid plans." When you pay for a bigger plan, you get more usage, not more features.

That usage is shared with chat. Anthropic's help page for Pro, Max and Ultra says the limits "are shared across Claude and Claude Code, meaning all activity in both tools counts against the same limits." When you hit them, you can wait it out, turn on usage credits, or move up to a bigger plan. Max costs $100 a month for 5x Pro usage. Ultra costs $200 for 10x Pro usage a week, with no 5-hour limit for verified accounts.

Ultra used to be Max 20x. Anthropic renamed it on 30 October 2026, as The Next Web reported, so older guides still use the old name. Claude Code usage limit breaks the windows down by plan. The cheapest way to use Claude Code prices each plan per share of usage.

Is Claude Code free in VS Code?

The VS Code extension is free to install, and it won't run on a free Claude account. Anthropic's extension docs ask for VS Code 1.94.0 or later and "any paid Claude subscription (Pro, Max, Ultra, Team, or Enterprise) or a Claude Console account." The same extension installs in Cursor. The same rule follows it there.

If you sign in with a Console account, the extension shows you what each session costs and how many tokens it used, instead of your plan limits. That's the per token route. Claude Code pricing works out when it costs more than Pro.

Is Claude Code free with Ollama?

Yes, on a model that runs on your own computer, and then no Claude model answers. Ollama's Claude Code guide starts it with one command, ollama launch claude, or by pointing ANTHROPIC_BASE_URL at http://localhost:11434. Its local example is qwen3.5. The guide asks for "a 64k+ context window" on local models, and that takes a lot of memory.

Watch the model tags, though. The other examples in the guide, gemma4:cloud, kimi-k2.7-code:cloud and glm-5.3-flash, run on Ollama's servers with an OLLAMA_API_KEY. Ollama's pricing page bills every cloud model per token, even on its $0 Pay as you go plan, and Ollama Pro costs $20 a month. The only free way to do it with Ollama is the one where your own machine does all of the work.

Anthropic's authentication docs describe the same switch for company gateways. OpenRouter uses it too. Its Claude Code guide sets ANTHROPIC_BASE_URL to https://openrouter.ai/api and says "You are billed using your OpenRouter credits," so that route isn't free either. Unset ANTHROPIC_BASE_URL and Claude Code goes back to your Claude login.

Is Claude Code open source?

No. Claude Code has a public GitHub repo, but its license isn't an open source one. The LICENSE file reads "© Anthropic PBC. All rights reserved." It adds that use is subject to Anthropic's Commercial Terms of Service. You can download it and run it for free. You can't fork it under an open source license, though, and the free download doesn't change what you'll pay for the model time.

Workflow checklist
  • Run claude --version after installing; the install is free, and the sign in is where the plan matters
  • Teachers: check Claude for Teachers before 30 June 2027; lab leads: apply for the Team plan for scientists
  • Maintainers: check the Claude for Open Source bars and apply for 6 free months of Ultra
  • Use only the local Ollama models if you want $0; the :cloud tags bill per token
  • Unset ANTHROPIC_API_KEY and ANTHROPIC_BASE_URL if Claude Code bills the wrong account
Common questions

Frequently asked questions

Is Claude Code free with Claude Pro?

Yes. Claude Code comes with Claude Pro at no extra charge, and Pro costs $20 a month, or $200 a year, as of November 2026. It shares one usage limit with Claude chat, so a long coding session leaves less for chat. Past the limit you can wait, turn on usage credits, or move to Max.

Is Claude Code free for students?

Not on its own. Anthropic sells no individual student plan, so a student gets Claude Code free only when the university has a Claude for Education plan, or through a seat on their lab's free Team plan for scientists. The principal investigator applies for that one. Claude for Teachers covers US K-12 teachers, not students. Claude student discount lists the schools we found.

Does Claude Code have free API credits?

Only a small starter credit. Anthropic's pricing docs say new users get "a small amount of free credits to test the API" and don't give the amount. After that, Claude Code on an API key bills per token, with Claude Sonnet 5.5 at $2 per million input tokens and $10 per million output tokens as of November 2026.

Is the Claude Code GitHub Action free?

The action is free to add, but every run uses GitHub Actions minutes and Claude tokens. Anthropic's docs say runs bill per token on a Console API key. With an OAuth token from Pro, Max, Ultra, Team or Enterprise, "runs use your Claude subscription instead of API billing."