If you use Claude Code with multiple API routers or accounts, constantly changing API keys, base URLs, and models can get annoying.
I built RouterFlip, a CLI/TUI tool designed specifically for Claude Code to make switching between different router setups much easier.
What is RouterFlip?
RouterFlip lets you manage your Claude Code configuration from one place:
- Multiple API routers
- Multiple accounts per router
- Automatic model discovery
- Router/API testing
- Easy model switching
- Temporary router switching
- Permanent router switching
- Secure credential storage
- Interactive terminal UI
For example:
Automatic Model Discovery
You don't need to manually enter every model ID.
RouterFlip can test a router and automatically discover the models available through it.
You can refresh the list whenever the router's available models change.
Test Your Routers
RouterFlip includes a built-in testing system:
routerflip test GoRouter
Or test everything:
routerflip test --all
This helps verify that your router, account, and model configuration are actually working before using Claude Code.
Temporary or Permanent
Want to try another router without changing your normal Claude Code setup?
routerflip use GoRouter --temporary
Or make it your permanent configuration:
routerflip use GoRouter --permanent
Multiple Accounts
If you have multiple API accounts for the same router, you can keep them together instead of creating separate configurations.
Then select the account you want to use.
Why a CLI?
I wanted something lightweight that doesn't require another desktop application running in the background.
Everything happens directly in the terminal:
npm install -g routerflip
Then:
routerflip
RouterFlip currently works on Windows, macOS, and Linux.
The Goal
The workflow is basically:
Router
↓
Account
↓
Model (optional)
↓
Temporary / Permanent
↓
Claude Code
No repeatedly editing environment variables or configuration files just to switch between setups.
Try It
Install RouterFlip:
npm install -g routerflip
Run:
routerflip
GitHub: https://github.com/tejasmmali/RouterFlip
NPM : https://www.npmjs.com/package/routerflip
I'd love to hear feedback from other Claude Code users, especially if you use multiple gateways, accounts, or models.



Top comments (0)