@npv12/opencode-tpsOpenCode TUI plugin for viewing LLM Tokens Per Second (TPS) rates
GitHub 星标
0
月装机量
51
近 7 天 13
综合评分SCORE
29.6
生态多维模型
最近提交
24 天前
2026-07-26
快速安装与配置
opencode.json写入当前项目的 opencode.json,只对这个仓库生效。
opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["@npv12/opencode-tps@0.3.0"]
}写入 ~/.config/opencode/opencode.json,对所有项目生效。
~/.config/opencode/opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["@npv12/opencode-tps@0.3.0"]
}若你要在本地改造这个插件,先装到项目里再从本地路径引用。
shell
pnpm add -D @npv12/opencode-tpsopencode 启动时会通过内嵌运行时自动加载 npm 依赖并缓存至本地目录,无需手动在全局环境执行安装。
README.md
查看原始文件→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