@benkovy/doh
v0.2.9
Published
DOH OpenClaw channel plugin
Downloads
637
Readme
@benkovy/doh
@benkovy/doh is the OpenClaw channel plugin for DOH.
It registers the doh channel and connects OpenClaw to doh-host, the local runtime that authenticates to the DOH cloud backend.
Quick Start
- Install plugin and host runtime:
openclaw plugins install @benkovy/doh
npm install -g @benkovy/doh-host- Bootstrap host credentials:
doh-host init --email [email protected]
doh-host init --token <token-from-email>- Enable plugin and configure channel:
{
plugins: {
entries: {
doh: { enabled: true }
}
},
channels: {
doh: {
host: {
bin: "doh-host"
},
accounts: {
default: { enabled: true }
},
security: {
dmPolicy: "pairing"
}
}
}
}- Restart OpenClaw Gateway.
Config Model
- Plugin enablement lives under
plugins.entries.doh. - Channel/runtime config lives under
channels.doh. - If
channels.doh.accountsis omitted, plugin falls back to implicitdefaultaccount.
Runtime Model
@benkovy/doh now always uses external host runtime mode.
The plugin never spawns doh-host; it only provides diagnostics and channel wiring.
Run the host runtime separately (for example via launchd/systemd/pm2/supervisor):
channels: {
doh: {
host: {
bin: "doh-host"
}
}
}Start host runtime externally:
doh-host runThe plugin syncs OPENCLAW_GATEWAY_TOKEN from OpenClaw config into ~/.doh-host/config.env, so external doh-host run picks it up without requiring manual token export each time.
Verify Setup
doh-host status --jsonExpect configured: true with tenantId, hostId, and keyId populated.
Troubleshooting
Unknown channel doh
- ensure plugin is installed:
openclaw plugins list - ensure plugin is enabled:
plugins.entries.doh.enabled = true - restart Gateway after config/plugin changes
doh-host command missing
npm install -g @benkovy/doh-hostOr set channels.doh.host.bin to absolute path.
Host runtime not connected
- run:
doh-host status --probe - run host in foreground temporarily:
doh-host run - ensure plugin account is enabled and backend tenant/email matches bootstrap identity
Channel status is healthy but app says no host
doh-host status --probeshould report backend and gatewayok- backend
/healthshould showhostConnections > 0whiledoh-host runis active
Wrong email/account used
doh-host reset --yes
doh-host init --email [email protected]
doh-host init --token <token-from-email>Notes
bootstrapTokenconfig support was removed.- Setup and diagnostics are CLI-driven through
doh-host.
