@slop-ai/openclaw-plugin
v0.2.0
Published
OpenClaw plugin for observing and controlling SLOP-enabled applications
Downloads
57
Readme
@slop-ai/openclaw-plugin
OpenClaw plugin for discovering and controlling SLOP-enabled apps.
The plugin watches SLOP providers, subscribes to their trees, injects live state into the prompt, and exposes five OpenClaw tools:
list_appsto list available providersconnect_appto inspect a provider's current state and actionsdisconnect_appto stop tracking an appapp_actionto invoke a single affordance on a providerapp_action_batchto invoke multiple affordances in one call
Install
openclaw plugins install --link /path/to/slop/packages/typescript/integrations/openclaw-pluginIf your OpenClaw setup supports registry installation, use the package name:
openclaw plugins install @slop-ai/openclaw-pluginHow it works
The plugin uses @slop-ai/discovery/service for provider discovery and connection management, plus @slop-ai/discovery/tools for shared lifecycle tool handlers. It injects provider state into the prompt via OpenClaw's before_prompt_build hook, so the model sees live app state before every inference turn, then uses app_action or app_action_batch with the exact paths and action names shown in context.
How provider discovery works
Providers register themselves in ~/.slop/providers/ with a descriptor like:
{
"id": "my-app",
"name": "My App",
"slop_version": "0.1",
"transport": {
"type": "unix",
"path": "/tmp/slop/my-app.sock"
},
"capabilities": ["state", "patches", "affordances"]
}The plugin discovers providers from:
~/.slop/providers/for persistent local providers/tmp/slop/providers/for session-scoped providers- the browser extension bridge for web apps
The plugin connects to Unix socket, WebSocket, and browser-relayed providers automatically.
Example
list_apps()
connect_app("kanban")
app_action("kanban", "/columns/backlog", "add_card", { title: "Ship docs" })
app_action_batch("kanban", [
{ path: "/columns/backlog", action: "add_card", params: { title: "Task 1" } },
{ path: "/columns/backlog", action: "add_card", params: { title: "Task 2" } }
])
disconnect_app("kanban")Documentation
- API reference: https://docs.slopai.dev/api/openclaw-plugin
- OpenClaw guide: https://docs.slopai.dev/guides/advanced/openclaw
- Consumer SDK: https://docs.slopai.dev/api/consumer
