tmux::accounts::add
Add a Claude Code account: a config folder of its own (CLAUDE_CONFIG_DIR) under the accounts folder, sharing with ~/.claude what `shared` names (settings, extensions, plugins, conversations; all of them by default) through links. It starts signed out: tmux::accounts::login_start signs it in.
- colorstringrequired
`blue`, `green`, `violet`, `orange` or `pink`.
- namestringrequired
What people call it, e.g. `Personal`; its id is made from it.
- sharedstring[]
What it shares with ~/.claude: `settings` (settings.json, CLAUDE.md, keybindings.json), `extensions` (skills, agents, commands, output styles), `plugins` (plugins, and a copy of the MCP servers), `conversations` (projects, history, todos, plans). Default: all four.
- accountobjectrequired
A Claude Code account (agent-accounts G1, G2): one sign-in, kept in the global slot while it is global and in its own folder otherwise.
- colorstringrequired
`blue`, `green`, `violet`, `orange` or `pink`.
- dirstringrequired
Its folder, absolute: `<accounts root>/<id>`. Without `accounts.json`, the one account (`default`) has none, and this is `~/.claude`.
- dir_displaystringrequired
Its folder with `~` for the home folder.
- emailstring
The signed-in email.
- idstringrequired
`default` for the sign-in `~/.claude` had when accounts began, else a slug of its first name.
- is_defaultbooleanrequired
Its id is `default`.
- namestringrequired
The name people gave it.
- organizationstring
The organization it belongs to.
- panesinteger· uint32requiredmin 0
Claude Code panes using it now (for the global account, every pane on the slot, its followers included).
- planstring
`pro`, `max`, `team`, `enterprise` or what Claude Code recorded.
- sharedstring[]required
The groups its folder shares with `~/.claude`: `settings`, `extensions`, `plugins`, `conversations`.
- signed_inbooleanrequired
It holds a Claude sign-in.
- tierstring
The rate-limit tier, e.g. `default_claude_max_20x`.
- token_expiredbooleanrequired
Its access token expired. Claude Code renews it when it runs there, and so does the worker when `tmux::accounts::credential` asks for it.
- usageany of
The latest usage reading.
any of (2)Variant 1- as_of_msinteger· uint64requiredmin 0
When this reading was taken.
- errorstring
Why the latest attempt to read failed: `rate_limited`, `unauthorized`, `network`, `token_expired`, `not_signed_in`, `unreadable`. The windows are then the last good reading, if any.
- extraany of
Usage beyond the plan.
Show 2 nestedHide nested
any of (2)Variant 1- enabledbooleanrequired
Extra usage is turned on for the account.
- used_percentnumber· double
How much of its monthly limit is used, 0 to 100, when there is one.
Variant 2valuenull - five_hourany of
The current 5-hour window.
Show 2 nestedHide nested
any of (2)Variant 1- reset_since_readboolean
The window reset after the reading, so `used_percent` is 0 until the next reading.
- resets_at_msinteger· uint64min 0
When the window starts again.
- used_percentnumber· doublerequired
How much of the window is used, 0 to 100.
Variant 2valuenull - weekany of
The week, all models.
Show 2 nestedHide nested
any of (2)Variant 1- reset_since_readboolean
The window reset after the reading, so `used_percent` is 0 until the next reading.
- resets_at_msinteger· uint64min 0
When the window starts again.
- used_percentnumber· doublerequired
How much of the window is used, 0 to 100.
Variant 2valuenull - week_modelsobject[]
Every per-model weekly window the account has, Opus and Sonnet included.
Show 2 nestedHide nested
- limitall ofrequired
The window.
Show 1 nestedHide nested
all of (1)Variant 1- reset_since_readboolean
The window reset after the reading, so `used_percent` is 0 until the next reading.
- resets_at_msinteger· uint64min 0
When the window starts again.
- used_percentnumber· doublerequired
How much of the window is used, 0 to 100.
- namestringrequired
The model's display name, e.g. `Opus`.
- week_opusany of
The week, Opus only.
Show 2 nestedHide nested
any of (2)Variant 1- reset_since_readboolean
The window reset after the reading, so `used_percent` is 0 until the next reading.
- resets_at_msinteger· uint64min 0
When the window starts again.
- used_percentnumber· doublerequired
How much of the window is used, 0 to 100.
Variant 2valuenull - week_sonnetany of
The week, Sonnet only.
Show 2 nestedHide nested
any of (2)Variant 1- reset_since_readboolean
The window reset after the reading, so `used_percent` is 0 until the next reading.
- resets_at_msinteger· uint64min 0
When the window starts again.
- used_percentnumber· doublerequired
How much of the window is used, 0 to 100.
Variant 2valuenull
Variant 2valuenull