Switch Claude Code accounts at the usage limit
When one Claude account reaches its usage limit, hivemux lets you log in to another account and switch to it, for every project or for one project. Each Claude restarts on the new account in the same conversation, so the work goes on where it stopped.
Add an account
Section titled “Add an account”Right-click the sidebar → Switch account… → Add account…, type a name for it (work), and finish the login in the browser that opens. You log in once; after that you only pick it.
hivemux account add workSwitch every project
Section titled “Switch every project”Pick the account in the same popup, or:
hivemux account use work # back: hivemux account use defaultBefore it switches, the popup says how many Claudes, in which projects, will restart, and asks. Those restart on the new account in the same conversation (claude --resume): at once when they are resting or stopped by the usage limit, also the one on your screen; after the turn when one is working. New windows and new projects start on it too. The prompt that hit the limit is not sent again, so send it once more.
One project on its own account
Section titled “One project on its own account”Right-click a project’s name → Account for this project… gives that project its own account while the rest stay as they are. “Same as all projects” undoes it.
hivemux account use work -s api # all: same as every project againGo on with an API key at the limit
Section titled “Go on with an API key at the limit”Instead of switching by hand, hivemux can go on by itself. Add an Anthropic API key once; when a subscription reaches its usage limit, its Claudes go on with the key in the same pane and the same conversation, and the one the limit cut off is asked to go on. When the limit resets (the time in the limit message, else five hours), they turn back into Claude Code once they are off the screen and not working.
In the account popup (right-click → Switch account…), Add API key account… asks for the key, checks it and keeps it; At a usage limit, go on with picks the account (the first one added is picked). Or from a terminal:
hivemux account add-key api # asks for the key and checks ithivemux account fallback api # go on with it at a usage limithivemux account fallback api -s web # one project only (off, all: as every project)hivemux account fallback off # stop
A subscription Claude Code cannot use (a payment past due, an account on hold) goes on with the key too, for a day or until you choose that account again.
Your plan’s API credits
Section titled “Your plan’s API credits”Max, Ultra and Team plans include monthly API credits: $100 on Max, $200 on Ultra, and $20 or $100 a seat on Team, pooled up to $500. Claim them on claude.ai → Settings → Billing → API credits, which links a Claude Console organization; make the key in that organization. Anthropic says the credits cover the Claude API and the Claude Agent SDK, not interactive Claude Code, and that they expire at the end of each billing cycle. With such a key Claude Code itself stops at “Credit balance too low”.
So hivemux goes on through the Agent SDK: its own terminal for Claude, made with the SDK, that looks and works like Claude Code. It opens on the end of the conversation, draws answers from their markdown, folds the files it reads and the commands it runs into one line, and shows an edit with its lines. The prompt sits between two rules with the mode, model, context and cost under it; / lists the commands and @ the files, ! runs a shell command, Esc stops a turn and Ctrl+V pastes an image. It works in the same pane with the same folder, tools, settings, CLAUDE.md, hooks and team role. The conversation passes as a handoff document written from the end of the Claude Code conversation, so the whole history is not sent again on every request, and what it does is written down after each turn for Claude Code to read when it comes back. It diets as a team role does (150K tokens outside a team; tmux set -g @hivemux-sdk-diet 200, or off).

It needs Python 3.10 or newer, set up once in ~/.local/share/hivemux/sdk/venv. When the credits run out, requests stop, or go on with credits you bought; without credits API use is billed per request. hivemux account runner api claude runs Claude Code on the key instead.
Move before the limit
Section titled “Move before the limit”Claude Code with hivemux’s mod reports its usage limits after each turn. When a subscription has used 95% of its week or of its five hours, a popup asks whether to go on with the account set for a usage limit before the limit cuts a turn. On Move, each Claude moves in the same conversation once it is free and off the screen, and comes back when that limit resets; on Stay it asks no more until then. Settings → Move early · week and · 5 hours turn it off or set 80 to 98% (95% by default).
How much of each account’s week is used shows at the bottom of the sidebar (week default 23% · work 92%, amber from 70%), in the account popup and in hivemux account list, with when it resets. hivemux setup adds the mod; a running Claude takes it when it starts again (right-click → Update Claude).
Hide from the Claude app
Section titled “Hide from the Claude app”For an account shared with someone else: right-click a Claude’s line → Hide from the Claude app, or a project’s name → Hide this project from the Claude app (its team too). Those Claudes stay out of the Claude app and claude.ai: hivemux disconnects their Remote Control, a busy one when its turn ends, and again after a restart, a resume, /clear or a reboot. The same menu item shows them again. A whole account: hivemux account hide <name> (off to undo).
Which account is in use
Section titled “Which account is in use”When the account in use is not the default one, the status line shows ◉ work before the clock. To see them all:
hivemux account list default me@company.com [api]* work me@gmail.com* marks the account for every project; the projects in brackets have their own.
What is shared
Section titled “What is shared”default is the login in ~/.claude. An added account is a Claude config folder of its own, ~/.local/share/hivemux/accounts/<name>, used through CLAUDE_CONFIG_DIR. Only the login is its own. Settings, hooks, conversations, memory, skills, plugins, history and the list of running sessions link to ~/.claude, so:
- a conversation goes on under any account,
- what a Claude remembers in one account it remembers in the other,
- Claudes on different accounts still see and message each other.
hivemux account remove <name> logs out of that account and removes its folder (the links only, never what they point at). Projects on it go back to the account for every project.
Right-click → Docs… (or the Docs link at the top of the bee office) lists what your Claudes made for you to see: the projects’ HTML files, and the artifacts they published.
HTML files
Section titled “HTML files”Settings → Docs to show → HTML files has a Claude write a page as one HTML file in the project and publish it as an artifact only when you want it shared. The default is claude.ai. It applies from each Claude’s next conversation, and a team can have its own setting.
The list shows the HTML files in each project’s docs/ and in the roles’ work folders, with what each was shared as.
| Button | What it does |
|---|---|
| Open | opens the file in the browser |
| Shared copy | opens the artifact it was published as |
| Copy request to share | puts a request on the clipboard to paste to a Claude, which publishes the file |
| Copy request for opinions | puts a request on the clipboard to paste to a Claude, which writes the comments left on the shared copy to <name>.share.md next to the file, and what you decide into the file |
Artifacts
Section titled “Artifacts”An artifact, a claude.ai page a Claude published, opens only for the account that published it. The list has every artifact your Claudes published, newest first, with the account it belongs to. It reads them from the conversation transcripts, so the ones from before you added an account are there too.
| Button | What it does |
|---|---|
| Open | opens the page on claude.ai; it opens when the browser is logged in to that account |
| View copy | opens the copy hivemux kept of the published file, under any account |
| Copy republish request | puts a request on the clipboard (title, file, old link) to paste to a Claude on the account in use, which publishes it again as a new artifact |
The copies are taken while the published file is still on disk (~/.local/share/hivemux/artifacts/); files in a Claude’s scratchpad go at a reboot, so an old artifact may have none.
A Claude that was watching an artifact’s comments says the watch “couldn’t restart” after moving to another account: the artifact belongs to the first account. The artifact itself is untouched; publish it again from that account to turn the replies back on.