← All guides AI Release
RU Subscribe to @ai_releaseorg

How to Set Up claude-code-unlimited: Automatic Claude Code Session Rotation to Avoid Hitting Limits

Updated: 24.11.2026 · AI Release · @ai_releaseorg
How to Set Up claude-code-unlimited: Automatic Claude Code Session Rotation to Avoid Hitting Limits

TL;DR

What you will get

Quick start

git clone https://github.com/aaronyi97/claude-pro-pool.git
cd claude-pro-pool
cat README.md
claude --version

Details and verification — in the steps below.

Requirements and setup

Illustration: Requirements and setup
Illustration: Requirements and setup

A sub-agent is a separate Claude Code worker that the main agent spawns to do a slice of the job (for example, “refactor module X”). A quota is the usage limit that a Pro/Max subscription allows in a period; the pool’s whole job is to notice that one subscription has hit its limit and move the next sub-agent to another subscription.

Prepare the baseline and confirm each tool answers:

git --version
node --version
claude --version

Expected: one line per command. git version 2.x and a Node.js version the CLI documentation lists as supported. If claude --version prints command not found, install the CLI and authenticate before continuing.

Step 1. Inventory your accounts and keep the profiles apart

What to do: list every Claude Pro/Max subscription you own and give each one its own config directory. Claude Code keeps credentials per config directory; separating them is what lets the pool pick a different account instead of reusing one login.

mkdir -p ~/.claude-profiles/work
mkdir -p ~/.claude-profiles/personal
ls -1 ~/.claude-profiles

Expected output:

personal
work

Why: if both accounts share one config directory, the second /login overwrites the first set of credentials, and the pool has nothing to switch to — you stay stuck on a single subscription and hit the same limit.

How to check: after logging in to each profile (Step 2), ls -la ~/.claude-profiles/<profile> must show credential files, not an empty directory.

Log in to the first profile:

export CLAUDE_CONFIG_DIR="$HOME/.claude-profiles/work"
claude

Inside the session type /login, finish the browser flow, then exit. Claude Code reads CLAUDE_CONFIG_DIR so each profile is isolated — confirm the exact variable name against the documentation for your CLI version. Repeat with ~/.claude-profiles/personal.

Write the inventory down, because you will need it during triage:

Profile directorySubscriptionStatus
`~/.claude-profiles/work`Pro/Maxlogged in
`~/.claude-profiles/personal`Pro/Maxlogged in

Step 2. Install the pool and connect the accounts

Illustration: Step 2. Install the pool and connect the accounts
Illustration: Step 2. Install the pool and connect the accounts

What to do: clone the dispatcher and follow its README to register the profiles you created in Step 1.

cd ~
git clone https://github.com/aaronyi97/claude-pro-pool.git
cd claude-pro-pool
less README.md

Why: the pool does not create accounts — it dispatches sub-agents across the accounts you already own, choosing by remaining limit. The README of aaronyi97/claude-pro-pool is the authoritative source for the registration command, the config file name, and the environment variables it expects. Copy those names from the README rather than guessing; the repository evolves and flag names change.

Example: if the README asks for a list of profile paths, the value you feed it is exactly the two directories from Step 1:

/Users/<you>/.claude-profiles/work
/Users/<you>/.claude-profiles/personal

Launch Claude Code through the dispatcher command documented in the README rather than from a bare shell. A sub-agent started outside the dispatcher is invisible to the pool and will keep hammering the exhausted account.

How to check: run the README’s status or doctor command (if it has one — otherwise re-read the “usage” section). You should see both profiles listed as available, each with a remaining-limit figure, and no “0 accounts” line. If you work with a team that shares accounts and sub-agents, the wiring in Claude Code for Teams: Setting Up Subagents and a Shared AI Superagent applies to the same sub-agent concept and helps you decide what belongs in a shared pool and what should stay personal.

Step 3. Verify that rotation actually happens

Illustration: Step 3. Verify that rotation actually happens
Illustration: Step 3. Verify that rotation actually happens

What to do: run a task big enough to consume one account’s limit, and watch the pool’s output while it runs. Use a real, disposable job — for example, ask the main agent to split a refactor across several sub-agents so quota is consumed quickly.

cd /path/to/your/project
# start Claude Code with the dispatcher command from the README

Expected sequence on screen: the first sub-agent starts on profile A, the session prints a limit message from that account, the pool moves the next sub-agent to profile B, and the task text continues where it stopped instead of restarting from the first file.

Why: the whole promise of the project — auto-switch on quota exhaustion with the work continuing from the same place — is only true if the dispatcher, not your shell, launched the sub-agents. Watching one real switch is the only proof that your wiring is correct.

How to check: tick every line:

If the fourth box never gets ticked, go to Troubleshooting.

Troubleshooting

Problem. The task stops on a quota error and no switch happens

ls -1 ~/.claude-profiles

If only one directory is listed, repeat the /login step for the missing account.

Problem. A profile refuses to start

export CLAUDE_CONFIG_DIR="$HOME/.claude-profiles/work"
claude
# inside the session: /login

Then re-run the pool’s status command and check that the profile is no longer marked unavailable.

Problem. The clone fails

git ls-remote https://github.com/aaronyi97/claude-pro-pool.git HEAD

A commit hash means the URL is correct and the earlier failure was local (proxy, credentials, or an outdated git).

Summary and next steps

You now have a dispatcher that spreads Claude Code sub-agents over your own Pro/Max subscriptions and moves the work to the next account when one runs out. Next, cap the blast radius: pair the pool with explicit budgets from How to Set Spending Limits and Budgets for AI Agents, and if you ever want a cheaper fallback than a subscription, see How to connect a local LLM to Claude Code: llama-server and an OpenAI-compatible API.

FAQ

Does claude-pro-pool give me extra quota beyond my subscriptions?

No. It dispatches sub-agents across your own Pro/Max accounts and picks the one with the most remaining limit; the total limit stays the same.

What happens to a sub-agent that was running when the account hit its limit?

According to the project description, the account changes automatically and the work continues from the same place — you do not restart the task.

How many accounts do I need for the rotation to be useful?

At least two, otherwise there is nothing to switch to. Each needs its own config directory and its own /login.

Does it work if I only use the CLI, without the desktop app?

The pool targets Claude Code sub-agents; the desktop app is a separate client. For differences between the two, check the desktop guide linked above. Exact supported CLI versions — check the repository README and the CLI documentation.

🤖 AI summary

AI Release Knowledge Layer
Machine-readable description · Version 1.0

Status: practical guide. Some statements come from vendors; verify in your environment.

1. Summary

Time to complete: about 20 minutes (plus one test task long enough to touch a quota limit) Difficulty: Intermediate

Inside: direct answers, key facts, entities, context, reliability, unknowns and sources.

Machine data: Citation Map JSON · JSON-LD · Semantic Embeddings — separate stage.

Full Knowledge Layer: sections 2–8

2. Direct answers

What is required?
OS: any system where the Claude Code CLI runs (macOS, Linux, or Windows through WSL). If you are new to the CLI, start with Claude Code Desktop: setup, limits and how it differs from the CLI.; Claude Code CLI installed and logged in at least once. Version — check the documentation.; Two or more Claude Pro/Max… → details (AR-GUIDE-KAKNASTROI-003)
How to do it?
Step 1. Inventory your accounts and keep the profiles apart → Step 2. Install the pool and connect the accounts → Step 3. Verify that rotation actually happens → details (AR-GUIDE-KAKNASTROI-004)
Which topics does it cover?
claude-code-unlimited, ротация сессий Claude Code, лимиты Claude Code → details (AR-GUIDE-KAKNASTROI-002)
What are the key points?
Time to complete: about 20 minutes (plus one test task long enough to touch a quota limit) Difficulty: Intermediate → details (AR-GUIDE-KAKNASTROI-007)

3. Key facts

  1. Time to complete: about 20 minutes (plus one test task long enough to touch a quota limit) — evidence; status: заявление источника.
  2. Difficulty: Intermediate — evidence; status: заявление источника.
  3. You need: a machine where the Claude Code CLI already runs, at least two Claude Pro/Max subscriptions of your own, git, and a terminal. Exact Node.js/CLI version requirements — check the documentation of the CLI build you use. — evidence; status: заявление источника.
  4. OS: any system where the Claude Code CLI runs (macOS, Linux, or Windows through WSL). If you are new to the CLI, start with Claude Code Desktop: setup, limits and how it differs from the CLI. — evidence; status: заявление источника.
  5. Claude Code CLI installed and logged in at least once. Version — check the documentation. — evidence; status: заявление источника.
  6. Two or more Claude Pro/Max subscriptions of your own. The pool dispatches work across *your* accounts only; it is not a way to get more quota than your subscriptions carry. — evidence; status: заявление источника.

4. Entities

EntityTypeRole
claude-code-unlimitedтема/инструментупоминается в заголовке, TL;DR или разделах гайда
ротация сессий Claude Codeтема/инструментупоминается в заголовке, TL;DR или разделах гайда
лимиты Claude Codeтема/инструментупоминается в заголовке, TL;DR или разделах гайда
Windowsплатформа/технологияупоминается в заголовке, TL;DR или разделах гайда
Linuxплатформа/технологияупоминается в заголовке, TL;DR или разделах гайда
macOSплатформа/технологияупоминается в заголовке, TL;DR или разделах гайда
GitHubплатформа/технологияупоминается в заголовке, TL;DR или разделах гайда
Node.jsплатформа/технологияупоминается в заголовке, TL;DR или разделах гайда
Gitплатформа/технологияупоминается в заголовке, TL;DR или разделах гайда
claudeтема/инструментупоминается в заголовке, TL;DR или разделах гайда

5. Context

  • Guide — describes → How to Set Up claude-code-unlimited: Automatic Claude Code Session Rotation to Avoid Hitting Limits (AR-GUIDE-KAKNASTROI-001).
  • Guide — includes step → Step 1. Inventory your accounts and keep the profiles apart (AR-GUIDE-KAKNASTROI-001).

6. Reliability

Confirmed

No independent confirmation is provided; source claims and editorial conclusions are separated below.

Source claims

  • Product features, versions, prices and limits come from vendors and the guide.
  • Commands and steps are recommendations, not guaranteed results.

AI Release analysis

  • Structure, comparison and selection criteria are editorial.
  • The guide does not replace an independent audit or legal advice.

7. Unknowns

  • Current versions, prices and limits.
  • Independent benchmarks and quality checks.
  • Terms of use and data policy.

8. Sources

SourceTypeRole
github.comвнешний источникссылка из тела гайда

Cite as: AI Release. Как настроить claude-code-unlimited: автоматическая ротация сессий Claude Code без упора в лимиты. ai-release.org.