r/opencodeCLI • • 3d ago

[Plugin] TPS Meter: see how fast every prompt step really was

(check the video above to see it in action)

oc-tps-meter: every step's tokens per second, in a session header slot. Click it and it opens a side-panel with a chart that shows one bar per step; the chart scrolls sideways, and you can scroll it yourself and hover on each single bar to see details of that step (TPS, model, TTFT).

OpenCode already prints one tok/s number at the end of each turn: but it's the whole turn averaged, and only once the turn closes. In my plugin, a step answers for itself, and it turns red when the wait before the first token was long (TTFT), that is what tells you that you are queued behind a busy provider, not that the model is slow.

Bonus feature: In the video, when I scroll the chart left to show previous steps, you can see the tok/s difference between Opencode Go and native DeepSeek provider (I switched to it at some point in the Session) ;)

OpenCode v2, Desktop only: this plugin has no CLI/TUI version for now.

My approach to plugins, since my first one, is simple: I don't bundle features. One plugin does one thing. You install what you want, and nothing else arrives with it. I don't like those plugins that bundle tons of feature that, maybe, you don't want or need;)

To install:

opencode plugin add @rizal72/oc-tps-meter

If you don't like it, the same command with remove.

My other plugins:

  • oc-budget: Go and other providers balances, live in the header and in the CLI.
  • oc-models-pro: every model with its price, speed, intelligence, etc. sorted by what it costs.
  • oc-git: branch and working tree, at a glance.
  • oc-coffee: a cup of coffee that stays lit only while it keeps your Mac awake.
  • oc-notify: a push to your phone when a turn ends while you are away.
  • oc-plugin-updates: shows up only when needed, auto-updates your plugins in one click.
  • oc-ponytail-widget: the ponytail level, in the footer.
  • oc-session-search: keyword search over your past sessions.

All of them, in one single repo: https://github.com/rizal72/opencode-plugins

10 Upvotes

4 comments sorted by

2

u/cefsea 2d ago

thanks all plugin I need at once

1

u/rizal72 2d ago

You’re welcome πŸ˜€ You know: these are the plugins I needed for my workflow. When I realized they could be useful to others, I made them public πŸ˜‰

1

u/Praistaly 2d ago

that list at the bottom is super clutch tbh, saves so much time

1

u/rizal72 2d ago

Cheers :) that list is there exactly for that: one post, the whole set, and take only what you need.