Opencode Langsmith Tracing
Description
LangSmith tracing plugin for opencode — captures sessions, LLM calls, tool calls, reasoning, and context compaction. Trace taxonomy compatible with langsmith-claude-code-plugins.
Installation
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open the source below and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
README
LangSmith Tracing Plugin for opencode
[](https://www.npmjs.com/package/opencode-langsmith-tracing) [](https://www.npmjs.com/package/opencode-langsmith-tracing) [](./LICENSE) [](./tsconfig.json) [](./package.json)
**Full observability for [opencode](https://opencode.ai) sessions.** Stream every conversation turn, LLM call, tool call, reasoning step, token usage, cost, and context compaction to [LangSmith](https://smith.langchain.com). Trace taxonomy compatible with the official [`langsmith-claude-code-plugins`](https://github.com/langchain-ai/langsmith-claude-code-plugins), so existing LangSmith dashboards and evaluators built for Claude Code work unchanged.
**Keywords**: opencode tracing · LangSmith tracing for opencode · opencode plugin · opencode observability · LLM tracing · agent tracing · Claude Code equivalent for opencode.
Quick start (30 seconds)
// opencode.json (project root, or ~/.config/opencode/opencode.json globally)
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["opencode-langsmith-tracing"]
}
# .opencode/langsmith.env (auto-loaded by the plugin; gitignore it!)
LANGSMITH_TRACING=true
OC_LANGSMITH_API_KEY=lsv2_pt_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
OC_LANGSMITH_PROJECT=my-opencode
That's it — start `opencode` and every conversation will appear in your LangSmith project in real time.
Tested with opencode `1.4.x`.
Trace hierarchy
OpenCode Turn (chain) ← one per user prompt
├── OpenCode Assistant (llm) ←
Related Skills
Agency Agents
A complete AI agency at your fingertips - From frontend wizards to Reddit community ninjas, from whimsy inject
AI Firecrawl
🔥 The API to search, scrape, and interact with the web for AI
AI Artifacts Builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web tech
AI CrewAI
Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewA
AI TrendRadar
⭐AI-driven public opinion & trend monitor with multi-platform aggregation, RSS, and smart alerts.🎯 告别信息过载,你的
AI mem0
| Universal memory layer for AI Agents | 51341 | 221 | 1 |
AI