Agent accounts
Since v0.57.0 an agent can run on more than one login. Sign in to each subscription once, in Settings > Accounts, and Kangentic picks an account for every session: the first one in that agent’s list with room left. A session that reaches its account’s usage limit continues on the next account, and every conversation stays in the agent’s own history, whichever account wrote it.
With one account nothing changes. The list holds the login the agent already has, and a session starts exactly as it did before.
Which agents support accounts
Section titled “Which agents support accounts”| Agent | An account is |
|---|---|
| Claude Code | A sign-in of its own, kept in a folder Kangentic makes for it. Sessions on it set CLAUDE_CONFIG_DIR to that folder |
| Aider, Cursor, Factory Droid, Warp | An API key file you own. Kangentic stores the file’s path and the names of the keys in it, never a key |
Codex, Gemini CLI, Grok, and Qwen Code have account support written and switched off. Each was built from the CLI’s source and docs, and none could be run on a second real account, so none ships until it has been. The other agents keep the one login they have. So does any agent that runs in a WSL distro or on an SSH host, whatever kind of account it has. Its sessions always start on the login it has there, and a distro agent’s card says so.
Adding and switching accounts
Section titled “Adding and switching accounts”Accounts is the first of the shared tabs in Settings. An agent gets a card of its own once it has two accounts, reports its usage, runs in WSL, or has an environment variable set that outranks its accounts. Every other installed agent that supports accounts is one line on the More agents card.
A card lists the agent’s accounts in the order sessions use them. The first row is the login the agent already had, and it cannot be removed. The Active pill marks the account a new session starts on. For an agent that reports usage, which today is Claude Code, each row draws one line per usage window: the share used, a bar whose tick marks how much of the window has passed, and a countdown to its reset. Claude Code has a 5-hour and a 7-day window. A window the account has not opened yet reads Not started. Since v0.63.0 a window the account’s plan does not have draws no line at all, as Claude Code’s own usage reports for a plan with no 5-hour limit, so two rows of one agent can differ in height.
Since v0.63.0 the tab shows at once after a restart. Before, it drew nothing for up to 12 seconds while Kangentic checked which agents are installed. It now lists the accounts it showed last time, with their saved usage, and fills in the check when it lands. On a first launch it shows one placeholder card. While the tab’s own usage read runs, which takes 13 to 35 seconds, a spinner follows each reporting agent’s name, with the tip Reading usage, and the bars show the last read.
- Add account runs the agent’s own sign-in (
claude auth login) in a terminal of its own, pointed at a new account folder, and reads back who signed in when the terminal ends. For a key-file agent it asks for the key file instead. On More agents it first opens a menu of those agents. A sign-in to a login already in the list adds nothing and names the account it matches, and a sign-in that did not finish removes the row it made. Since v0.60.0 a login is its email and its organization, so one email in two organizations is two accounts. Since v0.66.0, while the first account names no email yet, a sign-in to the login the agent’s own home already holds adds no row either: the first account takes that login once the CLI confirms it. - Switch to moves an account to the top of the list and restarts that agent’s running sessions on it, one at a time, each resuming its own conversation at its next safe point. Since v0.63.0 that covers Command Terminals and workflow agents as well as task sessions, where before they stayed on their account. One toast says how many sessions moved and how many working ones move at their next pause. Since v0.66.0 an account at its usage limit has no Switch to, because every moved session’s next turn would hit the limit and move away again. A Limit reached label with a warning icon takes its place, and its tip says when the account has usage again. The rest of the row is muted until then.
- Remove, in a row’s menu, stops Kangentic starting new sessions on the account. Nothing on disk is deleted.
- Sign in, in a row’s menu, appears on an added account that reads Not signed in, including one whose login was replaced. It runs the agent’s own sign-in with the row’s email filled in. The account the agent already had has no Sign in item yet.
A row that cannot take a session says why: Not signed in, No subscription, File not found for a key file that is gone, or History not shared for a Claude Code account whose conversation folders could not be linked (see One history for every account).
Claude Code reads ANTHROPIC_API_KEY, ANTHROPIC_AUTH_TOKEN, CLAUDE_CODE_OAUTH_TOKEN, and ANTHROPIC_PROFILE ahead of any stored login. When one is set in the environment Kangentic started from, the card shows a line naming it. Kangentic never removes it from a session’s environment, so every account’s sessions use it.
Which account a session runs on
Section titled “Which account a session runs on”Every session an agent starts asks the list: a task’s session, a Command Terminal, and a workflow’s own agent. Each account is tried once, in order, and one is passed over when it is signed out or replaced, has no subscription, has a usage window at 100%, or has a folder Kangentic could not prepare. When none can be used, the session runs on the agent’s own login.
The Account switching card holds two settings. It shows once an agent that reports usage has two accounts.
| Setting | Default | What it does |
|---|---|---|
| Order | Automatic | Automatic puts first the account whose longest usage window resets soonest, so an allowance is spent before it resets, and since v0.63.0 moves running sessions to that account when it changes. Since v0.66.0 it ranks every account with usage left ahead of the ones at their limit, as the row’s line says: “Soonest reset first, full accounts last.” Full accounts follow in the order they free up, and accounts that cannot run come last. Manual keeps your order: drag a row by its grip. A drag or Switch to sets Manual |
| Automatically switch accounts at the usage limit | On | A task’s session that reaches its account’s limit continues on the next account in the list |
Order applies only to agents that report usage. An agent that reports none has no reset to sort by, so its list is always in your order, and its rows take a drag once it has two accounts.
Since v0.60.0 Automatic never ranks on a reading that has run out, and since v0.61.0 neither does Manual, which skips a full account. Before a session starts on an agent with two or more accounts, Kangentic reads each account that has no reading, one older than 20 minutes, or a window whose reset has passed since. The start waits up to 10 seconds for those reads, then ranks on what it has. An account is read this way at most once a minute, so one whose read keeps failing does not slow every start. Before, a session started at launch, ahead of the first read, could rank an account last on a reading whose windows had already reset.
Since v0.63.0 an account whose 7-day window reset since its last reading ranks with the accounts that have no reading, until it is read again. Before, its 5-hour reset, hours away, stood in for a week that had just begun, and Automatic put that account first.
The figure below shows the tab with three Claude Code accounts in run order under the Account switching card. Each row shows its plan, a usage bar per window, and the countdown to that window’s reset. The first is Active, and the second is passed over because its weekly window is at its limit.
A resume follows the list like any other start. Claude Code’s account folders share one conversation history, which is what lets any account resume any conversation. Since v0.57.1 a resume also brings the conversation’s plan file into the account it runs on (see Plan files and auto memory).
Running sessions follow the order
Section titled “Running sessions follow the order”Under Automatic, the top account changes when a week resets. A session left on the old top account spends a fresh week while the new top account’s last days run out unused, and an app that stays open for days had nothing to move it. Since v0.63.0 the running sessions of that agent follow the top account with room: task sessions, Command Terminals, and workflow agents. Kangentic looks after each usage read and after a change to the account settings, and one toast says the sessions are moving. A reading that leaves the top where it was moves nothing, so sessions never bounce between accounts. A resume on another account starts with a cold prompt cache, a full reread of the conversation charged to the new account, and the order changes only at resets, a few times a week. Manual order moves nothing.
Each session moves at its first safe point, one at a time, the same way Switch to moves them. A safe point has no tool call running, no permission prompt or question open, no background command or subagent alive, and nothing typed into the agent’s input box. Mid-turn, Kangentic also waits until the last tool’s result is in the transcript, which Claude Code writes up to a couple of seconds after the tool ends. A session at its prompt moves at once and resumes with nothing sent. One caught between two tools resumes with Continue.. Since v0.66.0 that point lasts only 3 seconds after the last tool ended, because Claude Code sends its next request as soon as a result is written, and a move later than that cut off a reply still being written. One that never reaches a safe point mid-turn moves when its turn ends. There is no forced deadline, so a long background job holds the move until it ends.
Since v0.66.0 every move tells the agent which account it now runs on, that artifacts and connectors made under the previous account cannot be reached from it, and that kangentic_switch_account moves it back. That covers Switch to, Automatic order, the continuation at a usage limit, and the per-task switch. Claude Code gets the notice as its session starts, so it costs no turn. Another agent gets it in front of the Continue. a move between tools sends, naming no account, and an idle move tells it nothing, since a prompt of its own would spend a turn.
A Command Terminal comes back in the same slot and window, on the same conversation, once its old agent has exited, so two agents never hold one conversation. A terminal nobody has typed into waits for its first turn, and a workflow agent with no conversation yet waits too. A session the usage-limit continuation is deciding is left to it.
At the usage limit
Section titled “At the usage limit”With Automatically switch accounts at the usage limit on, a task’s session continues on the next account when two things are true together: the turn failed with the agent’s usage-limit error, and a read of that account made then shows no room left. A percentage alone never triggers it. The number moves while a turn runs, and a CLI reports a momentary rate limit with the same error as a spent plan and retries those by itself.
The next account is read before it is chosen. The session then restarts in place on it, resumes the same conversation with the prompt Continue., and a toast names the account it continued on.
When every account is full, the session waits where it is, one toast names the first reset, and it continues once a later read shows room. The continuation never moves a Command Terminal or a workflow’s own agent to another account: at the limit they wait. Only Switch to and Automatic order move those.
Since v0.61.0 a window at 100% stays full until its reset, whatever a later report says. Measured on Claude Code 2.1.330, a session on an account whose weekly allowance was spent kept reporting 99% while Claude Code’s own cache read 100%. Another session on that account wrote its 99 over the full reading within 72 seconds, and the next column move started on the spent account again. So every later start, a column move included, passes over a full account until that window resets. A report that names a later reset is the next window and counts.
Also since v0.61.0, a resume that starts on a full account moves on too. Claude Code can refuse a resume at a spent limit with no failed turn at all, so the conversation sat there with its opening message never answered. Now a resumed task session whose account reads full, or at 95% or more, has that account read at once, and a read that finds it full moves the session to the next account, or leaves it waiting when every account is full. The move resumes with the session’s own opening message, not Continue., since that message was never answered. An account under 95% costs nothing, and no read runs.
Usage per account
Section titled “Usage per account”Each usage window belongs to the account it was read for, so two accounts’ weekly windows never overwrite each other, and a session’s context bar shows only its own account’s windows.
An account with no session running is read through the CLI. For Claude Code that is claude -p /usage, measured at about a second, with no model turn, no cost, and nothing added to the prompt history or the conversations. Kangentic reads one account at a time: when the app opens, when the tab opens, when a window’s reset passes, every 15 minutes, before a switch, and before Automatic ranks an account whose reading ran out. A failed read keeps the last values. Nothing is read on a schedule for an agent with one account.
Who is signed in is read the same way. For an agent with two or more accounts, the read when the app opens checks every account’s sign-in, and each 15-minute pass checks again any account that cannot take a session, so one that recovers takes sessions again without the tab being opened. Only the CLI’s own signed-out answer marks an account Not signed in. A sign-in read that times out or gives no answer leaves the account as it was. Before v0.60.0 such a read marked a working account signed out, and Automatic put it last until the tab was opened.
A login replaced inside a session
Section titled “A login replaced inside a session”Claude Code keeps one login per folder, so a /login typed into any session, or claude auth login run in a terminal, replaces the login of every session in that folder. Since v0.60.0 Kangentic notices, and an account never quietly turns into another login:
- The folder now holds a login another account lists. The folder’s own account keeps its email and reads Not signed in, and the other account is that login’s only row.
- The folder now holds a login the list does not name. The folder’s account takes the new login, and the login it held before moves to a new account of its own, reading Not signed in. Its Sign in lands in a folder of its own, so it never replaces the login the first folder holds now.
- One account only. Its row is whatever Claude Code is signed in to, as before accounts existed, so a new login adds no row.
Sessions follow the login, not the folder. Every session running in that folder now runs as the account that names its new login, so its usage, its context bar, and a continuation at the usage limit all read that account. Nothing on disk is moved or deleted, and Kangentic never refuses or delays a /login or /logout.
For an agent with two or more accounts, Kangentic watches each account folder’s login file and checks a session’s folder at each turn end and when it ends. On macOS the login is in the Keychain, so there the turn-end check and the 15-minute pass find the change.
An agent that needs another of your accounts, such as one whose plan or claude.ai connectors the work needs, should call kangentic_switch_account instead of suggesting /login. It restarts that task’s own session on the named account once the agent’s turn ends, resuming the same conversation, and leaves every other session’s login alone.
One history for every account
Section titled “One history for every account”Claude Code keeps one login per home folder, so a second account needs a folder of its own under Kangentic’s config folder. Nearly everything in it points back at Claude Code’s own home, ~/.claude. The login and the plan files are the account’s own:
| What | How it is shared |
|---|---|
Conversation folders (projects, file-history, todos, and the rest) |
A folder link: a junction on Windows, a directory symlink elsewhere |
plans, the plan files |
The account’s own folder. A resume copies the conversation’s plan file into it |
| Auto memory | Claude Code’s own memory folder for the project, which an account session’s settings name by its real path |
Setup folders (skills, agents, commands, plugins, rules, and the rest) |
A folder link. Since v0.61.0 one the home lacks is made empty there first, so it is linked too |
history.jsonl, the prompt history |
A hard link, on the same drive only |
settings.json |
Since v0.66.0, rebuilt from the home’s before each start part by part: each top-level key, environment variable, enabled plugin, and permission rule. A part the account changed keeps its value there until the home changes the same part |
keybindings.json |
A copy, refreshed before each start. A change made on the account stays while the home has no such file |
CLAUDE.md |
One line importing the home’s file |
.claude.json |
Rebuilt from the home’s file before each start, without its login and caches |
| The login, caches, and logs | The account’s own, never shared |
So a session writes its conversation into the same place whichever account it runs on. Kangentic never moves, renames, or overwrites anything in Claude Code’s own home, and removing an account deletes nothing on disk. A conversation folder it cannot link marks the account History not shared, and the account takes no session until the link is made, so a conversation never lands where Kangentic cannot read it. An account folder on another drive cannot hard link the prompt history, so its row reads Own prompt history and keeps its own.
What a session on an account writes
Section titled “What a session on an account writes”A link writes into the home, so a skill, an agent, a command, or a plugin made in a session on an added account is everyone’s. Before v0.61.0 a setup folder the home lacked was not linked, so what a session made there stayed with that one account. Since v0.66.0 an account keeps its own settings. A /config option, /model, the effort, the theme, a permission rule, a plugin switched on or off, or /statusline’s setting changed in an account session stays on that account, until the home changes the same setting, and then the home’s replaces it. Each permission rule is its own part, so a rule added in the home and one added on the account are both kept. A setting Claude Code rewrites by itself when a release migrates it stays too, where before it was replaced and written again at every start. While the home’s settings.json is missing or caught half written, the account’s file is left as it is.
The copied keybindings.json, once the home has one, and the rebuilt .claude.json still run one way, from the home to the account, so a change made there, such as a server claude mcp add saved for a folder the home also has, lasts only until that account’s next start. Kangentic does not copy it back, because the home’s files are yours and a write into them from another account’s session is not its to make.
Since v0.61.0 it says so instead. A change replaced this way sends one error report naming the file, never what changed, and for settings.json only a part the home changed too. Text an account’s own CLAUDE.md held is moved aside as CLAUDE.md.kangentic-kept-<time> before the import line is written, rather than lost. A user-scope MCP server added on an account stays on that account unless the home has one of the same name. To make a setting stick for every account, change it in a session on the first account.
If you already run Claude Code with CLAUDE_CONFIG_DIR, that folder stays the first account. Since v0.57.0 Kangentic’s own writes follow it too: trusting a worktree, enabling its MCP server, the diff panel setting, and a moved project’s entries go to the .claude.json inside that folder, where they used to go to ~/.claude.json whatever the variable said.
Since v0.63.0 the first account’s folder no longer depends on how you started Kangentic:
- Started from an account session’s terminal. A session on an added account runs with
CLAUDE_CONFIG_DIRnaming that account’s folder, sonpx kangentictyped in that terminal inherited it, and the first account then read the added account’s login. Kangentic now drops a home variable that names one of its own account folders when it starts. - Started from a desktop launcher on macOS or Linux. A
CLAUDE_CONFIG_DIRyour shell’s startup files export used to reach sessions but not Kangentic, so it looked for conversations in~/.claudewhile the sessions wrote them elsewhere. Kangentic now reads the variable from your login shell when it starts and uses it, unless it is relative or names an account folder. A value Kangentic was started with still wins. - A shell that sets the variable again. A login shell whose
~/.bashrc,~/.zshrc, orconfig.fishexportsCLAUDE_CONFIG_DIRoverrode the folder a session on an added account was given, measured in bash, zsh, and fish on Ubuntu under WSL. The typed launch line now sets it again after the shell starts, in bash, zsh, sh, dash, ksh, and fish.
A folder link Kangentic made under one home and finds under another is made again to the current one, never blocked. A link pointing anywhere else is yours, and still blocks the account.
Plan files and auto memory
Section titled “Plan files and auto memory”Claude Code checks a write both at the path it was given and at the path it lands on. Most writes through the links above run with no prompt, the conversation itself included, but two kinds ask: a plan file and an auto memory. In v0.57.0 a session on a second account asked for permission every time it wrote a plan file, through the plans link, or an auto memory, through the projects link. Since v0.57.1 neither asks:
- Each account keeps its own
plansfolder. Claude Code looks for a conversation’s plan file only in the home it runs on, so a resume copies the newest copy of that file, and its subagents’ plan files, into the account it runs on, from whichever home holds them. A copy that fails is logged and never stops the session. Upgrading replaces the old link with an empty folder and leaves the plans already in~/.claude/planswhere they are. - An account session’s settings set
autoMemoryDirectoryto Claude Code’s own memory folder for the project, by its real path, so every account still writes one memory. A value you or the project already set is left alone. One layout still asks: a worktree of a repository whose git folder sits apart from its checkout, which was not measured.
Key-file accounts
Section titled “Key-file accounts”A key-file account adds the keys in a file you own to a session’s environment, and nothing else, so no conversation can move. The file is .env lines (NAME=value, with an optional export and # comments), and Kangentic keeps only the names the agent reads:
| Agent | Keys it reads |
|---|---|
| Aider | OPENAI_API_KEY, ANTHROPIC_API_KEY, OPENROUTER_API_KEY, GEMINI_API_KEY, DEEPSEEK_API_KEY, AIDER_OPENAI_API_KEY, AIDER_ANTHROPIC_API_KEY |
| Cursor | CURSOR_API_KEY, CURSOR_AUTH_TOKEN |
| Factory Droid | FACTORY_API_KEY |
| Warp | WARP_API_KEY |
A file that sets none of them is refused. The key is read into the session’s environment at each start and is never written to the config, the database, a log, or an error report. Aider loads ~/.env and the project’s .env over its environment, so an Aider session on a key-file account also sets AIDER_ENV_FILE to the key file, which Aider loads last. Each agent’s own login is one per machine and stays its first account.
See also
Section titled “See also”- Session persistence - how a session resumes, which is what Switch to and a continuation do
- Settings - the Accounts tab among the other shared tabs
- Terminal and Activity tab - the rate-limit bars each session shows
- Agent orchestration - every supported agent and what each one can do
- Configuration reference - the
agent.accounts.*keys
Kangentic is free and open source. A star helps other people find it.
Star on GitHub