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. 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://