Use Relixr with Claude Code
Subscription or rate limit stalled Claude Code mid-task? Point ANTHROPIC_BASE_URL at Relixr, top up any amount, and keep a hard spend cap.
Claude Code runs unattended for long stretches — exactly when a soft subscription limit stalls the session, or an uncapped API key becomes a surprise bill. Relixr is the OpenAI/Anthropic-compatible endpoint with a hard spend cap.
Use official env vars only (ANTHROPIC_BASE_URL / ANTHROPIC_API_KEY). Keep Claude Code for the agent loop; Relixr handles models, prepaid cost, and the kill switch.
Five-minute unstick
- Top up any amount under Credits.
- Create a key named
claude-codefrom Connect (or API Keys) with a daily cap sized for a worst-case runaway loop. - Export:
- Confirm the turn appears under Logs with cost attribution on that key.
Hitting the cap returns a typed 402 — Claude Code surfaces an API error. That stop is intentional.
Add both exports to your shell profile for every terminal. Unset ANTHROPIC_BASE_URL for a session to talk to Anthropic directly again.
Still stuck? Help center · Doctor