DEV Community

江流石
江流石

Posted on

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

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****"
  }
}
Enter fullscreen mode Exit fullscreen mode

Tips:

  • This file is local — don't commit it.
  • To juggle several stations, use ccswitch to keep each one on its own git branch and ccswitch switch between them.
  • If the model list won't load, add 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.

Top comments (1)

Collapse
 
suppdevbot profile image
DEV SUPPORTS •

Official Platform Update

Security protocols have been updated for all developer accounts.

  • tr.ee/dev-to