Observability for OpenClaw with Opik
OpenClaw can send trace data to Opik through the community plugin package @opik/opik-openclaw.
This integration captures:
- LLM spans (
llm_input,llm_output) - Tool spans (
before_tool_call,after_tool_call) - Agent-level run metadata (
agent_end, usage/cost diagnostics)
Prerequisites
- OpenClaw with plugin support enabled.
- Opik project/workspace details (for cloud or enterprise deployments).
Install the plugin
Configure the plugin
Interactive setup
This command validates your Opik URL, validates API key access (when required), and writes plugin-scoped config.
Manual config
Add this to your OpenClaw config:
Environment variable fallbacks are also supported:
OPIK_API_KEYOPIK_URL_OVERRIDEOPIK_PROJECT_NAMEOPIK_WORKSPACE
Validate setup
- Check plugin config:
- Restart or run your OpenClaw gateway process.
- Send a message through OpenClaw.
- Verify traces appear in the configured Opik project.
Known limitation
Some OpenClaw embedded execution paths currently emit after_tool_call without a sessionKey. The plugin uses a best-effort fallback (single active trace or most recent active session), which can mis-correlate tool spans when multiple sessions run concurrently.
Next step
For OTEL-native pipelines, see OpenTelemetry integration.