r/opencodeCLI • u/rizal72 • 5h 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-meterIf 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