docs/user/usage.md

Usage and limits

Track token usage, cache hit rates, estimated API-equivalent costs, and pooled subscription quotas across all connected environments.

  • Open Usage: Click Usage in the sidebar, press mod+u (web/desktop outside terminals), or pick Usage on mobile.
  • Quick shortcuts (web/desktop on Usage): C (Cost), T (Tokens), L (Limits), mod+Shift+1/2/3/4 (24h / 7d / 30d / 90d), Esc (back).

Understand your usage

Usage aggregates history across Codex, Claude Code, Grok Build, OpenCode, Antigravity, Pi, and Muse Code from your selected environments. Estimates reflect API-equivalent rates (not your subscription bill); Premium shows Fast/Ultrafast surcharge, and Other shows unsplit provider-reported costs.

  • Usage access: T3 Code reads an agent's local history only for agents you have turned on and allowed. The first time you open Usage, it asks which agents to include; change your answer per agent in Settings → Providers → Usage access (web/desktop). Grok Build and OpenCode Go limits, Claude reset credits, and matching Claude limits to your account read the agent's sign-in, so they also wait for this permission.
  • Retention: Servers keep scanned usage history for 92 days by default (preserving Claude history after Claude's 30-day cleanup). Change usageHistoryRetentionDays in <t3-home>/userdata/settings.json (e.g. 365 or "unlimited"; views show up to 90 days).
  • Legacy Grok Build ACP: Usage history stays visible for instances previously granted usage access.
  • Custom data directories: Honors CODEX_HOME, CLAUDE_CONFIG_DIR, GROK_HOME, PI_CODING_AGENT_DIR / PI_CODING_AGENT_SESSION_DIR, OPENCODE_DATA_DIR, ANTIGRAVITY_DATA_DIR, and XDG_DATA_HOME (Muse). Use absolute or ~/ paths. Set T3CODE_HOST_ID to pin a container's host identity.
  • Exclusions: Codex and Claude Code 2.0.63+ text-generation runs (titles, commits, PR text, review guides) are not included.

Custom model prices and filtering

  • Custom prices & model mapping: Open the environment dropdown on Usage → Model prices (or click Set price on an unpriced model) to set USD per million input/output/cache tokens, or set Map to to merge a preview/alias model ID into a target model's totals.
  • Filter models: Add usageModelFilter to <t3-home>/userdata/settings.json (applied before Map to):
json
1{
2 "usageModelFilter": {
3 "include": [{ "provider": "claude", "model": "orbit-1" }, { "model": "orbit-2" }],
4 "exclude": [{ "model": "drift-9" }]
5 }
6}

Subscription limits

Usage → Limits pools subscription quotas per provider across connected environments and hubs (deduplicating the same account signed in on multiple machines).

  • In chat: Run /usage-limits in the composer to view the current model's snapshot without running the agent, or enable Settings → Appearance → Thread details → Usage limits (web/desktop). Drag the grip at an item's left edge to move it on the thread details card.
  • Reset credits: Click an account segment/row to inspect plan details and redeem banked Codex/Claude reset credits via Use reset (Claude resets unavailable on macOS Keychain logins).
  • Provider notes:
    • OpenCode: OpenCode 2 servers with usage reporting show Go allowances and Console budgets for the connected workspace. Local servers can also report Go usage from a Go API key (OPENCODE_API_KEY).
    • Grok Build: Reports monthly Auto + API quotas via CURSOR_AUTH_TOKEN or default-endpoint sign-in/CURSOR_API_KEY.
    • Muse Code: Reports session/weekly limits after running in a thread (not persisted across restarts).
    • Pure API-key accounts generally do not report subscription limits.
  • Mobile widget: Add the Subscription usage widget on iOS or Android to monitor Codex and Claude quotas from your home screen.

Connect a CLIProxyAPI hub

Open Settings → Providers → Usage providers → Add hub, choose the environment, and enter the hub URL and management key. Pools Codex, Claude, and Grok accounts under Usage → Limits (including Codex Use reset). Configure the provider's endpoint to the same URL if you want threads to display that hub's limits.

Connect an HTTP quota source

Open Settings → Providers → Usage providers → Add HTTP source with a GET endpoint (and optional bearer token) returning:

json
1{
2 "version": 1,
3 "accounts": [
4 {
5 "id": "primary",
6 "label": "My coding plan",
7 "providerInstanceId": "work-codex",
8 "windows": [
9 {
10 "id": "monthly",
11 "kind": "monthly",
12 "label": "Monthly budget",
13 "usedPercent": 35,
14 "resetsAt": "2026-12-01T00:00:00Z"
15 }
16 ]
17 }
18 ]
19}

kind is session, weekly, monthly, or other. Setting providerInstanceId binds the quota windows to that instance's thread details card.