Accounts and usage
AgentDuo uses your own Claude Code and Codex sign-ins. /usage and the Account & Usage views show each agent’s account and how much of its plan’s limits it has used, read from the CLIs themselves, without a model call.
On this page
Your accounts, not AgentDuo’s
- AgentDuo includes no subscription and no API credit, and holds no credential. Each CLI signs in its own way:
claudethen/login, andcodex login. - Every agent call counts against that CLI’s plan or API key, as if you had run the CLI yourself.
- The account and limit lookups ask the CLIs on your machine; AgentDuo sends the numbers nowhere else.
Signing in and installing the CLIs: prerequisites.
/usage
In the chat, /usage opens a panel in place of the input, like Claude Code’s own /usage:
- each agent’s account: its plan and email;
- how much of each plan’s limits it has used, with a bar per limit and when it resets;
- then Claude’s “What’s contributing to your limits usage?”.
The panel opens at once and each agent’s part fills in as it answers, in about two seconds (each gets 15 seconds). If one fails, only its part says why. ↑↓ scroll, r looks again, and Esc closes the panel and nothing else: an answer under way goes on. In VS Code, /usage or Usage in the tab’s ⋯ menu opens the same panel above the composer.
Where the numbers come from
| Agent | Account | Limits |
|---|---|---|
| Claude Code | claude auth status (JSON): the plan for a claude.ai login, otherwise how it signs in, and the email | claude -p /usage, which prints Claude Code’s /usage without a model call |
| Codex | account/read | account/rateLimits/read, both asked of codex app-server over JSON-RPC on stdio, as Codex’s IDE extension does, with your -c/--enable/--disable overrides |
Note
Codex’s own /status exists only in its terminal interface, and codex exec "/status" would send the words to the model, so AgentDuo asks the app server instead.
In the desktop app
The sidebar’s Account & Usage box
- At the bottom of the sidebar, above Settings: each agent’s email and its limits, a percent and a thin meter each. The plan and when a limit resets are in tooltips.
- Click its title to fold it; it stays folded.
- It looks the numbers up when the app starts and when you switch project (unless they are a minute old), every 5 minutes while the window shows, after each turn an agent finishes, and on its refresh button. Folded, it looks nothing up.
Settings → Claude & Codex
- A card per CLI: the email it signs in with, its plan, path and version, and its limits with a meter each and when they reset.
- An API key or a cloud provider shows as API instead of an email.
- The limits are looked up when the page opens (unless a minute old), every 5 minutes while it shows, and on Recheck.
A meter turns amber (the warning colour) from 70% and red (the error colour) from 90%. The VS Code extension’s meters use the same thresholds.
In VS Code
The AgentDuo view in the Activity Bar has an Account & Usage view above the conversations: both accounts (plan and email) and a meter per limit with when it resets.
- It looks them up when it shows (again once they are a minute old), on ↻, every 5 minutes while it shows, and after an answer or a run in any tab, at most once a minute. A collapsed or hidden view looks nothing up.
- If one agent cannot say, only its part says why.
- View details opens the tab’s Usage panel, with Claude’s “What’s contributing to your limits usage?”.