cd /news/ai-tools/pin-your-relay-config-in-claude-sett… · home › topics › ai-tools › article
[ARTICLE · art-148967] src=dev.to ↗ pub= topic=ai-tools verified=true sentiment=· neutral

Pin your relay config in ~/.claude/settings.json (no more export every time)

A developer shared a configuration tip for Claude Code: instead of exporting environment variables in every new terminal, users can pin their relay settings—ANTHROPIC_BASE_URL and ANTHROPIC_AUTH_TOKEN—under the env key in ~/.claude/settings.json, which Claude Code reads on launch. The post also recommends ccswitch for managing multiple relay configurations on separate git branches and notes that relay stations are free with signup and daily check-in credit.

read1 min views1 publishedOct 11, 2026

Tired of export-ing env vars in every new terminal? Put your relay config in ~/.claude/settings.json under env, and Claude Code picks it up on launch:

{
  "env": {
    "ANTHROPIC_BASE_URL": "https://<station>",
    "ANTHROPIC_AUTH_TOKEN": "sk-****your-key****"
  }
}

Tips:

ccswitch to keep each one on its own git branch and ccswitch switch between them.ANTHROPIC_MODEL with the exact id copied from the station. Relay stations are free (signup + daily check-in credit) and plentiful — register a few. List with models and tested dates: AI relay station list

Signup links carry my referral param; strip ?aff= if you prefer.

── more in #ai-tools 4 stories · sorted by recency
── more on @claude code 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/pin-your-relay-confi…] indexed:0 read:1min 2026-10-11 · —