Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat: add usage / quota visibility for Codex sessions and accounts #228

ClosedFanzzzd(GitHub profile, opens in a new tab) opened this issue 18 comments

I’d like T3 Code to surface usage information so users can better understand cost/rate-limit consumption while working.

Why

For long-running coding sessions it is hard to tell:

  • how much usage a thread consumed
  • whether the current account is close to rate limits
  • whether a model/service-tier choice is still appropriate

Requested scope

  • Show per-thread or per-turn token usage when available.
  • Show account-level rate limit / credits / quota information when available from the provider.
  • Add a lightweight usage summary in the UI, ideally without overwhelming the chat view.

Suggested UX

  • Thread-level token usage near the thread/session metadata
  • Account usage summary in sidebar or settings/account area
  • Refresh or auto-update on relevant provider events

Suggested acceptance criteria

  • Users can inspect current thread/session usage without opening logs.
  • Users can inspect account-level quota or rate-limit status when the provider exposes it.
  • The UI degrades gracefully when the provider does not expose usage data.

Relevant code context

  • apps/server/src/codexAppServerManager.ts
  • apps/server/src/provider/Layers/CodexAdapter.ts
  • apps/web/src/components/ChatView.tsx

Reference implementation ideas

  • CodexMonitor exposes local usage snapshots, thread token usage, and account rate-limit views.
  • Codex app-server events include account and token-usage style notifications that look relevant to this problem.
  1. maria-rcks added labelsenhancement

  2. Not planned at this time. If yall have any examples of similar open sources apps doing it well, share them here.

  3. maria-rcks added labelswontfix

  4. nassimna(GitHub profile, opens in a new tab)commented

    This is important, and every app should have this since it's important to switch threads every time you reach the window context limit, because most of the models lose accuracy after compact the best example is codex and every CLI

  5. @nassimna im mainly talking about usage visibility, sorry for not being clear on my previous message

  6. A pie chart, similar to what GitHub Copilot uses, might fit well with the current UI of T3 Code.

    Image

  7. Aditya190803(GitHub profile, opens in a new tab)commented

    @Fanzzzd @maria-rcks

    I’ve implemented this for Codex and I’m planning to open a PR. It looks like an L-XL sized change, and I’ve attached screenshots for context.

    I should mention I’m currently unvouched, so please let me know if that affects whether you’d like me to open the PR.

    This is the settings panel: Image

    This is the ContextWindowMeter: Image

  8. I don't think we need to expose it in the chat view, it just feels awkward to have it when you hover a gauge which shows 35 to see aa completely unrelated percentage for a completely unrelated metric.

    but i do think we could expose it under the provider view. UI there could probably use a little work to expose both the session and weekly limits. and we should do it for claude as well!

    if ur up for it i can review the pr

  9. juliusmarminge removed labelswontfix

  10. Sure, I can take that on.

    Could you clarify what you mean by session limits? Are you referring to the context window or something else. @juliusmarminge

  11. both codex and claude have 2 buckets, one burst (often referred to as session limit) and one weekly

    Image Image
  12. Hey @juliusmarminge — I’ve opened a PR for this here: https://github.com/pingdotgg/t3code/pull/1605

    Could you check it out when you get a chance?

  13. Why not show it in the model picker, similar to how the Codex App does it?

  14. What is the status on this?

  15. Aditya190803(GitHub profile, opens in a new tab)commented

    The PR is open and ready to be merged It just needs approval from Julius. He will review it after returning from Miami.

  16. Looking forward to this, as I use this feature in claude code web quite a bit. Image

    Note the fields seem to change quite a bit as features change. For example, today there is a weekly Fable allowance on my subscription. But next week that may not exist.

  17. +1 on wanting this, and some additional user perspective:

    On Claude Max ($100) and GPT Plus ($20), I have a pretty good feel for how much I can get done, but I still end up checking pretty frequently, especially as I get closer to the limit. I can imagine the GPT $100+ and Claude Max 5x plans hardly ever feeling the need to check this, but here on these lower plans I definitely feel the need to keep a closer eye on it. In Settings->Providers would be better than nothing, but ideally it's visible in the chat interface, and I kinda dig the context window one Aditya showed ... perhaps a setting?

    Related - this is especially desirable as an extra data point as currently the sessions kinda just stay in limbo with no indication as to why when usage runs out

    @Aditya190803 glad to help if you need anything

  18. @juliusmarminge If I may be so bold ^. Will be keeping a close eye to respond quickly to any feedback/etc provided y'all don't have any blocking objections. Scoped to Claude/Codex only as those are more straightforward and I'd have to guess the main two providers used

  19. Anyone working one this? Much needed feature

  20. Image

    What do you think!

  21. May consider using Codexbar cli for this https://github.com/steipete/CodexBar/blob/main/docs/cli.md

    I have been using it a bit as it seems to be a good abstraction to fetch quotas across providers.

Sign in to join this conversation.