Claude Code without the $200/month plan
You can use Claude Code without a subscription by pointing it at any Anthropic-compatible API key. On apiToken.sale that means prepaid balance at a flat 50% off official token rates — no monthly fee, no seat, no idle-time cost.
·
Claude Code only needs an API key, not a plan
Yes — Claude Code works without any Anthropic subscription. The CLI reads two environment variables, ANTHROPIC_BASE_URL and ANTHROPIC_API_KEY, and talks to whatever Anthropic Messages API endpoint they point at. Give it a prepaid apiToken.sale key and every session bills per token against your balance instead of a flat monthly plan.
Nothing about the tool changes. Same agent loop, same file edits, same terminal workflow — the only difference is where the request lands and how it is billed.
See also: Use a Claude API key in Cursor
What the $200/month plan actually buys
A top-tier Claude plan is a consumer subscription: a fixed fee for interactive use inside Anthropic's own apps, with usage caps you cannot meter directly. It makes sense if you chat heavily every single day and never touch the API.
It is a poor fit when your usage is spiky, when you want a programmable key for your own scripts and tools, or when you would rather pay $0 on a week you barely code. Pay-as-you-go API billing inverts the model: no fee for existing, a charge only when tokens actually flow.
Switch Claude Code to pay-as-you-go in two variables
- 01Create a free account on apiToken.sale and top up any whole-dollar amount — the balance never expires.
- 02Generate an API key in the dashboard (it looks like sk-pool-…). One key covers every supported Claude model, plus GPT, Gemini and Kimi on the same balance.
- 03Export the two variables below, restart your shell, and run claude. Verify with /status inside Claude Code — it shows the active endpoint and auth source.
# ~/.zshrc or ~/.bashrc export ANTHROPIC_BASE_URL=https://router.apitoken.sale export ANTHROPIC_API_KEY=sk-pool-••• # new shell, then just run claude
If Claude Code reports an auth error after the switch, the usual cause is a stale shell: the variables must be exported before the claude process starts. Open a fresh terminal or source your rc file, then retry.
What a session costs per token
Every request is metered at official Anthropic token rates, then the flat 50% B2C discount is subtracted before the charge touches your balance. Agentic coding is input-heavy — the repo context, tool results and conversation history are re-sent each turn — so the input column is where your money goes.
| Model | Official in / out ($ per 1M) | Here (−50%) |
|---|---|---|
| Claude Opus 4.8 | $5 / $25 | $2.50 / $12.50 |
| Claude Sonnet 5 | $2 / $10 | $1 / $5 |
| Claude Haiku 4.5 | $1 / $5 | $0.50 / $2.50 |
The dashboard shows each request with its model and token breakdown, so a long session is auditable line by line rather than a black-box subscription day.
Full per-model pricing, including cache rates →
Estimate a month of Claude Code usage in the free calculator →
Stretching balance on long agentic sessions
Model choice is the biggest lever. Claude Code lets you switch models mid-session, so route routine edits to Sonnet and reserve Opus for the hard multi-file refactors where it earns its rate.
- Everyday coding and quick fixes: claude-sonnet-5.
- Deep refactors and long reasoning chains: claude-opus-4-8.
- Triage, renaming, boilerplate: claude-haiku-4-5 at a fifth of Opus input cost.
Prompt caching helps on repeated context: cached input tokens bill at a lower cache-read rate, so keeping one long session beats restarting a fresh conversation that re-reads the whole repo.
One key past Claude Code
The same key and balance drive every Anthropic-compatible tool — Cursor, Cline, Continue, Zed, Aider, the official SDKs — and the same prepaid balance also covers supported GPT, Gemini and Kimi models through the router's OpenAI-compatible and native Gemini lanes. A subscription never gives you that key at all.
When the subscription still makes sense
Be honest about your pattern. If you run Claude Code eight hours a day, every workday, at maximum intensity, a flat plan can cost less than raw per-token spend — that is the usage profile subscriptions are priced for. Everyone else — weekend projects, burst-driven freelancers, teams mixing several AI tools on one budget — pays for idle days they never use. Prepaid balance has no idle days: top up as you go, and refunds, if ever needed, go through the original payment provider via support (Telegram, English and Russian, or apitokensale@gmail.com).
Frequently asked questions
Can I use Claude Code without a Claude subscription?
Yes. Set ANTHROPIC_BASE_URL and ANTHROPIC_API_KEY and Claude Code runs on any Anthropic-compatible API key — including a prepaid apiToken.sale key — with no plan required.
Do I lose Claude Code features without a subscription?
No. The CLI behaves identically; only billing changes, from a flat monthly plan to per-token usage against prepaid balance.
How much does a Claude Code session cost on prepaid balance?
Requests are metered at official Anthropic rates minus a flat 50% B2C discount. Sonnet 5 works out to $1 / $5 per 1M input/output tokens; Opus 4.8 to $2.50 / $12.50.
Does Claude Code work with a custom ANTHROPIC_BASE_URL?
Yes, that variable is exactly how the CLI selects its endpoint. Point it at https://router.apitoken.sale and it serves the same Anthropic Messages API with the same model IDs.
Is there a free way to try Claude Code first?
New apiToken.sale accounts created with Google or GitHub get $5 of platform bonus credit, which covers a real Claude Code trial session before you top up.
Use Google or GitHub to create your key and get $5 of platform bonus credit before you top up.