Skip to content

[FEATURE]: Add \usage command in OpenCode CLI #29634

Closed

Description

@bibekgupta3333

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

You can suggest it like this:

Please add a built-in command like:

\usage

That shows realtime usage statistics directly inside the CLI.

Suggested output:

- Current 5-hour usage
- Weekly usage
- Monthly usage
- Remaining quota
- Token usage
- Estimated cost
- Usage by model
- Reset timers

Example:

> \usage

5-Hour Usage:   $8.20 / $12
Weekly Usage:  $18.40 / $30
Monthly Usage: $41.00 / $60

Top Models:
- Qwen3.5 Plus: 32 requests
- GLM-5.1: 10 requests
- DeepSeek V4: 4 requests

Remaining:
- 5-hour reset in: 1h 22m
- Weekly reset in: 3d 4h

Optional useful commands:

\usage today
\usage week
\usage month
\usage models
\usage export

Also useful:

  • warning at 80% usage
  • live token streaming counter
  • session-level usage tracking
  • per-agent usage tracking for multi-agent workflows
  • TUI dashboard mode

Activity

  1. github-actions commented on May 27, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    These issues collectively cover the core of what is being requested here. Please review them and consider whether this request adds anything new beyond what is already tracked there.

  2. bibekgupta3333 commented on May 28, 2026

    @bibekgupta3333
    Author

    Looks like duplicate ticket.

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions