One folder per account
Each of these agents reads its sign-in from a folder that an environment variable can move:
| Agent | Variable |
|---|---|
| Claude Code | CLAUDE_CONFIG_DIR |
| Codex | CODEX_HOME |
| Gemini CLI | GEMINI_CLI_HOME |
| OpenCode | XDG_DATA_HOME |
Give each account an alias that starts the agent with its folder:
alias claude-work='CLAUDE_CONFIG_DIR=~/.claude-work claude' alias codex-work='CODEX_HOME=~/.codex-work codex' alias gemini-work='GEMINI_CLI_HOME=~/.gemini-work gemini' alias opencode-work='XDG_DATA_HOME=~/.opencode-work opencode'
In a new terminal, sign in once per alias: in Claude Code type /login, in Gemini CLI pick the Google sign-in, then quit. The plain command keeps your current account.
mkdir -p ~/.claude-work ~/.codex-work ~/.gemini-work ~/.opencode-work claude-work codex-work login gemini-work opencode-work auth login
XDG_DATA_HOME moves every program’s data that follows it, so set it only for the OpenCode process.
Cursor Agent names no sign-in folder in its documentation, so on the Mac it keeps one sign-in.
Watching the limits
Plans have session and weekly limits. In Claude Code, /usage shows how much of each is used; in Codex, /status. Check before a long task, and switch accounts before a limit stops an agent halfway.
With Dockazor
Settings › Accounts keeps a named sign-in folder per account, under each agent. A new chat starts on the account its agent last used, unless its project chose one in Project Settings.
- For plans with limits, the toolbar shows a chat’s account and how much of its closest limit is used; the popover lists each limit and when it resets. OpenCode chats show tokens and cost instead.
- Switch Account in that popover moves the chat to another account. The chat restarts on it: a Claude Code chat keeps its conversation, another agent’s chat starts fresh in the same worktree.
- When Dockazor sees an account cross 90% of a limit, you get one notification.
- Cursor Agent keeps one sign-in on the Mac; in a project’s container it takes accounts like the others.
- Usage checks for Gemini CLI and Cursor Agent send that agent’s sign-in to Google or cursor.com, so they are off until you turn them on in Settings › Usage.