# Multiple CLI accounts, usage limits, and cold-cache resume

> Run separate Claude Code, Codex, and OpenCode accounts per workspace, track live usage meters across 6 CLIs plus DeepSeek prepaid balance, auto-continue after limit resets, and avoid expensive cold-cache re-reads.

- **Category:** Usage and plans
- **Updated:** 2026-12-01
- **Reading time:** 8 min
- **Canonical page:** https://cmdbrief.com/guides/multiple-accounts-and-usage-limits

## Quick verdict

- Keep multiple **Claude Code**, **Codex**, and **OpenCode** accounts signed in side by side in isolated config folders, and assign a specific account to each workspace under **Workspace settings › Accounts** (locally or on a paired computer).
- Monitor live usage meters across **6 CLIs** (Claude Code, Codex, Grok CLI, OpenCode Go, Cursor CLI, and Antigravity CLI) plus an optional **DeepSeek prepaid balance** row, with burn-rate forecasts and configurable alerts.
- Armed **Claude Code**, **Codex**, and **Antigravity CLI** panes auto-continue after a limit reset, **Access pause** pauses panes instead of failing during 401/403 outages, and **Clear + recent** replaces expensive cold-cache re-reads with a compact recent-context start.

## What you get

When you run [a lead and crew](https://cmdbrief.com/guides/lead-and-crew-workflow) across multiple projects, three subscription problems waste time and tokens: hitting one account’s window while another account has headroom, losing work when an API temporarily blocks calls, and accidentally re-reading hundreds of thousands of expired prompt-cache tokens after a break. CmdBrief handles all three natively without proxying your model traffic.

- **Per-workspace accounts:** keep personal, client, or backup **Claude Code**, **Codex**, and **OpenCode** accounts signed in at once and bind each workspace to the account it should bill against.
- **Cross-vendor usage meters:** watch real-time rate-limit windows, reset countdowns, burn rate, and sustainable pace across 6 CLIs plus **DeepSeek prepaid balance** in the sidebar and **Limits & pace**.
- **Automatic recovery:** **Auto-continue** picks up Claude Code, Codex, and Antigravity CLI panes after a limit resets; **Access pause** holds panes through 401/403 or temporary blocks instead of crashing turns.
- **Cold-cache guard:** before a long idle chat re-reads an expired prompt cache at full price, CmdBrief shows the re-read token estimate beside **Clear + recent** so you can carry over only the recent context.

## Live usage meters across 6 CLIs and DeepSeek

| Provider | Windows & cost shown | Multiple accounts | How CmdBrief reads it |
| --- | --- | --- | --- |
| Claude Code | 5-hour & weekly windows + per-model pools (e.g. Fable); real USD cost | Yes (`CLAUDE_CONFIG_DIR`) | Statusline JSON relay + `.claude.json` usage cache (`claude -p /usage` for idle accounts) |
| Codex | Both rate-limit windows; token-weighted cost estimate | Yes (`CODEX_HOME`) | Local Codex `app-server` probe per account folder |
| Grok CLI (Grok Build) | Weekly credits only | No | Reads `billing: fetched credits config` in `~/.grok/logs/unified.jsonl` |
| OpenCode (Go) | Rolling, weekly, and monthly windows (sidebar shows rolling + tightest) | Yes (`OPENCODE_DB`) | OpenCode Zen usage endpoint using each account’s Go API key |
| Cursor CLI | Monthly Cursor-models (`own`) & Other-models (`api`) pools | No | Cursor CLI’s own login token only (never reads Cursor editor `state.vscdb`; hiding the row stops the probe) |
| Antigravity CLI | Weekly & 5-hour pools (Gemini master limit, Claude/GPT, Argon) | Switch account… in Setup | Reads pools via `agy -p /usage` |
| Kimi CLI | None (Kimi exposes no usage data; terminal panes only) | No | Not applicable |
| DeepSeek (billing) | Total currency balance (`$` / `¥`) with granted & topped-up hover split; no window/countdown | Single key per computer | Keychain (`deepseek`) → `DEEPSEEK_API_KEY` → OpenCode `auth.json`; toggle in **Settings › Usage & cost › Prepaid balances** |

*As of CmdBrief 0.5.102, all 6 Standard-pane CLIs mix freely as lead or crew; Kimi CLI runs in terminal panes only. Costs are never compared across providers.*

In the sidebar, click a provider’s limit card to pin it with **Always show**, or open **Limits & pace** for burn rate, sustainable pace, and a forecast to reset. Usage alerts fire at **50 / 75 / 90%** and at the limit (adjustable in Settings › Notifications), and active leads are warned at **80%** and **90%** so they can slow down or wrap up cleanly. For deeper background on plan caps, see [Claude Code usage limits](https://cmdbrief.com/guides/claude-code-usage-limits) and [Claude Pro vs Max vs Ultra](https://cmdbrief.com/guides/claude-max-vs-pro), or review your spending with the [AI subscription audit](https://cmdbrief.com/guides/ai-subscription-audit).

## Add CLI accounts and pick one per workspace

**Step 1 of 3 · You do this** (Settings › Agents › Accounts & Workspace settings › Accounts)

1. Open **Settings › Agents › Accounts › Every agent’s accounts › Open…** for this computer — or **Settings › Computers › `<computer>` › Setup › Accounts** for any paired computer with full use.
2. Click **Add account**, name it, and sign in: Claude Code (`claude auth login`) and Codex (`codex login`) run their own CLI login inside an isolated folder (`<app support>/accounts/<provider>/<id>/` using `CLAUDE_CONFIG_DIR` or `CODEX_HOME`). OpenCode accounts are added by pasting a Go API key into a masked field (stored in a private `0700` folder with its own `opencode.db` via `OPENCODE_DB`).
3. Each new Claude or Codex account folder copies your default `settings.json` or `config.toml` and links your `CLAUDE.md` / `AGENTS.md`, skills, commands, prompts, and Claude plugins. (User-scope Claude MCP servers live in the default `~/.claude.json` and stay on the default account.)
4. Open **Workspace settings › Accounts** on any workspace (local or paired) and pick **Computer default** or a specific account per CLI. Every new pane, crew member, **Clear**, **Clear + recent**, and handoff in that workspace uses its chosen account.
5. When a Standard pane hits a usage limit and another signed-in account of that CLI has at least **10%** left on its tightest window, the limit card shows when each account resets and offers **Move `<workspace>` to `<account>`** or **Wait for the reset**. CmdBrief never switches workspaces automatically; moving applies only to that workspace and carries on the stalled turn.

For **Antigravity CLI**, its row in **Setup** (locally and on paired computers) includes **Switch account…**, which signs out and opens sign-in for another account after you confirm. On any computer, changing the computer default moves running Standard agents as each turn ends while skipping workspaces that chose an explicit account; terminal agents stay on the account they started with. See [Connect your 7 coding agent CLIs](https://cmdbrief.com/guides/connect-agent-clis) for installing and enabling each CLI.

**Check it worked**

| Where | Run or do | Pass |
| --- | --- | --- |
| Standard pane header | Check the model line when a CLI has two or more accounts | The pane names the exact account backing that session, and idle accounts show dimmed rings beside the active one in the sidebar. |

## Auto-continue after limit resets and Access pause

**Step 2 of 3 · You do this** (Stage pane banner & Limits & pace)

- **Auto-continue after limit reset:** supported on **Claude Code**, **Codex**, and **Antigravity CLI** Standard panes. Armed panes display a live **Auto-resumes in** countdown above the chat box and resume automatically once the window resets. For **Codex** and **Antigravity CLI**, a held pane also continues as soon as a fresh reading shows headroom (for example after switching accounts); Claude panes wait for their reset timestamp. If context is large or cold when the limit clears, the review card lets you choose **Start fresh** (Clear + recent), **Resume full**, or **Compact now**.
- **Access pause on 401/403 or sign-out:** when a provider refuses calls (such as a Cloudflare 403, an HTTP 401, or an expired sign-in), every Standard pane on that `(provider, account)` pauses cleanly instead of failing its turn, under one banner strip across the panes.
- **Automatic backoff & staggered resume:** CmdBrief asks the CLI’s own status command whether the account is signed out or blocked (never reading tokens or making network calls of its own), probes recovery with the first paused agent’s message at **30 s, 60 s, 120 s, then every 5 minutes**, and resumes remaining paused agents **5 seconds apart** once calls succeed so a burst does not re-trigger the block. Under headless `cmdbrief serve`, access pauses surface as host requests to your paired computers and chat apps.

> **Tip:** On a headless Linux server, you can check or tune idle account polling and alert settings from your terminal with `cmdbrief settings` (see the [CmdBrief CLI reference](https://cmdbrief.com/guides/cmdbrief-cli-reference)).

## Cold-cache protection and Clear + recent

**Step 3 of 3 · You do this** (Settings › Agents › Conversations & pane Session menu)

When a long Standard conversation sits idle past its prompt-cache lifetime (5 minutes by default; configurable per CLI under **Settings › Usage & cost** for Claude, Codex, and Antigravity), sending a new message re-reads the entire history at full input cost plus cache-write cost.

1. When you press Enter on a cold conversation, CmdBrief holds the message and opens **The cache has gone cold**, showing both estimates side by side — for example, re-reading ~1.0M tokens versus **Clear + recent** sending ~30k tokens (suggested automatically from 200k expired tokens upward).
2. Choose **Clear + recent** (or **Start fresh**) to start a fresh session in the **same pane** with the same agent, model, and effort, seeded with CmdBrief’s bounded excerpt of recent messages (32 KiB prompt target; 16 KiB for leads) plus your held message. Your old conversation remains intact in **History** above a clear cut line, and the pane keeps its ID, lead role, crew, active run, and unread `fyi` messages.
3. Tick **Remember my choice** before clicking **Start fresh** or **Send anyway** (or configure **Settings › Agents › Conversations › When the cache has gone cold**: **Ask**, **Start fresh**, or **Send anyway**). Even with a saved choice, CmdBrief still asks if there are no recent messages to carry over or if the held item is a permission reply.
4. Trigger **Session › Clear + recent** manually at any time from any pane’s menu, or enable **Settings › Agents › Conversations › Automatic Clear + recent**. As of v0.5.102 (see the [changelog](https://cmdbrief.com/changelog)), crew members receiving a brand-new task after finishing their previous one while holding 64k+ tokens also start fresh automatically with recent messages kept.

Explore how [Features](https://cmdbrief.com/features) pairs usage tracking with Analytics › Efficiency to compare model choices and run pace.

**Check it worked**

| Where | Run or do | Pass |
| --- | --- | --- |
| Settings › Agents › Conversations | Verify **When the cache has gone cold** and **Settings › Usage & cost** cache lifetimes | Cold conversations show the token comparison before re-reading, and **Clear + recent** preserves the lead/crew identity above a history cut line. |

## If it fails

| What it says | Fix |
| --- | --- |
| Cursor CLI shows no row in Agent limits even though you use Cursor | **You:** CmdBrief reads only the **Cursor CLI’s** own credential (`auth.json` or `cursor-access-token` on macOS), never the Cursor editor’s `state.vscdb`. Sign in with the Cursor CLI itself. |
| Typing `opencode` in a terminal uses the default account instead of the workspace pick | OpenCode 2’s shared service ignores `OPENCODE_DB`. Standard panes start an isolated `opencode serve` per account; terminal `opencode` always uses the default account. |
| DeepSeek balance row is missing after adding an API key | **You:** Open **Settings › Usage & cost › Prepaid balances** and check **Status**. A rejected key looks like no key to the sidebar; Status is where endpoint refusals are displayed. |
| Extra Claude account is missing user-scope MCP servers | User-scope Claude MCP servers live in the default `~/.claude.json` and are not copied to extra account folders. Add them inside that account or at project scope. |
| An approval reply still opens the cold-cache box even though “Start fresh” is saved | Expected by design: permission replies and empty-history panes always prompt before acting. |

## Questions

### Does CmdBrief copy my CLI account sign-ins to paired computers?

No. Account folders (`~/.claude`, `~/.codex`, and `<app support>/accounts/`) stay strictly on the computer where you signed in. You can trigger a CLI login or paste an OpenCode Go key on a paired computer from its Setup › Accounts sheet without ever copying credentials from your Mac.

### Does Clear + recent use an LLM to summarize my conversation?

No. Clear + recent builds a deterministic bounded excerpt of your recent messages, current guide, plan, and latest status (32 KiB target, 16 KiB for leads) so it costs zero extra summarization calls and preserves exact wording.

### How does CmdBrief check usage on idle Claude accounts without burning tokens?

For idle Claude accounts, CmdBrief runs `claude -p /usage --safe-mode --no-session-persistence` against that account’s folder on your configured cadence (every 15 minutes, hourly, or only when the pane opens). It is a local CLI command with no model call and zero token spend.

### Which CLIs support automatic continuation after a usage limit resets?

Auto-continue supports Standard panes running Claude Code, Codex, and Antigravity CLI.

## Primary sources

Provider terms and product behavior can change. Confirm plan, pricing, model, and permission details in the current official documentation.

- [Anthropic: Prompt caching](https://docs.anthropic.com/en/docs/build-with-claude/prompt-caching)
- [Anthropic: Claude Code documentation](https://docs.anthropic.com/en/docs/claude-code/overview)
- [OpenAI Codex CLI](https://github.com/openai/codex)
- [DeepSeek API documentation](https://api-docs.deepseek.com/)

## Keep reading

- Setup and safety: [Connect your 7 coding agent CLIs in CmdBrief](https://cmdbrief.com/guides/connect-agent-clis)
- Usage and plans: [Claude Code Usage Limits: Check, Reset & Fix](https://cmdbrief.com/guides/claude-code-usage-limits)
- Usage and plans: [Claude Max vs Pro & Ultra (2026): Limits & Cost](https://cmdbrief.com/guides/claude-max-vs-pro)
- Usage and plans: [AI coding subscription audit: what to keep, downgrade or cancel](https://cmdbrief.com/guides/ai-subscription-audit)
- Workflows: [Set up Routines, Goal mode, and Autopilot](https://cmdbrief.com/guides/routines-goal-mode-and-autopilot)

---

Markdown mirror of https://cmdbrief.com/guides/multiple-accounts-and-usage-limits, generated at build time from the same data the HTML page renders. Machine-readable index: https://cmdbrief.com/llms.txt
