# Is Claude Code free? Every way to use it for $0 or close (2026)

URL: https://agentvera.dev/en/blog/is-claude-code-free/ · Published: 2026-11-22

Claude Code is not free: no Free plan includes it. Here is what is: local models through Ollama, open-source and startup programs, cheaper endpoints and the real costs.

**In short:**

- No. The CLI installs for free, but the Free Claude plan does not include Claude Code. The cheapest plan with it is Pro at $20 a month, or $17 a month billed annually, as of November 2026.
- The only $0 route is pointing Claude Code at a local model: Ollama 0.14+ speaks the Anthropic API and ollama launch claude sets it up. Anthropic does not support non-Claude models, and small models handle tools worse.
- Other options: six months of free Claude Ultra for qualifying open-source maintainers, cheaper Anthropic-compatible endpoints (DeepSeek, Kimi, GLM, Qwen) and free agents such as Codex or opencode.

Claude Code is not free. The CLI installs at no cost, but the Free Claude plan does not include it, so you need a paid plan, starting with **Pro at $20 a month ($17 a month billed annually)**, or API credits. The only way to run it for $0 is to point it at a local model through Ollama, which works but is not supported by Anthropic. Qualifying open-source maintainers can also get six months of Claude Ultra for free.

This guide lists every route as of November 2026: what each plan includes, the free programs, running Claude Code on local or cheaper models, and free agents to use instead or alongside.

## What Claude Code costs

| Plan | Price | Claude Code |
|---|---|---|
| Free | $0 | Not included |
| Pro | $20/month, or $17/month billed annually | Included |
| Max | $100/month | Included, about 5x Pro usage |
| Ultra | $200/month | Included, the highest individual limits |
| Team | $25/seat (Standard) or $125/seat (Premium) a month; $20 or $100 billed annually | Included |
| Enterprise | $20/seat a month, billed annually, 20 seats minimum | Included |
| API credits | Pay per token | Works with an API key |

Two details catch people out. The tier above Max is now called Ultra. And the monthly API credits that come with Max, Ultra and Team **do not cover Claude Code**; they are for the API only. Our [Claude Code pricing](/en/blog/claude-code-pricing/ "Claude Code pricing") guide compares the plans, and [Claude Max vs Ultra](/en/blog/claude-max-vs-ultra/ "Claude Max vs Ultra") covers the top two.

## Free programs that include Claude Code

- **Open-source maintainers:** Anthropic’s Claude for Open Source program gives six months of free Claude Ultra to people who meet one bar: for example 500 or more dependent repositories, 200,000 or more monthly downloads, 100 or more merged pull requests into other people’s repositories in the past 12 months, or an OpenSSF criticality score of 0.4 or higher. Applications were open in November 2026.
- **Startups:** the startup program offered $1,000 in API credits and a year of Team, but a notice from 13 October 2026 says the current cohort is full.
- **Students:** there is no free individual plan. Claude for Education is sold to universities, and the Campus Program is closed for fall 2026. If your university has a Claude for Education agreement, ask whether it includes Claude Code.

## Running Claude Code on a free local model

Claude Code talks to whatever server `ANTHROPIC_BASE_URL` points to. Since version 0.14 (January 2026), [Ollama](https://ollama.com/blog/claude "Ollama and Claude Code") speaks the Anthropic API, so Claude Code can run against a model on your own machine.

The quick way, with Ollama 0.15 or later:

```bash
ollama launch claude
```

Or set it up yourself:

```bash
export ANTHROPIC_BASE_URL=http://localhost:11434
export ANTHROPIC_AUTH_TOKEN=ollama
export ANTHROPIC_API_KEY=""
claude --model <local-model>
```

What to expect:

- **Pick a model with tool calling and a long context.** Ollama recommends at least 32K of context, and 64K or more for real work. Claude Code assumes a 200K window.
- **Quality drops.** Claude Code’s prompts and tools are tuned for Claude. Small local models miss tool calls and lose track of long tasks more often; use them for routine edits, tests and docs.
- **It is unsupported.** Anthropic’s gateway docs say it does not support routing Claude Code to non-Claude models. Some features, such as Remote Control, turn off when the base URL is not Anthropic’s.
- **Check what is active.** A leftover `ANTHROPIC_API_KEY` or claude.ai login can override your settings; `/status` shows which one Claude Code is using.

Ollama’s cloud models are not free: they are paid per token or through Ollama’s own plan. For the hardware side of local models, see our guide to [running a local LLM coding agent](/en/blog/local-llm-coding-agent/ "Local LLM coding agent").

## Cheaper endpoints: not free, but much less

Several model providers publish an Anthropic-compatible endpoint made for Claude Code. You set `ANTHROPIC_BASE_URL` to theirs and put their key in `ANTHROPIC_AUTH_TOKEN`:

| Provider | Base URL |
|---|---|
| DeepSeek | `https://api.deepseek.com/anthropic` |
| Moonshot (Kimi) | `https://api.moonshot.ai/anthropic` |
| Z.ai (GLM) | `https://api.z.ai/api/anthropic` |
| Alibaba Model Studio (Qwen) | `https://dashscope-intl.aliyuncs.com/apps/anthropic` |
| MiniMax | `https://api.minimax.io/anthropic` |
| OpenRouter | `https://openrouter.ai/api` |

None of these listed a free tier on their Claude Code pages in November 2026; you pay per token or through a coding plan. Their prices are often far below Claude’s, but the same caveat applies: Anthropic does not support them, and OpenRouter warns that Claude Code may not work correctly with providers other than Anthropic. Read each provider’s terms on where your code goes.

## Free agents instead of Claude Code

If the goal is a coding agent for $0, other CLIs have free tiers or work with free local models without any workaround:

- **Codex** works with a ChatGPT Free account, with low limits.
- **opencode, Aider, Cline and Qwen Code** are free and run on local models through Ollama.
- **Antigravity** and **Copilot** have free tiers with their own caps.

[The best free AI coding tools](/en/blog/best-free-ai-coding-tools/ "Best free AI coding tools") compares ten of them with their limits, and [the best Claude Code alternatives](/en/blog/best-claude-code-alternatives/ "Best Claude Code alternatives") covers paid options too.

## Combining a paid plan with free tools

A common pattern is one Claude Pro plan for the hard problems and free tools for the rest: a local model for repetitive edits, Codex on ChatGPT Free for a second opinion, opencode for quick scripts. That keeps a $20 plan inside its limits.

[AgentVera](/en/ "AgentVera") is a desktop app that runs these CLIs side by side in real terminals, each with its own login or local model. Put Claude Code on your Pro plan next to opencode on Ollama in the same [workspace](/en/features/workspace/ "Workspace"), see what each agent spends with [token budgets](/en/features/token-budgets/ "Token budgets"), and stretch your plan with [token savings](/en/features/token-savings/ "Token savings"), which trims what agents send.

The free plan runs 2 agents at once and includes MCP, Git, Docker, SSH, code review and token savings. Pro is $9.99 a month and has no agent limit; you can try Pro free for 7 days; cancel before it ends and you pay nothing. To try it, [download AgentVera](/en/download/ "Download AgentVera").

## Wrapping up

Claude Code needs a paid plan or API credits; the cheapest is Pro at $17 to $20 a month. For $0 you can run it on a local model through Ollama, accepting weaker results and no support, or apply to the open-source program if you maintain a widely used project. Otherwise, a free agent such as Codex, opencode or Aider gets you most of the way, and the two combine well.

Sources: [Claude pricing](https://claude.com/pricing "Claude pricing"), [Claude Code with Pro or Max](https://support.claude.com/en/articles/11145838-using-claude-code-with-your-pro-or-max-plan "Using Claude Code with your plan"), [API credits for subscribers](https://platform.claude.com/docs/en/about-claude/api-credits-for-subscribers "API credits for subscribers"), [Claude for Open Source](https://claude.com/contact-sales/claude-for-oss "Claude for Open Source"), [LLM gateway docs](https://code.claude.com/docs/en/llm-gateway "Claude Code LLM gateway"), [environment variables](https://code.claude.com/docs/en/env-vars "Claude Code environment variables"), [Ollama and Claude Code](https://docs.ollama.com/integrations/claude-code "Ollama Claude Code integration"), [OpenRouter guide](https://openrouter.ai/docs/guides/guides/claude-code-integration "OpenRouter Claude Code").

## Frequently asked questions

**Is Claude Code free to use?** No. Installing the CLI costs nothing, but using it with Claude models needs a paid plan (Pro, Max, Ultra, Team or Enterprise) or API credits. The Free Claude plan does not include Claude Code as of November 2026.

**What is the cheapest way to get Claude Code?** Claude Pro at $20 a month, or $17 a month when billed annually ($200 a year). API credits can be cheaper for light use, since you pay per token, but heavy agent sessions usually cost more than a plan.

**Can I run Claude Code with a free local model?** Yes. Ollama 0.14 and later expose an Anthropic-compatible API, and ollama launch claude (0.15 and later) starts Claude Code against a local model. It costs nothing beyond your hardware, but Anthropic does not support non-Claude models, and you need a model with tool calling and at least 32K to 64K of context.

**Do the API credits that come with Max or Ultra cover Claude Code?** No. Anthropic’s docs say the monthly API credits included with Max, Ultra and Team plans do not cover Claude Code usage.

**Is there a free Claude Code plan for students or open-source developers?** There is no free individual student plan; Claude for Education is sold to institutions. Open-source maintainers who meet one bar, such as 500 or more dependent repositories or 200,000 monthly downloads, can apply for six months of free Claude Ultra.

---

**About AgentVera.** AgentVera is a desktop app for macOS, Windows and Linux, built by Solviera Teknoloji. It runs 18 AI coding agents (Claude Code, Codex, Gemini CLI, Copilot, Cursor, Antigravity, opencode, Hermes, Qwen Code, Kimi Code, Kiro, Amp, Droid, Goose, Vibe, Crush, Aider, Cline) side by side, per project, in real terminals with the user's own CLI installs and logins. The free plan runs 2 agents at once. Download: https://agentvera.dev/en/download/ · Pricing: https://agentvera.dev/en/pricing/
