An OpenClaw channel plugin that connects OpenClaw agents to CSGClaw.
The plugin receives messages through CSGClaw's participant SSE API and sends agent replies through its REST API.
- Direct messages and group rooms
- Group mention filtering
- Topic and thread context
- Optional Feishu event forwarding
- Prebuilt multi-architecture Docker image
Requirements:
- Node.js 24.14 or later
- pnpm 10 or later
- A running CSGClaw server
Install the published plugin into an OpenClaw home:
openclaw plugins install npm:openclaw-csgclaw-extensionAfter a new npm release, update the installed plugin without rebuilding the OpenClaw image:
openclaw plugins update csgclawIf an older CSGClaw image loads /home/node/openclaw-plugins explicitly, remove
that broad CSGClaw load path before installing the npm package; explicit load
paths take precedence over managed npm installs. Keep the Feishu plugin path as
/home/node/openclaw-plugins/feishu when it is still needed.
Install dependencies and build the plugin:
make buildmake build runs pnpm install --frozen-lockfile only when package.json,
pnpm-lock.yaml, or the current node_modules install state changed. The
compiled plugin is written to dist/.
Add the channel and plugin to your OpenClaw configuration:
{
"channels": {
"csgclaw": {
"enabled": true,
"baseUrl": "http://127.0.0.1:18080",
"participantId": "your-bot-id",
"accessToken": "optional-token"
}
},
"plugins": {
"load": {
"paths": ["./path-to/csgclaw-extension"]
},
"entries": {
"csgclaw": {
"enabled": true
}
}
}
}| Field | Required | Description |
|---|---|---|
baseUrl |
Yes | CSGClaw server URL |
participantId |
Yes | Bot participant ID; botId is also accepted |
accessToken |
No | Bearer token used for API authentication |
enabled |
No | Enables the channel; defaults to true |
The same values can be provided through CSGCLAW_BASE_URL, CSGCLAW_PARTICIPANT_ID (or CSGCLAW_BOT_ID), and CSGCLAW_ACCESS_TOKEN.
The bot responds in group rooms only when mentioned by default. Per-room behavior can be changed with groups:
{
"channels": {
"csgclaw": {
"groups": {
"room-abc": {
"requireMention": false
},
"*": {
"requireMention": true
}
}
}
}
}make build # build only
make build dev-o-3 # build, resolve the agent name, and sync it
pnpm testBuild and load a local single-architecture Docker image:
make image-localBuild and sync the local plugin into an already-running CSGClaw Docker agent. The short form accepts the agent name shown in the CSGClaw UI:
make build dev-o-3The target builds and packages the complete npm plugin, replaces
/home/node/openclaw-plugins/csgclaw-extension in the agent container, and
restarts it so OpenClaw reloads the plugin. The name is resolved through
~/.csgclaw/state.json. This is a local Docker development command; run it
again after the agent container is recreated.
For production image targets and release details, see docker/README.md.
The plugin version is maintained only in package.json. Docker builds copy that
file into the image, so no separate build variable needs to be synchronized.
This project uses the same modified Apache License 2.0 as CSGClaw. See LICENSE for details.