Multiple Claude Code accounts
This guide shows how to use more than one Claude Code account in the SSG dashboard terminal. SSG shows the usage of each account. When one account reaches its limit, SSG can switch your conversation to the next account.
This feature needs a SigmaShake subscription ($5/month). SigmaShake is free to download and install. Without a subscription, the usage row shows that the feature needs a subscription.
Where to find it
- Open the SSG dashboard.
- Open Terminal.
- Look at the usage row at the bottom.
The row shows one chip for each Claude account. Each chip shows the 5-hour used percentage and a small meter.
If you have only the machine login, the row shows one Add Claude account chip.
Add an account
- Open Terminal.
- Open the Claude accounts panel. You can also click the Add Claude account chip.
- Click Add.
- Enter a name.
- Click Sign in.
A sign-in pane opens. It runs claude auth login for that account. Finish the sign-in in that pane.
Each account gets its own config folder:
- Linux and macOS:
~/.sigmashake/claude-accounts/<id>/ - Windows:
%USERPROFILE%\.sigmashake\claude-accounts\<id>\
Your main ~/.claude folder shares these items with each account through links:
- settings
CLAUDE.md- skills
- agents
- commands
- plugins
- hooks
- projects
Only the login is separate.
Rename, disable, reorder, or remove an account
Use the same Claude accounts panel.
Remove keeps the account folder on disk.
Set the default account
- Select an account.
- Open Details.
- Click Make default.
New Claude panes open on the account that the pick order chooses. The default account wins a tie.
Pick order
SSG uses the pick order for failover, for "auto", and for new panes. SSG ranks accounts in this order:
- Accounts whose 5-hour window is running with at least 25% left. The soonest reset comes first.
- Accounts with no running window.
- All other accounts. The most usage left comes first.
Accounts with unknown usage come last.
SSG skips an account that is disabled, signed out, or marked as limited. SSG puts a last-resort account after all other accounts.
Auto-switch
Auto-switch changes the account of your work when an account reaches its limit.
- Claude Code reports a usage limit in a pane. SSG sees these cases:
- A Workflow pauses with "Usage limit reached … Workflow paused".
- A background agent hits the limit.
- A goal pauses with "Goal paused · usage limit reached".
- SSG confirms the limit from Claude Code's own transcript, the screen text, or the usage of the account.
- SSG marks that account as limited until its reset.
- SSG exits Claude.
- SSG resumes the same conversation on the next account in the pick order. The command is
claude --resume <session> 'continue'.
Auto-switch and the continue prompt are settings. You can change both.
When all accounts are limited, a banner shows the earliest reset.
When SSG proves the limit and the pane is busy
A busy pane has a running turn, a foreground tool, or background tasks. A draft in the input box or an open dialog also makes the pane busy.
SSG shows a countdown when it proves the limit and Claude does not exit. In this case, the banner shows "Switching to <account> in N s" with Switch now and Cancel.
- Click Switch now to switch at once, or let the countdown end.
- When the countdown reaches 0, SSG switches to the next account that is free.
An account is free when all of these are true:
- It is enabled and signed in.
- It is not marked as limited until its reset (unless SSG finds the mark stale), and its usage does not show a limit.
- SSG has not already tried it for this limit.
- It does not share a sign-in email with the current account or with an account that SSG tried.
The per-account cap is the most Claude sessions that one account takes, and it applies only when SSG knows the session count. An account at the per-account cap is also free. SSG picks an account below the cap first.
If no other account is free, SSG does not switch. The banner then shows the earliest reset.
The default time is 15 seconds. To change it, set the daemon variable SSG_TERMINAL_CLAUDE_LIMIT_FORCE_AFTER. Write the value with a unit, for example 30s or 1m. A value without a unit is not valid, and SSG uses the default. The one exception is 0. A value of 0 turns the countdown off. A negative value with a unit, for example -1s, also turns the countdown off.
- On Linux, subagents that the limit paused do not hold the pane when SSG has a limit mark for the pane. The mark needs a Claude Code hook record for the pane. The mark can come from a StopFailure hook. The mark can also come from SSG proof of the limit, in a subagent transcript or on the screen. The limit must not be a limit for one model. A subagent that starts after the limit keeps the pane busy. In all other cases, the pane waits until the countdown ends.
- On macOS and Windows, SSG counts the subagents that the limit paused as busy. The pane waits until the countdown ends.
SSG puts the typed draft back into the input box of the resumed session. It does not press Enter. It does not put back a draft that holds a "[Pasted text #N]" or "[Image #N]" placeholder. It does not put back a draft that it cannot read. When the rate-limit menu hides the draft, SSG closes the menu first. Then SSG reads the draft.
When SSG cannot read the usage
SSG cannot read the usage. SSG finds no proof of the limit on the screen or in the transcript. The banner then shows "Checking the usage limit again in N s" with Check now and Cancel.
- Click Check now to check at once, or let the countdown end.
- When the countdown reaches 0, SSG checks the usage again.
- SSG switches only when the check finds proof. If the check finds no proof, the countdown ends and SSG does not switch. Switch by hand if you want to change account.
When the usage shows room
If the usage shows that the account is below the limit, SSG shows no countdown and does not force a switch. A limit line on the screen alone does not mark the account. A session-limit line in the transcript does not mark it either. A weekly or per-model limit line in the transcript can still mark the account. A switch can then happen when the pane is idle. Switch by hand if you want to change account.
Countdown rules
- A repeated message for the same limit keeps the same countdown.
- A new countdown starts for a new limit. A limit is new in these cases:
- It is another limit window.
- It comes after a turn that ended with no limit.
- It comes after a reset that passed while the account reads available.
- When the reset time passes, the wait ends. Nothing counts down until the next limit.
Cancel an automatic switch
- Click Cancel.
The banner then shows "Auto-switch cancelled. Switch by hand, or wait for the reset."
Cancel stops the automatic switch for this limit only. A new countdown starts for a new limit. See "Countdown rules" for the cases.
Subagents after a switch
The continue prompt gets this sentence only when the switch stopped subagents: "Subagents were stopped by the account switch; re-dispatch the unfinished ones."
Switch by hand
- Click a chip.
- Confirm.
The focused Claude pane switches to that account and resumes.
If Claude is at work and does not exit, the switch waits. The pane shows "Switching to <account> when idle" with a Cancel button. The switch happens when the turn ends. SigmaShake types no /exit into a busy Claude, so a waiting or cancelled switch leaves nothing in its input.
If SSG proves that the account is at its limit, the wait has an end. SSG counts the 15 seconds from the start of the wait. The wait starts after the first exit attempts of the click, so the end is a little more than 15 seconds after the click. The variable SSG_TERMINAL_CLAUDE_LIMIT_FORCE_AFTER sets the time. If an automatic switch of a proven limit was already counting down when you clicked, the switch keeps the end of that countdown. This end can be earlier than 15 seconds after the start of the wait. The end shows in the pane. If you cancel the automatic switch before you click, that end is gone. The 15 seconds then count from the start of the wait.
At the end, SSG forces the switch. It goes on over a dialog, a draft in the input box, and background work. SSG puts the draft back into the input box of the resumed session. It does not press Enter. Click Cancel before the end to stop the forced switch.
A forced attempt can fail: SSG sends the exit keys and Claude still runs. SSG stops after 3 attempts that sent keys, forced or not. Then the wait ends and the pane keeps its account. The pane shows no reason. The daemon log has a line that gives the reason. If the limit still stands and you did not cancel the automatic switch, the automatic switch can start again. For each limit, it makes at most 3 attempts that send keys. Ten minutes after its last attempt, the count comes back once for that limit, and it makes 3 more attempts. The count comes back at most once an hour for each pane. After that, it makes no more attempts for this limit. A new limit starts the count again. A wait for a busy Claude sends no keys, so that wait has no limit.
If SSG cannot prove the limit, the switch only waits for an idle Claude, and there is no forced switch. A value of 0 turns the forced switch off.
After you cancel an automatic switch, switch by hand with the steps above.
Restart after Claude stops
If Claude stops in a pane (for example when the machine runs low on memory), SigmaShake resumes the same conversation on the pane's account. It does not restart Claude when you typed /exit, Ctrl-C or Ctrl-D in that pane just before. A pane gets at most 3 automatic restarts per hour, and only when the live-session limit allows one more session. When no restart runs, the pane stays at the shell, the Restore notice appears, and the notice shows the reason.
Stagger the 5-hour windows
This setting is off by default.
A 5-hour window starts at the first message of an account. It resets 5 hours later.
With stagger on and 2 or more accounts, SSG sends one short message to an idle account when its slot is due. SSG does not send a message to an account that it messaged in the last 5 hours. The message is "ok". It uses no tools and a Haiku model. The resets then sit about 5 hours divided by N apart, where N is the number of accounts.
- Each message uses a very small amount of that account's usage.
- SSG sends at most one message per account per window.
- With fewer than 2 accounts, stagger does nothing.
To turn it on:
- Select an account.
- Open Details.
- Turn on Stagger 5h windows.
To set the gap between slots (15 to 300 minutes), use the settings API:
PUT /api/terminal/claude-accounts/settings
{"stagger":{"enabled":true,"gapMinutes":60}}
Notes for each operating system
- Linux and Windows: SSG reads each account's login from
<config folder>/.credentials.json. For an idle account that is not the default, SSG can refresh the login and write the new token back to that file. - macOS: If an account has no
.credentials.json, SSG reads the login Keychain itemClaude Code-credentials(non-default folders add-<hash>). By default SSG only reads it. SSG refreshes a Keychain login only if you setSSG_CCUSAGE_KEYCHAIN_REFRESH=1. macOS can ask once to allow access. - Windows without symlink rights: SSG uses directory junctions and hard links instead.
Privacy
SSG reads the Claude.ai login of each account on your machine. SSG sends it only to Anthropic, to read usage and to refresh the login of an idle account. SigmaShake servers never receive it.
SSG never shows or logs OAuth tokens.
API
All endpoints need a subscription and the local dashboard token.
| Method and path | Purpose |
|---|---|
GET /api/terminal/claude-accounts | List accounts |
GET /api/terminal/claude-accounts/usage | Read usage |
GET /api/terminal/claude-accounts/settings | Read settings |
PUT /api/terminal/claude-accounts/settings | Change settings |
POST /api/terminal/claude-accounts/{id}/login | Start sign-in for an account |
POST /api/terminal/sessions/{id}/claude-account | Switch a session to an account |
DELETE /api/terminal/sessions/{id}/claude-account/hold | Cancel a switch that waits for an idle Claude |
POST /api/terminal/sessions/{id}/claude-account/failover/now | End the countdown of the automatic switch now |
DELETE /api/terminal/sessions/{id}/claude-account/failover | Cancel the automatic switch for this limit |