@2en/clawhub2gateway
v1.0.0
Published
OpenClaw plugin that wraps the **ClawHub CLI** as **Gateway WebSocket RPC methods**.
Readme
clawhub2gateway
OpenClaw plugin that wraps the ClawHub CLI as Gateway WebSocket RPC methods.
What you get
Gateway methods (call via WS RPC):
clawhub2gateway.searchclawhub2gateway.exploreclawhub2gateway.installclawhub2gateway.updateclawhub2gateway.listclawhub2gateway.inspectclawhub2gateway.starclawhub2gateway.unstar
Install on a gateway host
- Install the ClawHub CLI (must be on PATH for the OpenClaw process):
npm i -g clawhub- Put this plugin on the gateway host and make it discoverable. Common options:
- Workspace plugin: copy this folder to
<workspace>/.openclaw/extensions/clawhub2gateway/withindex.ts+openclaw.plugin.json - Config path: set
plugins.load.pathsto the plugin folder path
- Enable the plugin in your
openclaw.json:
{
"plugins": {
"enabled": true,
"entries": {
"clawhub2gateway": { "enabled": true, "config": {} }
}
}
}Plugin config
Configured under plugins.entries.clawhub2gateway.config:
bin(string, default:"clawhub"): command to executedefaultDir(string, default:"skills"): default--dirdefaultNoInput(boolean, default:true): default--no-inputdefaultTimeoutMs(number, default:60000)configPath(string, optional): setsCLAWHUB_CONFIG_PATH. Defaults to<OPENCLAW_STATE_DIR>/clawhub/config.jsonwhen state dir is known.
Call examples (RPC params)
Install:
{ "method": "clawhub2gateway.install", "params": { "slug": "my-skill-pack" } }Explore:
{ "method": "clawhub2gateway.explore", "params": { "limit": 50, "sort": "trending", "json": true } }