Skip to content

Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.

fix(openclaw): wrap plugin export as {register} object for OpenClaw 2026.x compatibility (#1218)

problemsolverai2026-svg2e6c442dc87f
diff --git a/plugins/openclaw/package-lock.json b/plugins/openclaw/package-lock.json
index 0ae21b671..81b44f0a5 100644
--- a/plugins/openclaw/package-lock.json
+++ b/plugins/openclaw/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "headroom-openclaw",
- "version": "0.25.0",
+ "version": "0.26.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "headroom-openclaw",
- "version": "0.25.0",
+ "version": "0.26.0",
"license": "Apache-2.0",
"dependencies": {
"headroom-ai": "^0.22.3"
diff --git a/plugins/openclaw/src/plugin/index.ts b/plugins/openclaw/src/plugin/index.ts
index c71819048..267c09459 100644
--- a/plugins/openclaw/src/plugin/index.ts
+++ b/plugins/openclaw/src/plugin/index.ts
@@ -23,7 +23,16 @@ import {
import { normalizeAndValidateProxyUrl } from "../proxy-manager.js";
import { createHeadroomRetrieveTool } from "../tools/headroom-retrieve.js";
-export default function headroomPlugin(api: any) {
+/**
+ * OpenClaw 2026.x plugin API requires a `{ register(api) }` object export.
+ * The previous bare-function default export was silently skipped by the loader.
+ * See: https://github.com/chopratejas/headroom/issues/XXX
+ */
+export default {
+ register: headroomPlugin,
+};
+
+function headroomPlugin(api: any) {
const config = api.config?.plugins?.entries?.headroom?.config ?? {};
const logger = api.logger ?? console;
const rawProxyUrl = config.proxyUrl;