Skip to content

Show token usage / remaining tokens for the current session #29058

@NullLabTests

Description

@NullLabTests

Problem

There's no way to see how many tokens have been used or how many remain in the current session/billing cycle. Users have to check their provider's external dashboard to track usage.

Feature Request

Add a way to see token usage, such as:

  • A /usage command that shows tokens used and remaining for the session/day
  • A subtle counter in the TUI status bar
  • A warning when approaching usage limits

This is especially important for users on usage-based billing who want to avoid unexpected overages or hitting limits mid-session.

Additional Context

Currently opencode shows the model name but no usage metrics. Many users don't know where to check their consumption until they get cut off.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions