Unlimited tokens in Claude Code Claude Code, without the meter.
Claude Code works with any Anthropic-compatible API. Point it at endlesstokens and every session runs on a flat time pass: no token cap, no request cap.
Set it up in two minutes
Get a pass and a key
Sign in at the portal, buy a 1-day or 3-day pass and create your key. The key is shown once, so copy it then.
Point Claude Code at us
Set the base URL, your key and one model name for every model slot. Put the lines in your shell profile, or in ~/.claude/settings.json under env.
Start coding
Run claude as usual. The first request tells you straight away if the key or model name is wrong.
export ANTHROPIC_BASE_URL=https://api.endlesstokens.ai export ANTHROPIC_AUTH_TOKEN=<your-key> export ANTHROPIC_MODEL=<model-name> export ANTHROPIC_DEFAULT_OPUS_MODEL=<model-name> export ANTHROPIC_DEFAULT_SONNET_MODEL=<model-name> export ANTHROPIC_DEFAULT_HAIKU_MODEL=<model-name> export CLAUDE_CODE_SUBAGENT_MODEL=<model-name>
curl https://api.endlesstokens.ai/v1/models \ -H "Authorization: Bearer <your-key>"
Use the exact model name from GET /v1/models. The full step-by-step guide, with settings.json, is in the portal under Setup ↗.
What changes when tokens are not counted
Let it read the whole repo
Big context loads and repeated file reads are where metered bills grow fastest. Here they cost nothing extra.
Retry until the tests pass
Every failed test, lint run and fix-up is another round trip. None of them are counted.
Leave it running
Long refactors and overnight runs finish on the same flat price, for as long as your pass runs.
What to know
FAQ
Does this give me Anthropic’s Claude models?
No. Claude Code is the client; the models are open-weight models we host ourselves. You keep the Claude Code workflow you know, without a token meter.
Which model name do I use?
The exact name GET /v1/models lists (it is also on the Models page). Set every model variable to it, so Claude Code never asks for a model we do not serve.
How many Claude Code sessions can run at once?
Two parallel sessions per key. A third evicts the least recently used idle one.
What happens when my pass ends?
Requests return 402 no_active_pack until you buy the next pass. Nothing renews on its own.
How do I switch back to my usual setup?
Unset the variables, or remove them from ~/.claude/settings.json, and start Claude Code again.