Open History to see the last commit
1# Usage and limits
2
3Open **Usage** from the sidebar or the command palette, or press `mod+u` on web and
4desktop when the terminal is not focused. Customize `usage.open` in
5**Settings → Keybindings**.
6
7## Understand your usage
8
9**Usage** combines Codex, Claude Code, and Grok Build session history from your connected
10environments. It shows token use, cache savings, model breakdowns, and estimated API-equivalent
11cost. These estimates are not your subscription bill.
12
13Totals depend on the history available on each server. Grok turns without a saved completed-turn
14record are missing from the totals.
15
16Usage includes each configured account's history, including disabled accounts. Custom homes follow
17the account's home setting or its `CODEX_HOME`, `CLAUDE_CONFIG_DIR`, or `GROK_HOME` environment
18variable. Use absolute paths or `~/` paths in the account's environment settings; relative
19environment paths depend on each project's working directory and cannot be reliably discovered
20by Usage. Accounts sharing a history directory count once.
21
22On web and desktop, use the environment dropdown to filter costs, tokens, and limits. All
23environments are selected by default. The dropdown shows which environments are still scanning;
24results appear as each one responds.
25
26If recent work is missing or a new model shows no cost, refresh to rescan session history and
27update model pricing.
28
29## Set custom model prices
30
31On web or desktop, open the environment dropdown on **Usage**, then choose **Model prices** to add,
32edit, or reset a model's estimated price. **Apply to** starts with your current Usage filter;
33choose all environments or select individual destinations. Enter the exact model ID and USD
34rates per million input and output tokens. You can enter any model ID, including models
35without public pricing.
36
37Cache read and cache write rates are optional and use the input rate when blank. Enter `0` for
38tokens that are free. Saved prices replace automatic pricing for all of that environment's
39history and are shared with clients connected to it. When environments have different prices,
40cells show **Mixed**. Edit rates directly in the table, then choose **Save changes** to apply all
41edited rows. Untouched cells keep each environment's rate. Select one environment to inspect its
42prices. **Reset to automatic** marks a model's override for removal when you save; you can undo
43it before saving.
44
45Each destination reports whether the change saved. Offline or unavailable environments are
46marked **Not saved**. Reconnect them and choose **Retry failed saves** to finish the same change
47without writing again to environments that already saved. Changes are not queued after you close
48the dialog.
49
50## Track subscription limits
51
52**Usage → Limits** pools every subscription account it can see per provider, so with several Codex
53or Claude accounts across your environments and hubs you read one number per window rather than a
54list. Each window card shows how much of the pool is left and a bar with one segment per account,
55kept in the same column across windows. Accounts are ordered by their 5-hour reset, soonest
56first, or by the first available window when no account reports a 5-hour limit. A gap means the
57account does not report that window. When the provider reports reset times, the card also says
58when the next reset lands and how much it hands back. The hatched
59part of a segment is what that reset restores. Tap a segment or account row for the account's plan,
60where it is signed in, and its reset time. On web, you can hover too. Codex and Claude accounts
61with banked reset credits show a ticket count and the **Use reset** action in the account details.
62Claude resets are not available when the server runs on macOS, where Claude keeps its login in the
63Keychain. On narrow screens, numbered rows below
64the bar show each account's quota, countdown, and credits. Tap a row to open its details.
65
66The same account signed in on more than one environment, or reported by a hub as well, counts once.
67Filter with the environment dropdown to see what a single machine has.
68
69Opening Limits checks the selected connected environments automatically. Each client waits at
70least five minutes between automatic checks of an environment, including after a failed check.
71If a window still looks stale, refresh Limits to re-check every provider and hub.
72
73Pick `/usage-limits` from the composer's command menu, or send it as a message, to check the
74current model's limits without leaving the conversation. The result opens above the composer and
75closes when you dismiss it or send your next message. It uses the same snapshot as **Usage → Limits**, so it does not run the agent or refresh
76anything. The command is offered only for providers that appear under **Usage → Limits**.
77
78OpenCode Go reports its session, weekly, and monthly allowance when OpenCode runs locally in
79the environment. T3 cannot report limits for external OpenCode servers because their credentials
80belong to the remote server. Cursor reports
81its monthly allowance, including separate Auto and API usage, using a file-based CLI login or
82`CURSOR_AUTH_TOKEN`. Cursor's default macOS keychain login does not currently report limits.
83On macOS, use `AGENT_CLI_CREDENTIAL_STORE=file` when signing in and in the provider's environment
84to use a file-based login.
85
86Grok reports the remaining subscription allowance and reset time for its current billing period
87after signing in with `grok login`. Explicit `XAI_API_KEY` connections and custom authentication
88or endpoint configurations do not report subscription limits.
89
90API-key accounts may not report subscription limits. This also applies to Claude connections
91using a proxy through `ANTHROPIC_AUTH_TOKEN`.
92
93## Connect a CLIProxyAPI hub
94
95To see pooled accounts, open **Settings → Providers → Usage providers → Add hub**. Choose the
96environment that will connect to the hub and enter its URL and management key.
97
98The accounts appear under **Usage → Limits**. Codex accounts show banked reset credits; select an
99account and choose **Use reset** to redeem one. No hub plugin is required.
100
101This connection supplies usage information; configure
102the provider separately to send agent requests through the hub. Remove the hub from the same
103settings section when you no longer need it.
104
105## Subscription usage widget
106
107Add **Subscription usage** from your iOS or Android widget gallery to see remaining Codex and
108Claude quotas. Tap it to open **Usage → Limits**. On iOS, use **Edit Widget** to choose Session,
109Weekly, or both for each provider. Reopen T3 to refresh expired readings. The Android widget
110requires Android 12L or later.