Free and open source · v1.0.0

Claude limit reached? Keep working.

claude-auto switches Claude Code to your next Claude account the moment one hits its 5-hour or weekly limit, and continues the same session from the next unfinished step.

$ curl -fsSL https://raw.githubusercontent.com/rameezimdad/claude-auto-switch/main/install.sh | bash
Linux, Windows (WSL) and macOS  ·  Any number of accounts
claude-auto
Free, MITNo paid tier
Same sessionContinues the next step
Unlimited accountsclaude-auto add
Official hookClaude Code not patched
What is claude-auto?

Your Claude Code session should not die at the usage limit.

claude-auto is a command-line wrapper for Claude Code that rotates between several Claude subscriptions (Pro, Max or Team). It checks each account's real usage, and when the current account reaches its usage limit it resumes the same conversation on the next account with usage left, so your work does not stop.

How it works

Four steps, fully automatic.

You keep typing. claude-auto handles the switch in the background in a few seconds.

01

Pick an account

Starts Claude Code on the first account that is under its 5-hour and weekly limit.

02

Catch the limit

Claude Code's official StopFailure hook checks the real usage. Short error bursts are ignored.

03

Move the session

The same session opens on the next account with room, with checkpoints, todos and plans.

04

Continue the work

Claude checks what is already done in your code and picks up at the next unfinished step.

Features

Built to keep long tasks running.

Everything a session needs moves with it, so the next account carries on as if nothing happened.

Checks usage first

Reads each account's real 5-hour and weekly usage before it switches. Full accounts are skipped.

Never starts over

Looks at git status and the files it was editing, then continues from the next step.

Waits for reset

If every account is full, it waits for the earliest reset and continues on its own.

Unlimited accounts

Add account 2, 3, 4 and more with one command. Each shares your history and settings.

See the active account

The status line shows the account number, email and percent used, so you always know which login is running.

Nothing patched

One official Claude Code hook and a small bash script. Plain claude works as before.

Compare

What can you do when the Claude usage limit is reached?

The four real options, side by side.

OptionKeeps working nowKeeps the same sessionExtra cost
Wait for the resetNo, up to 5 hours or the weekly resetYesNone
Open another account by handYesOnly if you find and resume it yourselfAnother subscription
Switch to an API keyYesYesPay per token
claude-autoYes, automaticYes, continues the next stepOnly subscriptions you already have
Get started

How to install and set up claude-auto

Needs Claude Code, bash, python3 and curl. Takes under 5 minutes.

1

Install

curl -fsSL https://raw.githubusercontent.com/rameezimdad/claude-auto-switch/main/install.sh | bash
2

Add each extra Claude subscription

claude-auto add   # account 2, then type /login
claude-auto add   # account 3
claude-auto add   # account 4, 5 ... no limit
3

Work as usual

claude-auto       # instead of claude, every flag still works
Reference

claude-auto commands

Seven commands cover everything.

CommandWhat it does
claude-autoStart Claude Code with auto switching
claude-auto statusPercent used and reset time of every account
claude-auto addAdd the next Claude subscription and log it in
claude-auto login <n>Log in again on account n
claude-auto remove <n>Take account n out of the rotation
claude-auto accountsList accounts in the order they are tried
/switch [n]Inside a session: move it to account n right now
FAQ

Frequently asked questions

Short answers to what people search most about the Claude limit.

What to do when the Claude usage limit is reached in Claude Code?

You can wait for the reset (up to 5 hours for the session window, longer for the weekly limit), or use claude-auto, which moves the same Claude Code session to another Claude account you own that still has usage left and continues the task.

How do I use Claude after reaching the limit?

Install claude-auto, add a second Claude account with claude-auto add, and start Claude Code with claude-auto. When the limit is reached it switches accounts automatically.

How do I use multiple Claude accounts in Claude Code?

Each account needs its own config folder (CLAUDE_CONFIG_DIR). claude-auto add creates one that shares your history and settings, and claude-auto picks the account with usage left.

How many Claude accounts can I add to claude-auto?

There is no limit. Run claude-auto add for account 2, 3, 4, 5 and so on. Accounts are tried in order.

Does switching Claude accounts lose my conversation or code progress?

No. claude-auto resumes the same session ID, carries edit checkpoints, todos and plans, and tells Claude to check the current state of the code and continue from the next unfinished step instead of starting over.

What happens when all Claude accounts reach the weekly limit?

claude-auto shows when the earliest account resets, waits until then and continues the session automatically.

How does the Claude usage limit work?

Claude Pro and Max plans have a rolling 5-hour session limit and a weekly limit. claude-auto status shows the percent used and the reset time of each account.

Worldwide

claude-auto in other languages

The same tool, described for Claude Code users around the world.

JapaneseClaude Code の使用制限に達したら、使用量が残っている次の Claude アカウントへ自動で切り替え、同じセッションのまま作業を続けます。
PortugueseAtingiu o limite de uso do Claude Code? O claude-auto troca automaticamente para a próxima conta Claude com uso disponível e continua a mesma sessão.
Spanish¿Llegaste al límite de uso de Claude Code? claude-auto cambia automáticamente a tu siguiente cuenta de Claude con uso disponible y continúa la misma sesión.
GermanClaude Code Nutzungslimit erreicht? claude-auto wechselt automatisch zum nächsten Claude-Konto mit freiem Kontingent und setzt dieselbe Sitzung fort.
VietnameseHết giới hạn sử dụng Claude Code? claude-auto tự động chuyển sang tài khoản Claude tiếp theo còn lượt dùng và tiếp tục cùng phiên làm việc.
HindiClaude Code की usage limit खत्म हो गई? claude-auto अपने आप अगले Claude account पर switch करके वही session जारी रखता है।
ChineseClaude Code 达到使用限制?claude-auto 会自动切换到下一个仍有额度的 Claude 账号,并继续同一个会话。
RussianДостигнут лимит использования Claude Code? claude-auto автоматически переключается на следующий аккаунт Claude с доступным лимитом и продолжает ту же сессию.
TurkishClaude Code kullanım limitine mi ulaştınız? claude-auto, kullanım hakkı kalan bir sonraki Claude hesabına otomatik geçer ve aynı oturuma devam eder.
IndonesianBatas penggunaan Claude Code tercapai? claude-auto otomatis berpindah ke akun Claude berikutnya yang masih punya kuota dan melanjutkan sesi yang sama.
Arabicوصلت إلى حد استخدام Claude Code؟ ينتقل claude-auto تلقائيا إلى حساب Claude التالي الذي لا يزال لديه استخدام متاح ويكمل نفس الجلسة.
UrduClaude Code ki usage limit khatam? claude-auto khud agle Claude account par switch kar ke wohi session jaari rakhta hai.

Never lose a session to the limit again.

One command to install. Free and open source under the MIT license.

$ curl -fsSL https://raw.githubusercontent.com/rameezimdad/claude-auto-switch/main/install.sh | bash