Skip to content

feat: Add usage data for Codex (and implement a usage viewer for future providers/models) #673

Closed as not planned

Description

@aaditagrawal

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

Image

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

Activity

  1. aaditagrawal commented on Mar 9, 2026

    @aaditagrawal
    ContributorAuthor

    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.

  2. added
    duplicate
    on Jun 9, 2026
  3. juliusmarminge commented on Jun 9, 2026

    @juliusmarminge
    Member

    Closing as a duplicate of #228. Both request provider usage/quota visibility in the UI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    duplicate

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions