Using cc-switch for configuration
cc-switch is a handy tool that helps you quickly switch between different configuration schemes, making it particularly suitable for developers who need to switch frequently between multiple models or projects.
Install cc-switch
brew tap farion1231/ccswitch
brew install --cask cc-switch
brew upgrade --cask cc-switch
Add OriginRouter configuration
After starting cc-switch, you can add OriginRouter configuration by following these steps:
Click the "+" button in the upper right corner
Enter a name for your configuration, such as
originrouterSelect ANTHROPIC as the provider
Fill in the following configuration information:
- Base URL:
https://api.easytransnote.com/beta(pay-as-you-go) orhttps://api.easytransnote.com/coding(OriginRouter One subscription) - API Key: Your API key obtained from the Developer Console
- Base URL:
Click the Save button
View available configurations
cc-switch list
Switch configuration
cc-switch use originrouter
cc-switch manages configuration files for you in the background and automatically sets the corresponding environment variables. For more information, refer to the cc-switch documentation.
Start Claude Code
cc-switch exec -- claude
Or use directly
cc-switch use originrouter && claude