Trace
OpenCode plugin that saves raw json LLM request+responses as jsonl in ~/opencode-trace, with built-in HTML interactive viewer
33
111
17 in 7 days
38.5
Multi-signal model
4 months ago
2026-06-19
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": ["@ljw1004/opencode-trace@0.1.4"]
}Writes to ~/.config/opencode/opencode.json — applies to every project.
~/.config/opencode/opencode.json
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["@ljw1004/opencode-trace@0.1.4"]
}If you want to modify the plugin locally, install it into the project and reference the local path.
shell
pnpm add -D @ljw1004/opencode-traceOpenCode loads npm dependencies through its embedded runtime on startup and caches them locally — no manual global install needed.
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
Similar plugins
Ember
opencode-ember
OpenCode prompt-cache cost guard: estimates cold cache-rewrite costs, warns or blocks before expensive sends, and reports recorded costs across sessions.
Session Viewer
@cedricg-dev/opencode-session-viewer
A local dashboard for [opencode](https://opencode.ai) that shows live session activity — messages, status, and model usage — in your browser.
Tool Audit
@bandonker/opencode-tool-audit
Flight recorder for every tool call: tool, args, status, duration and error land in a local SQLite DB, with secrets redacted before they touch disk.