Almost all confusion about Claude Code’s price comes from mixing the two routes. Put in the same unit, the answer is straightforward: on Kunavo, Claude Sonnet 5 costs $1.40 / $7.00 and Claude Opus 5.5 $2.80 / $14.00 per 1M tokens, and one agentic step on Sonnet 5 costs about $0.043 — so the $20 for Pro buys about 460 agentic steps per month (around 23 20-step tasks). Below that, the API key is cheaper and a quiet month costs nothing; above it, the subscription pays off until you hit the plan limits. This page gives the figures for both routes, the calculation in reais and what a real month costs; Claude API rates outside Claude Code are in Claude API pricing.
Rates verified on November 23, 2026 against claude.com/pricing and Anthropic’s API pricing documentation. Kunavo’s per-token prices are read live from the model catalog.
The two options, side by side
| Subscription (Pro / Max) | API key (pay as you go) | |
|---|---|---|
| What you pay | Fixed monthly fee, starting at $20 | Per token, no subscription fee |
| Limits | Rolling 5-hour and weekly usage windows, shared with Claude chat | None — you pay for what you use |
| A quiet month | Charged in full | Costs nothing |
| A busy month | Limited — you hit the cap and wait | Scales with the work, and so does the bill |
| Paying from Brazil | Card (credit or debit) on the website, or the app store | See the payment guide |
Subscription pricing
Claude Code is included in claude.ai paid plans — Anthropic’s installation documentation says the Free plan doesn’t include access to Claude Code. Pro costs $20/month ($17/month with annual billing, $200 upfront) and suits one developer working within the plan limits. Max costs $100/month and Ultra (formerly Max 20x) $200/month; both are for people who keep hitting those limits. Team and Enterprise add per-seat allowances and administrative spending controls.
Two details matter in Brazil: billing is in dollars and recurring, on an international credit card enabled for foreign transactions — with IOF and the issuer’s international transaction fee charged every month — and usage limits are shared with Claude chat, so an afternoon of conversation uses the same window as your coding session.
API pricing
There’s no monthly fee here: you pay per token. Rates in USD per 1M tokens, with Anthropic’s official table alongside for direct comparison.
| Model | Kunavo input / output | Anthropic list (in / out) | Savings | Cost per step |
|---|---|---|---|---|
claude-haiku-4-5 | $0.70 / $3.50 | $1.00 / $5.00 | ~30% | $0.0217 |
claude-sonnet-4-6 | $2.10 / $10.50 | $3.00 / $15.00 | ~30% | $0.065 |
claude-sonnet-5 | $1.40 / $7.00 | $2.00 / $10.00 | ~30% | $0.043 |
claude-opus-5 | $3.50 / $17.50 | $5.00 / $25.00 | ~30% | $0.109 |
“Cost per step” means one round trip to the model within a task — system prompt, history, and file context in the input (~25,000 tokens), with an edit or explanation in the output (~1,200). It’s the right unit for thinking about Claude Code because the tool rereads the context at every step.
How much a real month costs
Anthropic’s cost documentation reports about $13 per developer per active day and $150–250 per developer per month for enterprise deployments, with 90% of users below $30 per active day. These are figures at full list price using a mix of models. At Kunavo rates, the reduction in cost for the same volume is 30% — and routing background calls to Claude Haiku 5.5 ($0.07 / $0.35 per 1M) cuts it further.
At Kunavo rates, the break-even point is: $20 buys approximately 460 agentic steps per month with Sonnet 5 — around 23 20-step tasks. Below that volume, pay-as-you-go wins because a quiet month costs nothing. Above it, the subscription is worthwhile — until you hit the plan limits and have to wait for the window to reset.
How to pay from Brazil
A subscription purchased on the claude.ai website accepts only credit or debit cards (Anthropic help center, checked on October 22, 2026); in the mobile app, billing is handled by the App Store or Google Play. Pix is not accepted for subscriptions.
For the API key route, see the payment guide — this page covers pricing only. Per-token rates are set in USD, so the amount in reais depends on the day’s exchange rate. The full Brazil context (São Paulo latency, LGPD, invoices) is in the Claude API in Brazil guide.
How to point Claude Code to Kunavo
Claude Code reads the endpoint and credentials from environment variables—six lines, with no proxy or plugin:
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-5The model lines are recommended: Claude Code's default model and the opus and sonnet aliases move to Anthropic's newest model on release day. The sonnet alias currently requests Sonnet 5.5, which Kunavo offers; without ANTHROPIC_DEFAULT_SONNET_MODEL, /model sonnet, the execution phase of opusplan, and subagents with model: sonnet return 404 when the alias changes to a Sonnet that Kunavo does not have yet. The opus alias is fixed to Claude Opus 5.5 (claude-opus-5-5, $2.80 / $14.00 per 1M tokens on Kunavo), which requires Claude Code 2.1.280 or later—on an earlier version, run claude update. While ANTHROPIC_AUTH_TOKEN is set, Claude Code uses the key instead of the saved login: plan limits no longer apply, and usage is charged to the key balance. Remove the variable to return to the subscription; you can switch between the two routes by shell. Create the key in the dashboard; the complete walkthrough is in the Claude API key guide.
Calculating the cost of a real session
Run /usage inside Claude Code to see the session’s four numbers (new input, output, cache read, and cache write), then plug them into this function:
# Quanto custou uma sessão do Claude Code, a partir dos tokens dela.
# Rode /usage dentro do Claude Code para pegar os quatro números reais.
RATES = { # USD por 1M de tokens na Kunavo: (input, output, leitura de cache / input)
"claude-haiku-4-5": (0.70, 3.50, 0.1),
"claude-sonnet-4-6": (2.10, 10.50, 0.1),
"claude-sonnet-5": (1.40, 7.00, 0.1),
"claude-opus-5": (3.50, 17.50, 0.1),
"claude-opus-5-5": (2.80, 14.00, 0.05),
}
def custo_sessao(model, inp, out, cache_read=0, cache_write=0):
i, o, r = RATES[model]
return (
inp / 1e6 * i # input novo
+ out / 1e6 * o # output, incluindo tokens de raciocínio
+ cache_read / 1e6 * i * r # leitura de cache: fração r da tarifa de input
+ cache_write / 1e6 * i * 1.25 # escrita de cache de 5 min: 125%
)
print(custo_sessao("claude-sonnet-5", 1_200, 5_300, 940_000, 50_000))Notice the weight of cache reads: in a long session they dominate the token count, and they are precisely what costs only 10% of the input rate on Sonnet 5 (5% on Opus 5.5). That is why prompt caching, rather than model choice, is the single biggest cost lever in Claude Code.
How to lower your bill
- Let caching do its work. Cached input costs 10% of the rate on Sonnet 5 (5% on Opus 5.5), and Claude Code rereads the entire conversation at every step (how it works).
- Clear the context between unrelated tasks. An endless session resends the entire history at every step; shorter context costs less.
- Choose a model to fit the task. Leaving the largest model as the default is the most common and costly mistake.
- Do not remove the Haiku line. Without
ANTHROPIC_DEFAULT_HAIKU_MODEL, Claude Code'shaikualias moves to each new Anthropic Haiku before Kunavo adds it, and versions before v2.1.293 request a dated Haiku 4.5 ID, which Kunavo does not offer; in both cases,/model haikuand subagents withmodel: haikureceive 404s. The same line moves frequent, routine internal calls off the main model.
Haven’t installed it yet? The walkthrough is in how to install Claude Code. If you’re comparing it with OpenAI’s agent, the same calculation for Codex is in how much Codex costs.
Frequently asked questions
How much does Claude Code cost per month?
There are two separate prices, depending on how you pay. With a claude.ai subscription, Claude Code is included in the monthly fee: Pro costs $20/month ($17/month with annual billing, $200 upfront), Max $100/month, and Ultra (formerly Max 20x) $200/month. With an API key, you pay per token with no monthly fee—as of November 23, 2026, Anthropic lists Claude Sonnet 5 at $2.00 input / $10.00 output per 1M tokens and Claude Opus 5 at $5.00 / $25.00, and Anthropic's own documentation estimates real-world usage at around $13 per developer per active day and $150–250 per developer per month. Through Kunavo, the same models cost $1.40 / $7.00 and $3.50 / $17.50. Model rates are on the pricing page.
How can I pay for Claude Code in Brazil? Does it accept Pix?
A subscription purchased on the claude.ai website accepts only credit or debit cards, with monthly renewal; through the mobile app, billing is handled by the App Store or Google Play. Pix is not accepted for subscriptions. For the API key route, see the payment guide; this page covers pricing only.
Is a subscription or an API key cheaper for Claude Code?
It depends on how many agentic steps you run, not how many days you work. A step has about 25,000 input tokens and 1,200 output tokens, costing $0.043 on Claude Sonnet 5 at Kunavo's rates. A $20 Pro subscription therefore equals approximately 460 steps per month—about 23 tasks of 20 steps. Below that, pay-as-you-go is cheaper and an inactive month costs nothing; above it, the monthly plan pays off until you hit the plan's usage limits.
Does a Claude Pro subscription include API access?
No. claude.ai subscriptions and Claude API keys are separate products with separate billing, and they don’t combine. While a credential variable such as ANTHROPIC_AUTH_TOKEN is set, Claude Code uses the key instead of your login: plan limits no longer apply, and usage is billed to the key’s owner. Remove the variable, and Claude Code switches back to the subscription.
Can I use Claude Code without a subscription?
Yes. With an API key, Claude Code runs without any claude.ai plan: set ANTHROPIC_BASE_URL and ANTHROPIC_AUTH_TOKEN, plus the four model lines from the configuration above, and every call is billed per token with no monthly fee — a quiet month costs nothing. There are no plan usage windows; the cost follows your usage, and the calculation for comparing it with the monthly fee is in the break-even section above.
Is Claude Code paid? Is there a free way to run it?
The CLI, editor extensions, and all configuration are free. Model calls are not, and there’s no free tier that lets Claude Code call a model at no cost — Anthropic’s installation documentation says the Claude.ai Free plan doesn’t include Claude Code. The lowest-commitment option is a pay-as-you-go key with no monthly fee.
How can I make Claude Code cheaper?
Four levers, in order of impact: let prompt caching work (cached input is charged at 10% of the input rate on Sonnet 5 and 5% on Opus 5.5, and Claude Code rereads the entire conversation at every step); clear the context between unrelated tasks instead of keeping one long session; choose a model based on the size of the problem instead of leaving the largest as the default; and keep ANTHROPIC_DEFAULT_HAIKU_MODEL=claude-haiku-5-5 in a gateway setup: the line is recommended because, without it, the haiku alias moves to each new Anthropic Haiku before Kunavo adds it (and versions before v2.1.293 request a dated Haiku 4.5 ID, which Kunavo does not offer), and then /model haiku and subagents with model: haiku receive 404s. It also moves Claude Code's internal calls off the main model. Pointing ANTHROPIC_BASE_URL to a cheaper endpoint adds to the impact of all four.
What about inside VS Code?
Kilo Code, Cline, and Roo Code use the same key and rates, with a three-field configuration — see the Kilo Code with the Claude API guide. For OpenAI’s terminal, see Codex CLI with an API key.