{"id":46214965,"url":"https://github.com/comet-ml/opik-openclaw","last_synced_at":"2026-05-06T21:02:25.272Z","repository":{"id":341720601,"uuid":"1171004736","full_name":"comet-ml/opik-openclaw","owner":"comet-ml","description":"🦞 Official plugin for OpenClaw that exports agent traces to Opik. See and monitor agent behaviour, cost, tokens, errors and more.","archived":false,"fork":false,"pushed_at":"2026-04-30T23:11:00.000Z","size":622,"stargazers_count":575,"open_issues_count":1,"forks_count":65,"subscribers_count":4,"default_branch":"main","last_synced_at":"2026-05-01T01:13:09.870Z","etag":null,"topics":["clawdbot","evaluation","moltbot","observability","openclaw","testing"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/comet-ml.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-02T19:12:21.000Z","updated_at":"2026-04-30T23:09:42.000Z","dependencies_parsed_at":"2026-03-07T14:00:35.179Z","dependency_job_id":null,"html_url":"https://github.com/comet-ml/opik-openclaw","commit_stats":null,"previous_names":["comet-ml/opik-openclaw"],"tags_count":23,"template":false,"template_full_name":null,"purl":"pkg:github/comet-ml/opik-openclaw","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/comet-ml%2Fopik-openclaw","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/comet-ml%2Fopik-openclaw/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/comet-ml%2Fopik-openclaw/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/comet-ml%2Fopik-openclaw/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/comet-ml","download_url":"https://codeload.github.com/comet-ml/opik-openclaw/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/comet-ml%2Fopik-openclaw/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32711965,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-06T19:35:05.142Z","status":"ssl_error","status_checked_at":"2026-05-06T19:35:03.996Z","response_time":117,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["clawdbot","evaluation","moltbot","observability","openclaw","testing"],"created_at":"2026-03-03T10:00:55.610Z","updated_at":"2026-05-06T21:02:25.267Z","avatar_url":"https://github.com/comet-ml.png","language":"TypeScript","funding_links":[],"categories":["Integrations \u0026 Features","Skills vs Plugins: What's the Difference?","Community Projects","🎛️ Dashboards \u0026 Control Centers"],"sub_categories":["Monitoring \u0026 Dashboards","Bundled Plugins","Monitoring \u0026 Tools"],"readme":"\u003ch1 align=\"center\" style=\"border-bottom: none\"\u003e\n  \u003cdiv\u003e\n    \u003ca href=\"https://www.comet.com/site/products/opik/?from=llm\u0026utm_source=opik\u0026utm_medium=github\u0026utm_content=header_img\u0026utm_campaign=opik\"\u003e\n      \u003cpicture\u003e\n        \u003csource media=\"(prefers-color-scheme: dark)\" srcset=\"https://raw.githubusercontent.com/comet-ml/opik/refs/heads/main/apps/opik-documentation/documentation/static/img/logo-dark-mode.svg\"\u003e\n        \u003csource media=\"(prefers-color-scheme: light)\" srcset=\"https://raw.githubusercontent.com/comet-ml/opik/refs/heads/main/apps/opik-documentation/documentation/static/img/opik-logo.svg\"\u003e\n        \u003cimg alt=\"Comet Opik logo\" src=\"https://raw.githubusercontent.com/comet-ml/opik/refs/heads/main/apps/opik-documentation/documentation/static/img/opik-logo.svg\" width=\"200\" /\u003e\n      \u003c/picture\u003e\n    \u003c/a\u003e\n    \u003cbr /\u003e\n    🔭 OpenClaw Opik Observability Plugin\n  \u003c/div\u003e\n\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  Official plugin for \u003ca href=\"https://github.com/openclaw/openclaw\"\u003eOpenClaw\u003c/a\u003e that exports agent traces to \u003cbr/\u003e\n  \u003ca href=\"https://www.comet.com/docs/opik/\"\u003eOpik\u003c/a\u003e for observability and monitoring.\n\u003c/p\u003e\n\n\u003cdiv align=\"center\"\u003e\n\n[![License](https://img.shields.io/github/license/comet-ml/opik-openclaw)](./LICENSE)\n[![npm version](https://img.shields.io/npm/v/%40opik%2Fopik-openclaw)](https://www.npmjs.com/package/@opik/opik-openclaw)\n\n\u003cimg src=\"screenshot.png\" alt=\"Openclaw on Opik Demo\"/\u003e\n\n\u003c/div\u003e\n\n## Why This Plugin\n\n[Opik](https://github.com/comet-ml/opik) is a leading open-source LLM and agent observability, tracing, evaluation and optimization platform.\n`@opik/opik-openclaw` adds native Opik tracing for OpenClaw runs:\n\n- LLM request/response spans\n- Sub-agent request/response spans\n- Tool call spans with inputs, outputs, and errors\n- Run-level finalize metadata\n- Usage and cost metadata\n\nThe plugin runs inside the OpenClaw Gateway process. If your gateway is remote, install and configure the plugin on that host.\n\n## Install and first run\n\nPrerequisites:\n\n- OpenClaw `\u003e=2026.3.2`\n- Node.js `\u003e=22.12.0`\n- npm `\u003e=10`\n\n### 1. Install the plugin in OpenClaw\n\n```bash\nopenclaw plugins install clawhub:@opik/opik-openclaw\n```\n\nAnd for older version of OpenClaw `\u003c2023.3.23` you can install the npm package using:\n```bash\nopenclaw plugins install @opik/opik-openclaw\n```\n\nIf the Gateway is already running, restart it after install.\n\n### 2. Configure the plugin\n\n```bash\nopenclaw opik configure\n```\n\nThe setup wizard validates endpoint and credentials, then writes config under `plugins.entries.opik-openclaw`. If you choose Opik Cloud and do not have an account yet, the wizard now points you to the free signup flow before asking for an API key.\n\n### 3. Check effective settings\n\n```bash\nopenclaw opik status\n```\n\n### 4. Send a test message\n\n```bash\nopenclaw gateway run\nopenclaw message send \"hello from openclaw\"\n```\n\nThen confirm traces in your Opik project.\n\n## Configuration\n\n### Recommended config shape\n\n```json\n{\n  \"plugins\": {\n    \"entries\": {\n      \"opik-openclaw\": {\n        \"enabled\": true,\n        \"hooks\": {\n          \"allowConversationAccess\": true\n        },\n        \"config\": {\n          // base configuration\n          \"enabled\": true,\n          \"apiKey\": \"your-api-key\",\n          \"apiUrl\": \"https://www.comet.com/opik/api\",\n          \"projectName\": \"openclaw\",\n          \"workspaceName\": \"default\",\n          // optional advanced configuration\n          \"tags\": [\"openclaw\"],\n          \"toolResultPersistSanitizeEnabled\": false,\n          \"staleTraceCleanupEnabled\": true,\n          \"staleTraceTimeoutMs\": 300000,\n          \"staleSweepIntervalMs\": 60000,\n          \"flushRetryCount\": 2,\n          \"flushRetryBaseDelayMs\": 250\n        }\n      }\n    }\n  }\n}\n```\n\n### Plugin trust allowlist\n\nOpenClaw warns when `plugins.allow` is empty and a community plugin is discovered. Pin trusted plugins explicitly:\n\n```json\n{\n  \"plugins\": {\n    \"allow\": [\"opik-openclaw\"]\n  }\n}\n```\n\nBecause Opik traces LLM prompts, responses, tools, and agent finalization events, non-bundled installs also need explicit conversation hook access:\n\n```json\n{\n  \"plugins\": {\n    \"entries\": {\n      \"opik-openclaw\": {\n        \"hooks\": {\n          \"allowConversationAccess\": true\n        }\n      }\n    }\n  }\n}\n```\n\n### Environment fallbacks\n\n- `OPIK_API_KEY`\n- `OPIK_URL_OVERRIDE`\n- `OPIK_PROJECT_NAME`\n- `OPIK_WORKSPACE`\n\n### Transcript safety default\n\n`toolResultPersistSanitizeEnabled` is disabled by default. When enabled, the plugin rewrites local\nimage refs in persisted tool transcript messages via `tool_result_persist`.\n\n## CLI commands\n\n| Command | Description |\n| --- | --- |\n| `openclaw plugins install @opik/opik-openclaw` | Install plugin package |\n| `openclaw opik configure` | Interactive setup wizard |\n| `openclaw opik status` | Print effective Opik configuration |\n\n## Event mapping\n\n| OpenClaw event | Opik entity | Notes |\n| --- | --- | --- |\n| `llm_input` | trace + llm span | starts trace and llm span |\n| `llm_output` | llm span update/end | writes usage/output and closes span |\n| `before_tool_call` | tool span start | captures tool name + input |\n| `after_tool_call` | tool span update/end | captures output/error + duration |\n| `subagent_spawning` | subagent span start | starts subagent lifecycle span on requester trace |\n| `subagent_spawned` | subagent span update | enriches subagent span with run metadata |\n| `subagent_ended` | subagent span update/end | finalizes subagent span with outcome/error |\n| `agent_end` | trace finalize | closes pending spans and trace |\n\n## Known limitation\n\nNo OpenClaw core changes are included in this repository and relies on native hooks within the OpenClaw ecosystem.\n\n## Development\n\nPrerequisites:\n\n- Node.js `\u003e=22.12.0`\n- npm `\u003e=10`\n\n```bash\nnpm ci\nnpm run build\nnpm run lint\nnpm run typecheck\nnpm run test\nnpm run smoke\n```\n\n### Packaging\n\nThe package publishes built JavaScript for installed OpenClaw runtime loads while\nkeeping TypeScript source metadata for development and older OpenClaw fallback\nloads. `openclaw.extensions` points at `./index.ts`; `openclaw.runtimeExtensions`\npoints at `./dist/index.js`. ClawHub also requires explicit\n`openclaw.compat.pluginApi` and `openclaw.build.openclawVersion` metadata.\n`npm pack` and `npm publish` run `npm run build` through `prepack`, and\n`npm run pack:check` verifies the tarball contract.\nPull requests also dry-run the ClawHub package publish workflow, and GitHub\nreleases publish the validated package to both npm and ClawHub.\n\nOptional live gateway E2E:\n\n```bash\nnpm run test:live\n```\n\nNotes:\n\n- uses an isolated `.artifacts/live-e2e/\u003crun-id\u003e/home/.openclaw` so it does not touch your normal OpenClaw config\n- `OPIK_API_KEY`, `OPIK_URL_OVERRIDE`, `OPIK_PROJECT_NAME`, and `OPIK_WORKSPACE` win if set in env\n- otherwise it reuses `~/.openclaw/openclaw.json -\u003e plugins.entries.opik-openclaw.config` for `apiUrl` / `apiKey` / project / workspace\n- set `OPENCLAW_LIVE_USE_HOST_OPIK_CONFIG=0` to disable reading host plugin config and require explicit env-only Opik settings\n- still requires `OPENAI_API_KEY` in env for the real model call\n- packs and installs the current plugin build into a fresh OpenClaw home\n- falls back to `npx openclaw@${OPENCLAW_LIVE_OPENCLAW_VERSION:-latest}` when `openclaw` is not already on your `PATH`\n- override the live model with `OPENCLAW_LIVE_MODEL` if `gpt-4o-mini` is not what you want to exercise\n\n## Contributing\n\nRead [CONTRIBUTING.md](CONTRIBUTING.md) before opening a PR.\n\n## License\n\n[Apache-2.0](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomet-ml%2Fopik-openclaw","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcomet-ml%2Fopik-openclaw","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcomet-ml%2Fopik-openclaw/lists"}