Back to guides
Prices·October 10, 2026·Updated November 23, 2026·10 min read

Is Claude Code free? What's free, the 7-day trial, and what a month costs

Short answer: no. The CLI is free, and there is a seven-day guest pass, but only Pro, Max, and Ultra subscribers can send one. See what Claude Code costs afterward, by subscription or per token, and the cheapest route without a subscription, with Pix.

No, Claude Code is not free: it is not included in Claude’s free plan. What is free is the software itself—the CLI and the VS Code and JetBrains extensions—and a guest pass: seven days of Claude Pro, including Claude Code, that an eligible Pro, Max, or Ultra subscriber can give to someone who has never paid for a Claude subscription. Apart from the pass and some Anthropic programs for specific groups, every model call is paid for, either through a subscription (Claude Pro costs US$ 20 per month, before taxes) or, without a subscription, by token with an API key. Through Kunavo, a typical 20-step task using Claude Sonnet 5 costs about US$ 0.87.

What about free Claude Pro? There is no permanently free version: according to the Anthropic help center, the individual plans (Pro, Max, and Ultra) have no special discount apart from occasional promotions, and support does not give out coupons. For most people, the closest thing is the seven-day guest pass; open-source maintainers and some research groups have their own Anthropic programs, explained further below.

Updated November 21, 2026. Plans, prices, and limits are based on Anthropic’s pricing page (in English), the Claude Code installation documentation, and three help center articles (Claude Code with Pro, Max, or Ultra; Ultra plan; guest passes). Kunavo prices come directly from Kunavo’s model catalog.

What’s free in Claude Code and what isn’t

ComponentCost
Install the CLIFree
VS Code and JetBrains extensionsFree
Configuration, hooks, skills, subagents, MCP serversFree
Model calls, meaning any actual useSubscription or API key

Claude Code is an agent: at each step—whether reading a file, proposing a change, running a command, or checking the result—it calls a Claude model, and those calls must be paid for through an account. According to the installation documentation, Claude Code requires a Pro, Max, Ultra, Team, Enterprise, or Console account, and Claude.ai’s free plan does not include access to Claude Code. Claude Code also works through a cloud provider such as Amazon Bedrock or, as you’ll see below, through a gateway using your own API key.

Claude plans that include Claude Code

Prices from claude.com/pricing, in US dollars and before taxes. For the break-even point between a subscription and the API, with details by model, see Claude Code pricing.

PlanPriceClaude CodeUsage
FreeUS$ 0No–
ProUS$ 20 per month; US$ 17 per month on the annual planYesFive-hour session limit and weekly limit
MaxUS$ 100 per month, no annual planYesThe same limits, with five times Pro’s usage
UltraUS$ 200 per month, no annual planYesTen times Pro’s weekly usage, with no five-hour limit for verified accounts
Team, Standard seatUS$ 25 per seat per month; US$ 20 on the annual planYesMore usage than Pro, for teams of 2 to 150 people
EnterpriseUS$ 20 per seat per month on the annual plan, plus usage at API ratesYesCost varies by model and task

According to the help center, on the Pro, Max, and Ultra plans, Claude chat and Claude Code share the same usage allowance: everything you do in either one counts toward the same limits. The pricing page does not state the size of this allowance and only compares the plans with one another. When you reach the session or weekly limit, you wait for the reset or enable usage credits, which are charged at standard API rates. The monthly API credits included with Max and Ultra, however, do not cover interactive use of Claude Code. And if the ANTHROPIC_API_KEY variable is set in your terminal, Claude Code uses that key instead of the subscription: usage is billed as API usage, and the plan allowance remains untouched.

The guest pass: seven days of Claude Code at no charge

For most people, the official way to use Claude Code for free is a guest pass; Anthropic’s programs for open-source maintainers and for scientists are covered in the next section. This is how the Anthropic help center describes the guest pass:

  • Who can send one: only eligible Pro, Max, and Ultra subscribers. They can find the passes in Claude Code (with the /passes command), in Claude settings (the “Claude Code” tab), in Claude Desktop settings (the “Cowork” tab), or in Claude Design settings. To send a pass, the subscriber shares a personal invitation link.
  • What you get: seven days of Claude Pro, including Claude Code, Cowork, and Claude Design.
  • Who can use one: only people who have never had a paid Claude subscription.
  • The catch: you provide a payment method when signing up. You won’t be charged if you stop using Claude at the end of the seven days; if you don’t cancel, the trial automatically becomes a paid Pro subscription.
  • Limited availability: each subscriber has a limited number of passes, which may expire or be withdrawn, and passes are redeemed on a first-come, first-served basis.

In practice, ask a colleague or friend with Pro, Max, or Ultra for a link, and mark the end of the seven days on your calendar if you don’t want to pay afterward. If you have had a paid Claude subscription before, the guest pass isn’t available to you; that leaves a subscription, an API key, or, if you qualify, one of the programs in the next section.

Free Claude Pro: is there a way to get it?

There is no permanently free Claude Pro. According to the Anthropic help center, the individual plans (Pro, Max, and Ultra) have no special discount, and support does not give out coupons or one-off discounts; promotions are occasional, time-limited, and generally only for people who have never had a paid plan.

To use Pro free for a limited time, there is the guest pass, and some programs give a paid plan free of charge to specific groups. Conditions as checked on November 21, 2026:

  • Guest pass. Seven days of Claude Pro, including Claude Code, for people who have never had a paid Claude subscription and receive a link from an eligible Pro, Max, or Ultra subscriber (help center). You must provide a payment method when signing up, and on the web Anthropic accepts only credit or debit cards; if you don’t cancel by the end of the seven days, the trial becomes a paid Pro subscription.
  • Claude for Open Source. The program gives six months of Claude Ultra (the former Max 20x), including Claude Code, to open-source maintainers and contributors whose applications are approved; meeting the criteria does not guarantee approval. The program terms require, among other conditions, a minimum age of 18, legal residence in a country where Claude.ai is offered (Brazil is on the list), a GitHub account created at least two years ago, and an impact criterion, such as 500 repositories that depend on your project or 200,000 downloads per month. The program is capped at 10,000 approved applicants and may be closed at any time. At the end of the six months, the free subscription does not renew on its own: the account returns to the plan it had before, and anyone who was already paying for a subscription is billed again unless they cancel beforehand.
  • Claude Team plan for scientists. The plan gives free Standard seats for 12 months, each including Claude Code, to research group leaders (PIs) in the natural sciences, mathematics, computer science, engineering, and related fields at accredited universities or nonprofit research institutes, and to their labs. The offer is limited (an initial group of 10,000 scientists), may end at any time, and the final price is confirmed only after verification. The terms require being in a region where the plan is offered, without saying which regions those are (so there is no way to be sure Brazil is included), and registering a valid payment method; after the 12 months, the plan continues at the then-current price unless it is canceled.
  • Students and teachers. Anthropic does not offer a student discount on the individual plans. Claude for Education is a plan that a university buys for its students, faculty, and staff (pricing page), and students use the plan through their university account. Also, you must be at least 18 years old to use Claude. Claude for Teachers, meanwhile, is free only for verified elementary and secondary school educators in the United States, so the program isn’t available to teachers in Brazil, and it isn’t meant for students.

What doesn’t work. Anthropic says gift subscriptions are not for sale at the moment. And the terms of use prohibit making your account available to anyone else, which includes the “shared” Pro accounts sold by third parties.

The Free plan, on the other hand, is open to anyone 18 or older in a country where Claude is available, and Brazil is on the list. According to the pricing page:

  • Includes: chat on the web, desktop, and mobile, with the Sonnet and Haiku models; web search, file creation, and code execution; memory across conversations, app connectors, and Artifacts; Claude Design, Claude Slides, and Claude Docs; and up to five projects.
  • Does not include: Claude Code, the Opus and Fable models, Research (in-depth research), Claude in Chrome, or usage credits.
  • Limits: usage is limited, and there is no fixed number of messages; the pricing page mentions limits every five hours and every week. Pro gives more usage than Free under both limits, but Anthropic does not say how much more.

If what you wanted from Pro was Claude Code, or Opus for coding, you can pay only for what you use, without a subscription, with an API key billed by token. Through Kunavo, Claude models are priced 30% below Anthropic’s list prices, and that includes Claude Opus 5.5 and Claude Fable 5.2, which the Free plan doesn’t have (on Pro, Fable is billed separately, through usage credits). A 20-step task (20 model calls, each with about 25,000 input tokens and 1,200 output tokens, without prompt caching) costs about US$ 0.87 using Claude Sonnet 5 and about US$ 1.74 using Claude Opus 5.5.

Just don’t confuse this with Claude Pro: a claude.ai subscription and an API key are separate products. Your Kunavo balance does not activate a subscription or work in the Claude app (chat, projects, Claude Design); the balance pays for calls from Claude Code and other programs that accept an API key.

And you don’t need a card: the balance is prepaid, starts at US$ 10, doesn’t expire, and can be topped up with Pix, in Brazilian reais. Setting up the key is covered further down this page; the step-by-step walkthrough is in the guide on how to install Claude Code, and the comparison with a subscription is in Claude Code pricing.

Ollama, free models, leaked versions: what these workarounds provide

Many tutorials promising “free Claude Code” actually teach a workaround. Here are the three most common, plainly stated:

  • Claude Code with Ollama. According to the Ollama documentation, it connects Claude Code to local and cloud models through an API compatible with Anthropic’s. The tool works, but the responses come from another company’s open model, not Claude. Running locally has no per-token charge, but your computer needs enough capacity: for large repositories, Ollama recommends a context window of at least 64k tokens.
  • OpenRouter’s free models. None of the free models in the OpenRouter list were from Anthropic as of November 21, 2026. Claude models are also billed by token there.
  • Leaked or “unlocked” versions. The CLI is already free; an unofficial version does not change the fact that someone has to pay for the model calls—it only changes the model. There is also a security risk: Anthropic signs its macOS and Windows releases and publishes a signed manifest with their checksums (installation documentation). A version downloaded from elsewhere does not have that verification chain.

What all three have in common: you get the Claude Code interface, but not the model it was designed for. To work with Claude, you have to pay; the only question is how much.

How much Claude Code costs without a subscription

Without a subscription, each model call is billed by token. Because Claude Code resends the system prompt, conversation, and file context at every step, an agentic step is larger than a chat message: about 25,000 input tokens and 1,200 output tokens. Using Claude Sonnet 5, with prompt caching intentionally disabled:

WorkloadKunavoAnthropic pricing
One agentic stepUS$ 0.043US$ 0.062
One task (20 steps)US$ 0.87US$ 1.24
One heavy day (5 tasks)US$ 4.34US$ 6.20
20 heavy daysUS$ 87US$ 124

Ten tasks per month cost about US$ 8.68 through Kunavo, and the minimum top-up of US$ 10 covers about 12 tasks. The Pro subscription at US$ 20 is equivalent to about 460 steps, or 23 tasks per month. If you exceed that volume every month and Pro’s limits are sufficient, the subscription costs less; if you code in bursts, the key is the better option because an idle month costs nothing. See Claude Code pricing for the full calculation, including Max and model-by-model details.

The cheapest way without a subscription: your own API key

Claude Code reads the ANTHROPIC_BASE_URL variable and works with any endpoint that supports Anthropic’s Messages API, with no plugin, proxy, or modified binary. Kunavo is an independent gateway that offers the same Claude models at 30% below Anthropic’s list prices, paid for with a prepaid balance starting at US$ 10 and no monthly fee. Set these variables in your terminal:

~/.zshrc
export ANTHROPIC_BASE_URL=https://api.kunavo.com
export ANTHROPIC_AUTH_TOKEN=sk-kn-...
export ANTHROPIC_MODEL=claude-sonnet-5
export ANTHROPIC_DEFAULT_OPUS_MODEL=claude-opus-5-5
export ANTHROPIC_DEFAULT_SONNET_MODEL=claude-sonnet-5-5
export ANTHROPIC_DEFAULT_HAIKU_MODEL=claude-haiku-5-5

Keep the model lines. Without ANTHROPIC_MODEL, Claude Code starts with its default model, which Anthropic currently says is Opus 5.5; this line makes Claude Sonnet 5 the starting model, the same one used in the calculation above. ANTHROPIC_DEFAULT_OPUS_MODEL sets the opus alias to Opus 5.5, which Claude Code supports starting with version 2.1.280; on an older installation, run claude update. The sonnet alias requests Sonnet 5.5, which Kunavo already offers; ANTHROPIC_DEFAULT_SONNET_MODEL keeps the alias pinned to it, so that /model sonnet, the execution phase of opusplan, and subagents using model: sonnet don't fail with a 404 error when the alias moves to a newer model that Kunavo does not offer yet. ANTHROPIC_DEFAULT_HAIKU_MODEL routes Claude Code’s background calls to Claude Haiku 5.5.

The haiku alias requests Haiku 5.5 starting with Claude Code 2.1.293, and a dated Haiku 4.5 ID in earlier versions. Kunavo offers Haiku 5.5, but not that dated ID: on an earlier version, without ANTHROPIC_DEFAULT_HAIKU_MODEL, /model haiku and subagents with model: haiku fail with a 404 error.

To make these settings permanent, put the variables in the env block of ~/.claude/settings.json. Remote Control and voice dictation require signing in to claude.ai and do not work with a gateway key; code, tools, subagents, and MCP work normally. For step-by-step installation and setup, see install Claude Code.

Pay from Brazil with Pix

Kunavo is prepaid, and every method below tops up the same API balance.

  • From anywhere: USDT on TRON (TRC-20), Ethereum (ERC-20) or BNB Chain (BEP-20), or USDC on Base, Ethereum (ERC-20) or BNB Chain (BEP-20), sent to the address and for the exact amount the top-up page gives you.
  • In local currency: Alipay (mainland China), AlipayHK (Hong Kong), Pix (Brazil), GCash (Philippines), Touch 'n Go eWallet / Boost (Malaysia), PayNow (Singapore) and K PLUS / LINE Pay (Thailand); the top-up page shows the amount in that currency before you pay.
  • Card payments are being enabled and cannot be used yet.

Frequently asked questions

Is Claude Code free?

No. Claude’s free plan does not include Claude Code. What is free is the software itself (the CLI, the VS Code and JetBrains extensions, and configuration) and a seven-day Claude Pro guest pass, which eligible Pro, Max, and Ultra subscribers can send to someone who has never paid for a subscription. Two Anthropic programs with limited spots also provide a paid plan with Claude Code free of charge for a limited time: Claude for Open Source, with six months of Claude Ultra for open-source maintainers and contributors whose applications are approved, and the Claude Team plan for scientists, with 12 months of free Standard seats for research groups at accredited universities and nonprofit research institutes. Apart from these cases, any actual use is a model call, paid for through a subscription (Claude Pro costs US$ 20 per month, before taxes) or by token with an API key: through Kunavo, a 20-step task using Claude Sonnet 5 costs about US$ 0.87.

Is there a free trial of Claude Code?

Yes, in the form of a guest pass: seven days of Claude Pro, including Claude Code, Cowork, and Claude Design. Only eligible Pro, Max, and Ultra subscribers can send one; these subscribers can find the passes in Claude Code (with the /passes command), in Claude settings (the “Claude Code” tab), in Claude Desktop settings (the “Cowork” tab), or in Claude Design settings. The pass is available only to people who have never had a paid Claude subscription. You must provide a payment method when signing up; you won’t be charged if you stop using Claude at the end of the seven days, but if you don’t cancel, the trial automatically becomes a paid Pro subscription. Passes are limited and may expire or be withdrawn.

Can I use Claude Pro for free?

Not permanently: according to Anthropic’s help center, the individual plans (Pro, Max, and Ultra) have no special discount, and support does not give out coupons. Promotions are occasional, time-limited, and generally only for people who have never had a paid plan; for now, people who subscribe through the App Store or Google Play cannot use them. There are official ways to use a paid Claude plan without paying, each with conditions: the guest pass, with seven days of Pro, for people who have never paid for a Claude subscription and receive a link from an eligible Pro, Max, or Ultra subscriber (on the web, signup requires a card, and unless canceled, the trial becomes a paid subscription); Claude for Open Source, with six months of Claude Ultra for open-source maintainers and contributors whose applications are approved; and the Claude Team plan for scientists, with 12 months of free Standard seats for research group leaders (PIs) in the natural sciences, mathematics, computer science, and engineering at accredited universities and nonprofit institutes (after that, the plan continues at the then-current price unless canceled). Both programs have limited spots, and every option requires, at a minimum, being in a country where Claude is available (Brazil is on the list). Shared Pro accounts violate Anthropic’s terms of use. The Free plan costs nothing, but it doesn’t include Claude Code or the Opus and Fable models. Anthropic’s rules were checked on November 21, 2026.

Is Claude free for students or teachers?

The Free plan is free for students and teachers, as it is for anyone 18 or older in a country where Claude is available. A paid plan at no cost is available only in specific cases: Anthropic offers no student discount on Pro, Max, or Ultra, and a student gets Claude for Education only if their university buys the plan for its students, faculty, and staff. Claude for Teachers, with Pro features and Claude Code, is free only for verified elementary and secondary school educators in the United States, so the program isn’t available to teachers in Brazil, and it isn’t meant for students. Anthropic’s rules were checked on November 21, 2026.

Can I use Claude Code without a subscription?

Yes, with an API key billed by token. Claude Code reads the ANTHROPIC_BASE_URL and ANTHROPIC_AUTH_TOKEN environment variables for this. On Kunavo, you can top up a prepaid balance starting at US$ 10, including with Pix, with no monthly fee or expiration, so an idle month costs nothing. While a key is configured, Claude Code uses it instead of the subscription: plan limits no longer apply, and usage is billed to the key.

Can I use Claude Code for free with Ollama?

The tool, yes; Claude, no. According to Ollama’s documentation, it connects Claude Code to local and cloud models through an API compatible with Anthropic’s. The responses therefore come from other companies’ open models, not a Claude model. Running locally has no per-token charge, but your computer needs enough capacity, and Ollama recommends a context window of at least 64k tokens for large repositories. To work with Claude itself, you need a subscription or an API key.

How much does Claude Code cost per month without a subscription?

It depends on the number of agentic steps, not the number of days. A step with about 25,000 input tokens and 1,200 output tokens costs around US$ 0.043 using Claude Sonnet 5 through Kunavo, and a 20-step task costs around US$ 0.87. Ten tasks per month come to about US$ 8.68, and a heavy month of 20 days with five tasks per day comes to about US$ 87, compared with US$ 124 at Anthropic’s list prices. With a prepaid key, a month with no usage costs nothing.

Can I pay for Claude Code with Pix?

From anywhere: USDT on TRON (TRC-20), Ethereum (ERC-20) or BNB Chain (BEP-20), or USDC on Base, Ethereum (ERC-20) or BNB Chain (BEP-20), sent to the address and for the exact amount the top-up page gives you. In local currency: Alipay (mainland China), AlipayHK (Hong Kong), Pix (Brazil), GCash (Philippines), Touch 'n Go eWallet / Boost (Malaysia), PayNow (Singapore) and K PLUS / LINE Pay (Thailand); the top-up page shows the amount in that currency before you pay. No other wallet or bank transfer is offered. Card payments are being enabled and cannot be used yet.