OpenClaw Integration
@hmcs/openclaw-plugin bridges OpenClaw agents with Desktop Homunculus characters. Install it into your OpenClaw setup and your Homunculus personas become OpenClaw workspaces; agent replies render on the matching character — speech bubbles, and spoken aloud if the VoiceVox MOD is installed.
This page covers the end-to-end setup. For a broader comparison with external MCP clients (Claude Desktop, Claude Code, Codex), see the AI Integration overview.
Prerequisites
- Desktop Homunculus running. The plugin reaches it over HTTP at
http://127.0.0.1:3100by default. - OpenClaw installed. See the OpenClaw docs for installation.
- Node.js ≥ 22 (required by OpenClaw).
@hmcs/personaMOD with at least one persona created. The plugin syncs Homunculus personas to OpenClaw workspaces; it has nothing to do until a persona exists.- (Optional)
@hmcs/voicevoxMOD to hear replies read aloud. - (Optional)
@hmcs/sttMOD to talk to agents by voice.
Install the plugin
From any terminal:
openclaw plugins install @hmcs/openclaw-plugin
OpenClaw fetches the package and registers it as an extension. Restart OpenClaw if it was already running.
Register an OpenClaw agent for each persona
The plugin does not create OpenClaw agents automatically. For every Homunculus persona you want to drive, register a matching agent whose ID equals the persona ID:
openclaw agents add <persona-id>
You can list your Homunculus personas from the persona MOD UI or via the HTTP API:
curl http://127.0.0.1:3100/personas | jq '.[].id'
Skipping this step is harmless — the plugin just logs a warning for each unmatched persona and waits.
Configure (optional)
The plugin reads configuration from OpenClaw's plugin config. Defaults work for the standard Homunculus setup:
| Key | Default | When to change |
|---|---|---|
hmcsBaseUrl | http://127.0.0.1:3100 | Override if you changed port in ~/.homunculus/config.toml. |
soulMaxChars | 10000 | Override to cap the per-persona soul prompt length written into each agent workspace. |
Refer to the OpenClaw plugin configuration docs for where to set these values.
Verify it works
- Start Desktop Homunculus and summon a character.
- Create a persona in the persona MOD UI (or confirm one already exists).
- Run
openclaw agents add <persona-id>for that persona. - Start OpenClaw and open the workspace for that agent.
- Send a message. The matching Homunculus character should react — the reply appears as a speech bubble (and is spoken if VoiceVox is installed).
Next steps
- Persona MOD — create and manage personas.
- VoiceVox MOD — add text-to-speech to replies.
- STT MOD — talk to agents by voice.
- AI Integration overview — compare OpenClaw with MCP-based integrations.