@npv12/opencode-tpsOpenCode TUI plugin for viewing LLM Tokens Per Second (TPS) rates
0
51
13 in 7 days
29.6
Multi-signal model
24 days ago
2026-07-26
Install and configure
opencode.jsonWrites to this project's opencode.json — applies to this repository only.
opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["@npv12/opencode-tps@0.3.0"]
}Writes to ~/.config/opencode/opencode.json — applies to every project.
~/.config/opencode/opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["@npv12/opencode-tps@0.3.0"]
}If you want to modify the plugin locally, install it into the project and reference the local path.
shell
pnpm add -D @npv12/opencode-tpsopencode loads npm dependencies through its embedded runtime on startup and caches them locally — no manual global install needed.
OpenCode TUI plugin that displays live TPS (tokens per second), average TPS, and average TTFT (time to first token) in the session prompt.
Features
- Live streaming TPS display in the session prompt
- Average TPS across the session
- Average time to first token (TTFT)
- Updates in real-time as tokens stream
Installation
opencode plugin add @npv12/opencode-tps
Or add to your opencode.json:
{
"plugins": {
"@npv12/opencode-tps": {}
}
}
Attribution
This plugin is adapted from Tarquinen's oc-tps plugin repository.
License
MIT