You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Read provider usage limits from outside the app (t3 usage --json)
#30978
T3 already probes the usage windows of every provider account it runs (Claude, Codex, Cursor, Antigravity and others), so it is the one place that knows all of them. Menu bar and panel tools could show them without a T3 window open. Examples: SwiftBar or xbar on macOS, a tray icon or Rainmeter skin on Windows, Waybar, Polybar, KDE Plasma or GNOME Shell on Linux. Today such a tool either probes each provider itself, or reads T3's internal WebSocket RPC (server.getConfig with an orchestration:read session), which can change with any release. Probing also runs only while a client holds a foreground lease, so an outside reader has to call server.refreshProviders itself.
Proposal: a read-only t3 usage [--json] [--refresh] subcommand alongside t3 thread show, talking to the running server the same way.
Plain output is a short table for the terminal.
--json prints, for each enabled provider instance, the account, its windows (id, kind, label, usedPercent, resetsAt, windowDurationMins), checkedAt and any unavailable reason, in a documented shape.
--refresh re-probes when the snapshot is older than the normal interval.
A CLI behaves the same on every OS, any widget can run it, and a remote server is reachable with ssh host t3 usage --json. The command would reuse the account aggregation in #28212 (#15137), so the CLI and MCP share one contract.
Out of scope: UI changes, the in-app probing cadence, linked environments, and any bundled widget.
Would you accept a PR in this scope? I can implement it with focused tests. My GNOME Shell extension, T3 AI Usage, would be its first user; today it reads the internal RPC described above.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
T3 already probes the usage windows of every provider account it runs (Claude, Codex, Cursor, Antigravity and others), so it is the one place that knows all of them. Menu bar and panel tools could show them without a T3 window open. Examples: SwiftBar or xbar on macOS, a tray icon or Rainmeter skin on Windows, Waybar, Polybar, KDE Plasma or GNOME Shell on Linux. Today such a tool either probes each provider itself, or reads T3's internal WebSocket RPC (
server.getConfigwith anorchestration:readsession), which can change with any release. Probing also runs only while a client holds a foreground lease, so an outside reader has to callserver.refreshProvidersitself.Proposal: a read-only
t3 usage [--json] [--refresh]subcommand alongsidet3 thread show, talking to the running server the same way.--jsonprints, for each enabled provider instance, the account, its windows (id, kind, label, usedPercent, resetsAt, windowDurationMins), checkedAt and any unavailable reason, in a documented shape.--refreshre-probes when the snapshot is older than the normal interval.A CLI behaves the same on every OS, any widget can run it, and a remote server is reachable with
ssh host t3 usage --json. The command would reuse the account aggregation in #28212 (#15137), so the CLI and MCP share one contract.Out of scope: UI changes, the in-app probing cadence, linked environments, and any bundled widget.
Would you accept a PR in this scope? I can implement it with focused tests. My GNOME Shell extension, T3 AI Usage, would be its first user; today it reads the internal RPC described above.
All reactions