- Node.js 18+
- pnpm (recommended) or npm
- A Honcho API key from honcho.dev
git clone https://github.com/plastic-labs/openclaw-honcho.git
cd openclaw-honcho
pnpm installNote: The postinstall script runs install.js which attempts to migrate workspace files. For development, you can skip this by setting up a test workspace or ensuring HONCHO_API_KEY is not set (it will warn but continue).
pnpm buildThis compiles TypeScript to dist/ and generates type declarations.
pnpm testopenclaw-honcho/
├── index.ts # Main plugin code (tools, hooks, CLI)
├── config.ts # Configuration schema (Zod)
├── install.js # Post-install migration script
├── openclaw.plugin.json # OpenClaw plugin manifest
├── workspace_md/ # Template files synced to user workspace
│ ├── AGENTS.md
│ ├── BOOTSTRAP.md
│ └── SOUL.md
└── dist/ # Compiled output (generated)
To test the plugin locally with OpenClaw:
-
Build the plugin:
pnpm build
-
Link it locally (from the plugin directory):
pnpm link --global
-
Link it in your OpenClaw workspace:
cd ~/.openclaw pnpm link --global @honcho-ai/openclaw
-
Restart the OpenClaw gateway to pick up changes.
- TypeScript source is in
index.tsandconfig.ts - Build before testing: Always run
pnpm buildafter changes - Tool return types: All tool
executefunctions must return{ content: [...], details: undefined } - Hooks vs Tools: Hooks receive
(event, ctx)with session context; tools receive(toolCallId, params, signal?)without session context
The install.js script runs on pnpm install / npm install and:
- Migrates existing memory files to Honcho (requires
HONCHO_API_KEY) - Archives legacy files to
archive/directory (with timestamp if conflicts) - Syncs workspace docs from
workspace_md/templates
Files are archived before being overwritten to prevent data loss.
The package is configured for npm publishing:
pnpm publishprepublishOnly automatically runs pnpm build before publishing.
- TypeScript with ESM modules
- No strict mode (for compatibility with OpenClaw plugin SDK)
- Prefer async/await over callbacks
- Use descriptive tool descriptions (they're shown to the AI)
Open an issue at github.com/plastic-labs/openclaw-honcho.