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
feat: Add usage data for Codex (and implement a usage viewer for future providers/models) #673
Purpose: To view provider limits for plans inline within T3code without relying on external services like CodexBar Expected UX: Collapsible usage information on the sidebar
Suggested Prompt
Implement Codex usage display by calling the Codex app-server JSON-RPC method account/rateLimits/read against the active Codex session. Treat the session bucket as rateLimits.primary. Treat the weekly bucket as rateLimits.secondary. Map those buckets into a quota / quotas response for the UI, including percentUsed and resetDate. Label the session bucket from windowDurationMins like Session (5 hrs), and label the second bucket as Weekly. If no active Codex session exists, return { provider: "codex" } with no quota data.
Endpoint / method: account/rateLimits/read
Reacted by Júlio Mühlbauer, Tony Junghans, Phanuwat-Pao, Aashish Singla, Tiago Ribeiro, Zen-Corp UG, Wiktor Golicz and Andrea
The endpoint and data matters more, it could be hidden away as well, but it'd be useful information to have at a glance, especially for lower tiers (like the $20 plan).
A centralized abstraction link with providers could also be useful if this has to be extended to other providers like GitHub Copilot (which includes native support for usage information in the SDK via client.rpc.account.getQuota()), or Cursor.
Reacted by Júlio Mühlbauer, Tony Junghans, Phanuwat-Pao and Aashish Singla
Activity
aaditagrawal commentedon Mar 9, 2026
The endpoint and data matters more, it could be hidden away as well, but it'd be useful information to have at a glance, especially for lower tiers (like the $20 plan).
A centralized abstraction link with providers could also be useful if this has to be extended to other providers like GitHub Copilot (which includes native support for usage information in the SDK via
client.rpc.account.getQuota()), or Cursor.juliusmarminge commentedon Jun 9, 2026
Closing as a duplicate of #228. Both request provider usage/quota visibility in the UI.