apps/opik-documentation/documentation/fern/docs/tracing/integrations/openclaw.mdx
OpenClaw can send trace data to Opik through the community plugin package @opik/opik-openclaw.
This integration captures:
llm_input, llm_output)before_tool_call, after_tool_call)agent_end, usage/cost diagnostics)2026.3.2 or newer.This command validates your Opik URL, validates API key access (when required), enables the plugin, and writes plugin-scoped config.
Use this only when you need explicit checked-in or templated plugin configuration. For the latest plugin-specific options, see opik-openclaw.
Add this to your OpenClaw config:
{
"plugins": {
"entries": {
"opik": {
"enabled": true,
"config": {
"enabled": true,
"apiUrl": "https://www.comet.com/opik/api",
"apiKey": "your-api-key",
"projectName": "openclaw",
"workspaceName": "default",
"tags": ["openclaw"]
}
}
}
}
}
Environment variable fallbacks are also supported:
OPIK_API_KEYOPIK_URL_OVERRIDEOPIK_PROJECT_NAMEOPIK_WORKSPACESome 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.
For OTEL-native pipelines, see OpenTelemetry integration.