@mandate-os/openclaw
v0.1.6
Published
MandateOS bridge, plugin bundle, and installer for OpenClaw.
Readme
@mandate-os/openclaw
MandateOS bridge, plugin bundle, and installer for OpenClaw.
This package provides:
mandate-os-openclaw-installto configure OpenClaw for a guarded workspacemandate-os-openclaw-bridgefor policy evaluation inside the OpenClaw plugin flow- the bundled OpenClaw extension assets that enable the guarded workflow
Environment
The installer expects:
MANDATE_OS_BASE_URL
Optional during install:
MANDATE_OS_MCP_DEFAULT_MANDATE_IDMANDATE_OS_OPENCLAW_SANDBOX_MODE(alloroff)
Required at OpenClaw runtime:
MANDATE_OS_AGENT_TOKEN
One-Command Install
MANDATE_OS_BASE_URL=https://mandateos.example.com \
MANDATE_OS_AGENT_TOKEN='key_id.secret' \
MANDATE_OS_MCP_DEFAULT_MANDATE_ID='mdt_123' \
MANDATE_OS_OPENCLAW_WORKSPACE_PATH=/absolute/path/to/your/repo \
npx --yes --package @mandate-os/openclaw mandate-os-openclaw-install installThat command:
- installs the MandateOS plugin bundle under the local OpenClaw state directory
- configures the MandateOS MCP entry for the guarded workspace
- creates or updates the
mandateos_guardedagent profile
To install the guarded agent with sandboxing disabled, pass either:
MANDATE_OS_OPENCLAW_SANDBOX_MODE=off \
npx --yes --package @mandate-os/openclaw mandate-os-openclaw-install installor:
npx --yes --package @mandate-os/openclaw mandate-os-openclaw-install install --sandbox-mode=offIf you omit the option, fresh installs default to all, while existing guarded
agents keep their current sandbox setting.
Inspect the current install state with:
MANDATE_OS_OPENCLAW_WORKSPACE_PATH=/absolute/path/to/your/repo \
npx --yes --package @mandate-os/openclaw mandate-os-openclaw-install statusRepair an existing OpenClaw install in place with a clean MandateOS asset reset:
MANDATE_OS_BASE_URL=https://mandateos.example.com \
MANDATE_OS_MCP_DEFAULT_MANDATE_ID='mdt_123' \
MANDATE_OS_OPENCLAW_WORKSPACE_PATH=/absolute/path/to/your/repo \
npx --yes --package @mandate-os/openclaw mandate-os-openclaw-install repairThat repair flow removes the MandateOS-owned OpenClaw plugin and bundle
directories plus local MandateOS approval/status cache files, then reinstalls
the current assets and repairs the MandateOS config entries. It preserves
existing guarded-agent overrides such as mandateos_guarded.sandbox.mode = off.
You can also change the guarded-agent sandbox mode during repair with
--sandbox-mode=all|off.
Runtime note
OpenClaw must still start with MANDATE_OS_AGENT_TOKEN in its runtime
environment so the bridge can evaluate actions against MandateOS policy.
