跳到主要内容
    ↑↓ 选择↵ 打开esc 关闭
    中文English
    ljw1004
    @ljw1004/opencode-trace

    OpenCode plugin that saves raw json LLM request+responses as jsonl in ~/opencode-trace, with built-in HTML interactive viewer

    GitHub 星标

    31

    月装机量

    194

    近 7 天 43

    综合评分SCORE

    43.2

    生态多维模型

    最近提交

    2 个月前

    2026-06-19

    快速安装与配置

    opencode.json

    写入当前项目的 opencode.json,只对这个仓库生效。

    opencode.json

    {
      "$schema": "https://opencode.ai/config.json",
      "plugin": ["@ljw1004/opencode-trace@0.1.4"]
    }

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

    This opencode plugin lets you see the raw json requests made to the LLM, and the responses.

    Installation

    Add the package to your OpenCode config:

    {
      "$schema": "https://opencode.ai/config.json",
      "plugin": ["@ljw1004/opencode-trace"]
    }
    

    Restart OpenCode and you'll see each transcript stored in ~/opencode-trace.

    That installation path by default uses @latest, which opencode currently does't refresh when latest changes. You can force a refresh with rm -rf ~/.cache/opencode/packages/@ljw1004/opencode-trace@latest