跳到主要内容
    ↑↓ 选择↵ 打开esc 关闭
    中文English
    npv12

    Tps

    v0.3.0模型接入
    @npv12/opencode-tps

    OpenCode 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"]
    }

    opencode 启动时会通过内嵌运行时自动加载 npm 依赖并缓存至本地目录,无需手动在全局环境执行安装。

    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