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

> Source: <https://dev.to/_e69fe8657895dd4754bbf/pin-your-relay-config-in-claudesettingsjson-no-more-export-every-time-4fl7>
> Published: 2026-10-11 01:12:11+00:00

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](https://jliushi.github.io/ai-relay/)

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