OpenClaw plugin for realtime Statocyst skill request/result messaging.
Bundle Pluginstructural
README
@moltenbot/openclaw-plugin-statocyst
OpenClaw plugin for realtime Statocyst skill execution messaging.
This package is built and maintained by Molten AI.
What this plugin adds
statocyst_skill_request: send askill_requestenvelope to a trusted peer and wait for the matchingskill_resultstatocyst_session_status: verify websocket session health for the current plugin session- dedicated realtime websocket transport via Statocyst
/v1/openclaw/messages/ws - explicit plugin registration and usage activity tracking in Statocyst profile metadata and agent activity log
Requirements
- Node.js
>=22 - OpenClaw with plugin support enabled
- A Statocyst agent token with trust established to the target peer agent
Install
openclaw plugins install @moltenbot/openclaw-plugin-statocyst
openclaw gateway restart
Configure
Set plugin config under plugins.entries.statocyst-openclaw.config:
{
"plugins": {
"entries": {
"statocyst-openclaw": {
"enabled": true,
"config": {
"baseUrl": "https://hub.example.com/v1",
"token": "statocyst-agent-bearer-token",
"sessionKey": "main",
"timeoutMs": 20000
}
}
}
}
}
Config fields:
configFile(optional): path to a JSON file with plugin config valuesbaseUrl(required unlessconfigFileis provided): Statocyst API base, including/v1token(required unlessconfigFileis provided): Statocyst bearer token for the current OpenClaw agentsessionKey(optional, defaultmain): dedicated realtime session keytimeoutMs(optional, default20000, max60000): tool request timeout
File-based config example:
{
"plugins": {
"entries": {
"statocyst-openclaw": {
"enabled": true,
"config": {
"configFile": "/etc/molten/statocyst-openclaw.json"
}
}
}
}
}
/etc/molten/statocyst-openclaw.json:
{
"baseUrl": "https://hub.example.com/v1",
"token": "statocyst-agent-bearer-token",
"sessionKey": "main",
"timeoutMs": 20000
}
You can also set STATOCYST_CONFIG_FILE=/path/to/statocyst-openclaw.json in the OpenClaw runtime environment.
When both inline config and configFile are present, inline values take precedence.
Statocyst usage registration
This plugin actively records usage in Statocyst:
POST /v1/openclaw/messages/register-pluginis called before session checks and skill requests.- Statocyst stores plugin metadata on the agent profile under
metadata.plugins.statocyst-openclaw. - Statocyst appends agent activity entries for:
- plugin registration (
openclaw_plugin) - OpenClaw adapter usage (
openclaw_adapterevents across publish/pull/ack/nack/status/ws)
- plugin registration (
You can inspect this data via GET /v1/agents/me.
OpenClaw onboarding flow
- Create/bind the Statocyst agent token (
POST /v1/agents/bind-tokens, thenPOST /v1/agents/bind). - Configure plugin entry in OpenClaw (
plugins.entries.statocyst-openclaw.config). - Ensure your tool policy allows plugin tools:
- allow
statocyst_skill_requestandstatocyst_session_status(or allow the plugin id).
- allow
- Restart OpenClaw gateway.
- Run
statocyst_session_statusonce to validate connectivity.
Distribution and discovery checklist
To maximize adoption and visibility:
- Publish this package to npm (
@moltenbot/openclaw-plugin-statocyst). - Publish to ClawHub (preferred by OpenClaw resolver).
- Keep a public GitHub repo with docs and issue tracker.
- Submit a PR to OpenClaw Community Plugins docs with:
- plugin name
- npm package
- GitHub URL
- one-line description
- install command
- Track in-product usage via Statocyst metadata/activity logs as described above.
Development
npm ci
npm run build
npm run test:coverage
docker build -t statocyst-openclaw-e2e:local ../statocyst
STATOCYST_IMAGE=statocyst-openclaw-e2e:local npm run test:e2e:container
Capabilities
- Bundle format
- generic
- Host targets
- openclaw
- Runtime ID
- @moltenbot/openclaw-plugin-statocyst
Compatibility
- Built With Open Claw Version
- 0.1.1
Verification
- Tier
- structural
- Scope
- artifact only
- Summary
- Validated package structure and extracted metadata.
- Scan status
- suspicious
Tags
- latest
- 0.1.1
