Claude Code model router
claude-swap
Switches between multiple Claude Code accounts with automatic rate-limit rotation.
Install
uv tool install claude-swapgit clone https://github.com/realiti4/claude-swap.gitFrom the README
claude-swap Multi-account switcher for Claude Code. Easily switch between multiple Claude accounts without logging out, or let it switch for you before you hit a rate limit. Track usage for every account in a live dashboard, and run accounts in parallel. Works with both the Claude Code CLI and the VS Code extension. Installation Using uv (recommended) Using pipx From source Updating Usage Add your first account Log into Claude Code with your first account, then: Add more accounts Log in with another account, then: Do not run /logout first: current Claude Code may revoke the refresh token stored for the account you are leaving. Switch accounts Rotate to the next account: Or switch to a specific account: Not sure which one? cswap list is the dashboard — every account's 5-hour and 7-day usage and reset times at a glance: Or let claude-swap auto-pick by remaining quota — cswap switch --strategy best (most quota left) or --strategy next-available (skip rate-limited accounts). Note: You usually don't need to restart — on Linux/Windows the new account is picked up automatically, and on macOS after the Keychain cache expires. To apply it instantly, restart Claude Code or reopen the VS Code extension tab. See Tips for the per-platform details. Automatic switching Let claude-swap watch your usage and switch for you. When the active account's 5-hour or 7-day window reaches the threshold (default 90%), it switches to the account with the most quota left — before you hit the limit, and safe to run while Claude Code is working: How it behaves & advanced usage - Runs safely alongside Claude Code: switches take the same credential locks Claude Code uses, so a swap never collides with a token refresh. - A cooldown (default 5 min) and a hysteresis margin stop it…
Details
- Repository
- realiti4/claude-swap
- Language
- Python
- License
- MIT
- Last updated
- 3 November 2026
- Topics
- account-manageraccount-switcheranthropicclaudeclaude-codeclimulti-accounttui
FAQ
What is claude-swap?
Switches between multiple Claude Code accounts with automatic rate-limit rotation. It is a model router for Claude Code, from realiti4/claude-swap on GitHub.
How do I install claude-swap?
Run uv tool install claude-swap, then follow the setup in the README.
Is claude-swap popular?
realiti4/claude-swap has 4,403 GitHub stars and 475 forks. It was last updated on 3 November 2026.
More model routers & proxies
VibeProxy
3.4kautomazeio/vibeproxy
macOS menu bar app that lets other coding tools use your Claude Code subscription without API keys.
Claude Code Local
3.5knicedreamzapp/claude-code-local
Hit your Claude Code usage limit or ran out of credits? Keep working on a local model. Claude Code on your own Mac (MLX), Linux or Windows (llama.cpp) with no API key and no rate limits. Your code stays home.
CC Switch CLI
5.4kSaladDay/cc-switch-cli
Command-line version of CC Switch for swapping Claude Code providers and settings.
CC Mirror
2.3knumman-ali/cc-mirror
Create multiple isolated Claude Code variants with custom providers (Z.ai, MiniMax, OpenRouter, LiteLLM)
antigravity-claude-proxy
4kbadrisnarayanan/antigravity-claude-proxy
Proxy exposing Antigravity-provided models so Claude Code can use them.
ccflare
1.1ksnipeship/ccflare
Load-balancing proxy for Claude Code that spreads requests across multiple accounts with a usage dashboard.
Browse the most popular Claude Code mods, all model routers & proxies, or the skills and MCP server directories.