GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [FEATURE]: Real-time token generation speed (tok/s) in TUI status bar, like Hermes · Issue #47914 · anomalyco/opencode

[FEATURE]: Real-time token generation speed (tok/s) in TUI status bar, like Hermes #47914

New issue
Copy link
New issue
Copy link
Open
Open
[FEATURE]: Real-time token generation speed (tok/s) in TUI status bar, like Hermes#47914
Copy link
Assignees
simonklee

Description

@phpoh
phpoh
opened on Sep 8, 2026
Issue body actions

Describe the enhancement you want to request

I want opencode to show real-time token generation speed (tok/s, tokens per second) while a response is streaming, like DeepSeek Hermes agent does.

Hermes shows it directly in the status bar, e.g.:

deepseek-v4-flash | 12.5K/128K | 68% | 3m 42s | 15.2 t/s

Reference implementations:

  • https://github.com/maxxqf-ai/hermes-status-bar-tps (adds XX.X t/s to Hermes status bar from completion_tokens / api_duration)
  • feat(agent): per-call output speed (tokens/sec) for desktop status bar and runtime footer NousResearch/hermes-agent#44878 (per-call last_api_duration + last_output_tokens -> output_speed, exposed in CLI status bar / desktop status bar / gateway runtime footer behind display.show_output_speed)

Proposed behavior in opencode

  1. TUI: live rolling tok/s while streaming (in the status line / session footer), plus final per-response average once complete (next to existing token counts).
  2. Desktop / web: same t/s indicator for parity.
  3. Optional session-wide average (e.g. via /stats or footer) for comparing models/providers.
  4. Config toggle, e.g. display.show_output_speed (default off to avoid clutter), and hide when terminal width is too small.

Why

  • Currently there is no way to gauge inference throughput per response or compare models/providers without external benchmarking.
  • Very useful when switching between fast models (e.g. DeepSeek V4 Flash ~80-150 tok/s) and slower frontier models — speed directly affects interactive coding feel.
  • Related open requests: Feature request: show token throughput (tok/s) in the TUI #43857, [FEATURE]: Adding Experimental Calculation and Display of Tokens per second #6096. This issue explicitly proposes the Hermes-style UX (live + per-call average + toggle) as the concrete design.

Alternatives considered

  • Timing requests manually or benchmarking provider APIs directly — does not reflect real usage inside opencode.
  • Only showing total tokens / cost after completion — no sense of live speed.
Reacted by yujing

Activity

  1. github-actions
    assigned
    simonklee
    on Sep 8, 2026
  2. github-actions commented on Sep 8, 2026

    @github-actions
    github-actionsBot
    on Sep 8, 2026 – with GitHub Actions
    Contributor
    More actions

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

    • Feature request: show token throughput (tok/s) in the TUI #43857: Feature request to show tok/s in the TUI status line/session footer — nearly identical request
    • [FEATURE]: show tokens / second #5374: [FEATURE]: show tokens / second — same core ask of displaying tokens-per-second for model comparison

    Consider adding your thoughts and +1 to those issues rather than opening a new one.

  3. differs commented on Sep 9, 2026

    @differs
    differs
    on Sep 9, 2026
    More actions

    Implementation notes from a hands-on attempt (opencode 1.18.29, Linux)

    Third-party code currently has no supported way to render any of this, which is worth capturing in the design:

    1. No config/env toggle exists today for a live tok/s indicator.
    2. @opencode-ai/plugin/tui advertises a slot/statusline host (TuiSlotMap incl. home_footer, session_prompt_right, app_bottom; api.slots.register, api.event.on), but the runtime does not deliver it: an auto-discovered plugin exporting tui is invoked with the server PluginInput and api.slots / api.event are undefined.
    3. The only rendering-ish control available to plugins, client.tui.showToast, neither resolves nor draws when called from a plugin (awaits forever; no toast appears).
    4. Streaming events carry only cumulative part.text (message.part.updated); real tokens.output arrives only on the final message.updated. For an accurate live rate, expose a per-message.part.delta token delta + timestamp (most providers stream usage; opencode currently drops it).

    A minimal stop-gap for headless/scripted use (live ⇣ N tok/s + exact final average, calibrated on provider usage) is oc-meter — source shown in the now-duplicate #48067 and mirrored in the meter described there. Happy to turn it into a PR against whatever statusline surface wins here.

  4. Tarquinen
    marked Feature request: show live tokens/sec (output speed) in TUI and Desktop app #50000 as a duplicate of this issue on Oct 20, 2026
  5. opencodejr commented on Oct 28, 2026

    @opencodejr
    opencodejrBot
    on Oct 28, 2026
    Contributor
    More actions

    Thanks for the detailed request and the Hermes references!

    You're asking for a live tok/s figure while a response streams, a session-wide average for comparing models and providers, desktop/web parity and a display toggle.

    Part of this is already in v2. The TUI shows each response's average throughput in the assistant message footer (e.g. Build · model · 4.0s · 20.0 tok/s). The session.tps setting turns it on or off, and it is on by default. If you don't see it, update with npm i -g @opencode/cli@latest.

    The live rolling speed in the status line and the session-wide average aren't there yet. Maintainers will consider them.

    Related issues:

    • [FEATURE]: tokens-per-second in the desktop app (context usage indicator) #49380: tokens-per-second in the desktop app (open; covers the desktop/web part)
    • Feature request: show token throughput (tok/s) in the TUI #43857: tok/s in the TUI (closed; the per-response footer figure)
    • [FEATURE]: Show live input/output token counts and rolling TPS in the footer #29909: live token counts and rolling TPS in the footer (closed as not planned)
    • tui: Add a per-assistant-message footer slot to the TUI plugin API #46268: per-assistant-message footer slot for TUI plugins (would let a plugin add this)
    • [FEATURE]: Show average TPS in TUI status bar #22344, [FEATURE]: Token Per Second(TPS) being displayed in the assistant footer and sidebar #21132, [FEATURE]: Adding Experimental Calculation and Display of Tokens per second #6096, [FEATURE]: show tokens / second #5374: earlier TPS display requests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @simonklee
    simonklee

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

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.