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

  1. Top up any amount under Credits.
  2. Create a key named claude-code from Connect (or API Keys) with a daily cap sized for a worst-case runaway loop.
  3. Export:
zsh
$ export ANTHROPIC_BASE_URL="https://api.relixr.com"
export ANTHROPIC_API_KEY="$RELIXR_API_KEY"
claude
  1. Confirm the turn appears under Logs with cost attribution on that key.
Warning:

Hitting the cap returns a typed 402 — Claude Code surfaces an API error. That stop is intentional.

Tip:

Add both exports to your shell profile for every terminal. Unset ANTHROPIC_BASE_URL for a session to talk to Anthropic directly again.

Next steps
Use Relixr with Cursor
Same jam-recovery story for the IDE.
Agents
Give each automated workflow its own budget and identity.
Was this helpful?

Still stuck? Help center · Doctor

Use Relixr with CursorUse Relixr with VS Code