Claude Rotator — Development skill for Claude Code
Local OAuth proxy that auto-rotates Claude Code accounts across usage limits on macOS and Linux.
How to install Claude Rotator
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open taskbrain/claude-rotator and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Claude Rotator does
Local OAuth proxy that auto-rotates Claude Code accounts across usage limits on macOS and Linux.
Alternatives in Development
- Codenotch — A macOS app that pins usage limits from Claude Code, Cursor, Codex, and Antigravity to a screen edge 1.3k ★
- Claude Balancer — A load balancer proxy for multiple Claude OAuth accounts with automatic failover, request tracking, and web da 910 ★
- Claude Auto Resume — A shell script utility that automatically resumes Claude CLI tasks when usage limits are lifted 732 ★
README
claude-rotator
[](https://github.com/taskbrain/claude-rotator/actions/workflows/ci.yml) [](./LICENSE) 
Claude Code の複数アカウントを、リクエストのモデルと利用枠に応じてローカルで自動的に使い分ける非公式プロキシツールです。macOS と Linux で動作します。
`claude-rotator` は `127.0.0.1` だけで待ち受ける Anthropic 互換の HTTP プロキシを起動し、Claude Code の `~/.claude/settings.json` の `ANTHROPIC_BASE_URL` をこのプロキシへ向けます。インストール後も、Claude Code は通常どおり `claude` コマンドで起動できます。
**依存パッケージはゼロです**([package.json](./package.json) に `dependencies` はなく、Node.js 標準ライブラリのみで実装されています)。外部パッケージ経由のサプライチェーンリスクが無いため、コードを読んで監査するコストが低く抑えられています。
npm レジストリでは配布していません(`package.json` は `"private": true`)。使うにはこのリポジトリを clone して `npm install -g .` でローカルインストールします。
目次
- v0.2.0 の主な更新
- なぜ作ったか
- できること
- しくみ
- 利用上の注意
- 動作環境
- セットアップ
- アカウント登録
- モニター
- OAuth認証情報の自動更新
- 設定ファイルと環境変数
- ログと切り替え診断
- 主なコマンド
- アップデート
- アンインストール
- トラブルシュート
- 安全設計
- 開発
- English
v0.2.0 の主な更新
- モデル別ルーティング: Fable リクエストは Fable 枠が利用可能なアカウントへ、Sonnet / Opus / Haiku は共通枠が利用可能なアカウントへ、HTTP リクエストごとに振り分けます。
- 並列利用に対応: 複数ターミナルやサブエージェントが異なるモデルを同時に使っても、それぞれのリクエストを独立して判定します。
- 復帰順が見える status / monitor: モデル系列ごとに、今使えるアカウントと、次に復帰するアカウント・時刻・その後の順番を表示します。十分に広い端末ではアカウント詳細を2列にします。
- OAuth更新の安定化: 保存済みの Keychain / credential file を使い、通常の Claude Code ログインを切り替えずに OAuth token を更新します。競合や結果不明時は誤った認証情報を使わず停止します。
既存環境から更新する場合は [アップデート](#アップデート) を参照してください。
なぜ作ったか
Claude Code は、5時間ごとにリセットされる短期の利用枠(以下「5時間枠」)と、7日ごとにリセットされる長期の利用枠(以下「7日枠」)の2種類の上限で使用量を管理しています。どちらかが100%に達すると、そのアカウントでは応答が返らなくなります。
複数の Claude アカウントを契約していれば、枠に達したアカウントから別のアカウントへ切り替えることで作業を継続できます。しかし手作業での切り替えには
Related Skills
Modeldeck
macOS menu bar app that tracks usage limits across all your Claude Code and Codex CLI accounts — live "% left"
Cc Same
Keep Claude Desktop's local sessions identical across all your accounts. Desktop app (macOS, Windows, Linux) a
Swisscode
Run Claude Code with multiple Claude Pro/Max accounts: usage limits, one-command switching, a localhost proxy
Agent Link
Run multiple Claude Code & Codex accounts at once — parallel, hot-switched, or auto-routed. One slot per accou
Claude Account Switcher
Menu bar / tray app that keeps every Claude Code login and switches accounts in one click, or automatically wh
Cam
macOS menu bar app to switch between multiple Claude Code accounts and track 5-hour / 7-day usage limits. 一键切换
Related Agents
Byok Token Security Expert
BYOK (Bring-Your-Own-Key) and OAuth token security expert. Deep on cross-platform OS keychain integration (mac
Slim Wrapper
tfx-route.sh 경유 전용 래퍼 에이전트. 코드를 직접 읽거나 수정하지 않고 Bash(tfx-route.sh)를 통해 Codex/Antigravity에 위임하는 thin wrapper. OS
Impl Cross Platform
Reviews implementation plans from a cross-platform compatibility perspective. Use when evaluating Linux vs. ma