DEV Community

Cover image for RouterFlip: A Simpler Way to Test and Switch Claude Code Routers, Accounts, and Models
Tejas Mali
Tejas Mali

Posted on

RouterFlip: A Simpler Way to Test and Switch Claude Code Routers, Accounts, and Models

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:

Picture of Routerflip cli showing feature

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.

Picture of Routerflip cli showing Model Discovery feature

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

Or test everything:

routerflip test --all
Enter fullscreen mode Exit fullscreen mode

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

Or make it your permanent configuration:

routerflip use GoRouter --permanent
Enter fullscreen mode Exit fullscreen mode

Multiple Accounts

If you have multiple API accounts for the same router, you can keep them together instead of creating separate configurations.

RouterFlip Multiple account feature

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

Then:

routerflip
Enter fullscreen mode Exit fullscreen mode

RouterFlip currently works on Windows, macOS, and Linux.

The Goal

The workflow is basically:

Router
  ↓
Account
  ↓
Model (optional)
  ↓
Temporary / Permanent
  ↓
Claude Code
Enter fullscreen mode Exit fullscreen mode

No repeatedly editing environment variables or configuration files just to switch between setups.

Try It

Install RouterFlip:

npm install -g routerflip
Enter fullscreen mode Exit fullscreen mode

Run:

routerflip
Enter fullscreen mode Exit fullscreen mode

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)