OpenCode
OpenCode is an open-source terminal-based AI coding assistant. It supports multiple LLM providers, can edit files, run commands, and handle multi-step coding tasks directly from your terminal. Respan gives you full observability over every conversation including thinking, tool calls, and responses — and gateway routing through the OpenAI-compatible Respan endpoint.
Set up Respan
Create an account at platform.respan.ai and grab an API key. For gateway, also add credits or a provider key.
Run npx @respan/cli setup to set up with your coding agent.
Tracing
Gateway
Setup
Prerequisite: OpenCode must be installed before integrating with Respan.
View your trace
Open the Traces page to see your OpenCode conversations with thinking, tool calls, and responses.
OpenCode uses the opencode-otel community plugin. The respan integrate command installs the plugin and configures OTLP endpoints automatically.
Configuration
Customize the integration with flags.