Open History to see the last commit
1# Usage and limits
2
3Track token usage, cache hit rates, estimated API-equivalent costs, and pooled subscription quotas across all connected environments.
4
5- **Open Usage**: Click **Usage** in the sidebar, press `mod+u` (web/desktop outside terminals), or pick **Usage** on mobile.
6- **Quick shortcuts** (web/desktop on Usage): `C` (Cost), `T` (Tokens), `L` (Limits), `mod+Shift+1/2/3/4` (24h / 7d / 30d / 90d), `Esc` (back).
7
8## Understand your usage
9
10Usage aggregates history across Codex, Claude Code, Grok Build, OpenCode, Antigravity, Pi, Muse Code, and Cursor 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.
11
12- **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).
13- **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.
14- **Exclusions**: Codex and Claude Code 2.0.63+ text-generation runs (titles, commits, PR text, review guides) and Grok turns without a saved completed-turn record are not included.
15
16## Custom model prices and filtering
17
18- **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.
19- **Filter models**: Add `usageModelFilter` to `<t3-home>/userdata/settings.json` (applied before **Map to**):
20
21```json
22{
23 "usageModelFilter": {
24 "include": [{ "provider": "claude", "model": "orbit-1" }, { "model": "orbit-2" }],
25 "exclude": [{ "model": "drift-9" }]
26 }
27}
28```
29
30## Subscription limits
31
32**Usage → Limits** pools subscription quotas per provider across connected environments and hubs (deduplicating the same account signed in on multiple machines).
33
34- **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).
35- **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).
36- **Provider notes**:
37 - **OpenCode**: Reports OpenCode Go / Console API-key quotas for local servers (`OPENCODE_API_KEY`).
38 - **Cursor**: Reports monthly Auto + API quotas via `CURSOR_AUTH_TOKEN` or default-endpoint sign-in/`CURSOR_API_KEY`.
39 - **Grok**: Reports billing-period quotas for `grok login` (not `XAI_API_KEY`).
40 - **Muse Code**: Reports session/weekly limits after running in a thread (not persisted across restarts).
41 - Pure API-key accounts generally do not report subscription limits.
42- **Mobile widget**: Add the **Subscription usage** widget on iOS or Android to monitor Codex and Claude quotas from your home screen.
43
44## Connect a CLIProxyAPI hub
45
46Open **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.
47
48## Connect an HTTP quota source
49
50Open **Settings → Providers → Usage providers → Add HTTP source** with a GET endpoint (and optional bearer token) returning:
51
52```json
53{
54 "version": 1,
55 "accounts": [
56 {
57 "id": "primary",
58 "label": "My coding plan",
59 "providerInstanceId": "work-codex",
60 "windows": [
61 {
62 "id": "monthly",
63 "kind": "monthly",
64 "label": "Monthly budget",
65 "usedPercent": 35,
66 "resetsAt": "2026-12-01T00:00:00Z"
67 }
68 ]
69 }
70 ]
71}
72```
73
74`kind` is `session`, `weekly`, `monthly`, or `other`. Setting `providerInstanceId` binds the quota windows to that instance's thread details card.