Cortex
Search help⌘K

Use several accounts of one agent

Updated 18 November 2026Cortex 0.26.04 min read
On this page

Add a work and a personal account, each with its own folder, sign-in and limits; colours, order, removing.

You may have more than one subscription of the same agent, for example a personal Claude plan and a work one. Cortex keeps each in an account, so one never leaks into the other.

What an account is

An account is one agent with a folder of its own. The folder holds the account's own sign-in, settings, sessions, history, memory and plan limits. Cortex never holds a Claude or Codex credential itself. It starts the agent pointed at a different folder.

  • The built-in account, named "Main", uses the agent's usual folder, ~/.claude for Claude Code and ~/.codex for Codex. Cortex shares that folder with your terminal, so the same sessions, memory, skills and login appear in both. The built-in account cannot be removed.
  • An added account has a folder of its own, by default ~/.claude-work or ~/.codex-work, named after the account.

The Cortex Agent has no built-in account. Its accounts are explained in Add an OpenRouter account and Use your own models.

Settings on the Agents pane, fourth in the sidebar after Appearance, Contexts and Isolation: the Local agents list, and the Accounts list with Main and Legal (Claude Code), Main (Codex) and Finance (Cortex Agent), each with a coloured dot, a folder and who it is signed in as, and a grip to reorder.
Settings → Agents: every account, with its colour, folder and who it is signed in as

Add an account

  1. Open Settings → Agents.
  2. Under Accounts, choose Add Account… and pick the agent.
  3. Give the account a Name, such as "Work", and pick a colour. The folder is filled in for you, and Choose… lets you pick another.
  4. Optionally, set Bring over from to an existing account of the same agent, and tick the parts to copy. For Claude Code these are CLAUDE.md with its agents, commands and skills, settings.json, and the user-scope MCP servers. For Codex they are AGENTS.md, prompts and skills, and config.toml. Cortex copies them once and never over something already there. Sessions, history and the sign-in are never copied.
  5. Press Add and Sign In.
The Add a Claude Code account sheet: the name Legal, the colour Purple, the folder ~/.claude-legal, Bring over from set to Main, switches for CLAUDE.md and settings.json (on) and MCP servers (off), and the Add and Sign In button.
Add Account…: name, colour, folder and what to bring over

Cortex creates the account, closes the sheet and starts the agent's own login in a terminal tab. Sign in in your browser. Cortex notices when the sign-in lands. The new account's dialog then opens.

A folder that another account already uses, including the built-in one, is refused with the reason, and the sheet stays open. If copying a part fails, the account is still added and Cortex says what was not brought over.

How accounts show

With a single account, nothing marks it. With more than one:

  • Each account has a dot in its colour, before its meters in the toolbar and in the + picker.
  • Each session row has a bar in the account's colour, and its details line begins with the account's name.
  • A session's header shows a badge such as "Claude · Work", and a thin line in its colour sits under the tab.
  • A row of chips under the session filter, All and then each account, shows one account's sessions only.

An account has one of eight colours: red, orange, yellow, green, teal, blue, purple or pink.

Change an account

Click an account's row to open its dialog. It holds the name, the colour, the folder, who it is signed in as, and the agent's own settings. It also lets you choose whether Commands in new tasks are asked for or run automatically, shows which contexts use it by default, and has one switch per usage meter. The buttons are Sign In… (Sign In Again… once signed in), Open Folder, Make Default and Remove….

The name is saved when you press ↩, leave the field or close the dialog.

Put the accounts in order

Drag a row by the grip (≡) at its start. The order you leave is saved, and it is the order of every list of accounts: the toolbar's usage buttons, the + picker, Context Settings… and the account chips in the session list.

Remove an account

Press Remove… in the account's dialog. Cortex forgets the account, but its folder stays on disk, with its sign-in, settings and sessions. Nothing is deleted. If it was the default, the default falls back to that agent's built-in account.

Something wrong or missing? Tell us

Open this page in your browser