stephengardner

Claude Auto Switch — Development skill for Claude Code

Development community

Local supervisor that manages multiple Claude Code accounts and auto-rotates the claude command to a healthy account on rate limit.

How to install Claude Auto Switch

This entry records only its repository, not the path inside it, so there is no exact command to give. Open stephengardner/claude-auto-switch and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Claude Auto Switch does

Local supervisor that manages multiple Claude Code accounts and auto-rotates the claude command to a healthy account on rate limit. Fully local, configurable, shareable.

Alternatives in Development

  • Claude Swap — Switch between multiple Claude Code accounts, with automatic rate-limit rotation, usage dashboard, and paralle 2k ★
  • Claude Account — Switch between isolated Claude Code accounts on Linux and macOS without logging in again 73 ★
  • Brow — Claude Code usage and rate limits in the MacBook notch 50 ★

README

ccx

Claude Code stops when your account hits its usage limit. If you have more than one Claude account, ccx moves the running session to an account that still has room, and the conversation continues where it stopped.

ccx runs on your machine. It talks to Anthropic only about your own accounts, and sends nothing anywhere else.

![The ccx dashboard: each account with how much of its 5-hour and weekly limits is left](docs/img/dashboard.svg)

Install

npm install -g claude-auto-switch
ccx add work        # opens your browser to sign in
ccx add personal    # sign out of claude.ai first, or use another browser profile
ccx on              # make `claude` go through ccx

Then use `claude` as you always do. `ccx doctor` checks the setup; `ccx off` undoes `ccx on`.

Needs Node.js 20 or newer. On Linux, npm compiles `node-pty`, which needs a C/C++ toolchain (`python3`, `make`, `g++`); Windows and macOS get it prebuilt.

What happens when an account runs out

  1. Claude records the refused turn in its transcript. ccx reads that record, not the screen, so text that only mentions limits never moves you.
  2. ccx confirms the limit against the account's actual usage.
  3. It picks the account that can work longest and swaps that login into the running Claude. Subagents and background commands keep going.
  4. If Claude opened its limit menu, ccx closes it, then types a short prompt telling Claude to carry on.

When a session can't be moved in place, ccx restarts Claude on the new account with `--resume`, so the conversation survives either way.

Everyday commands

Command What it does
ccx Every account, with how much of its 5-hour and weekly limit is left
ccx dashboard The same, live. Press s for settings
ccx use