What is OpenClaw?
OpenClaw is a self-hosted AI agent framework that runs on your hardware. It supports multi-agent workflows, tool execution, and integrations with MCP servers — all controlled through a local gateway. Unbound offers two independent integrations for OpenClaw:- Tool Policies Plugin — Enforce your organization’s security policies on every tool call your OpenClaw agents make
- Unbound as LLM Provider — Route OpenClaw’s LLM calls through the Unbound gateway for visibility, guardrails, and model routing
Prerequisites
- OpenClaw: Version 2026.2.0 or higher
- Node.js / npm: Required for plugin installation
- Unbound Account: Sign up at gateway.getunbound.ai if you don’t have one
Quick Setup (Recommended)
The setup script handles everything — authentication, plugin installation, configuration, and LLM provider setup. Open your terminal and run:- Open your browser for authentication via the Unbound dashboard
- Install the
unbound-openclaw-pluginnpm package globally - Configure the tool policies plugin in
~/.openclaw/openclaw.json - Set up Unbound as the LLM provider
- Set the
UNBOUND_OPENCLAW_API_KEYenvironment variable in your shell profile
source your shell profile), then verify:
Setup Options
You can choose which components to install:| Flag | Description |
|---|---|
--plugin | Install only the tool policies plugin |
--provider | Install only the LLM provider |
--model MODEL_ID | Use a custom model (default: claude-sonnet-4-20250514) |
--plugin nor --provider is specified, both are installed.
Examples:
Removing the Integration
To undo all changes (uninstalls plugin, removes config and environment variable):Verification
After setup, test that tool policies are working: Test 1: Safe command (should succeed)delete_file)
[tools] exec failed: This command is blocked by your organization's policy.
Configuring Policies
Tool policies are managed at gateway.getunbound.ai/policies/tool-policies. You can create policies for:- Terminal commands — e.g., blocking file deletions, database operations, or script execution
- MCP tools — e.g., blocking Slack messages or GitHub issue creation
Manual Configuration
If you prefer to configure everything yourself instead of using the setup script:Tool Policies Plugin
Step 1: Install the plugin:~/.openclaw/openclaw.json:
Plugin Configuration Reference
| Option | Type | Default | Description |
|---|---|---|---|
gatewayUrl | string | required | Unbound gateway URL (https://api.getunbound.ai) |
apiKey | string | $UNBOUND_OPENCLAW_API_KEY | API key for authentication. Falls back to the environment variable |
failOpen | boolean | true | When true, tool calls proceed if the gateway is unreachable. Set to false to block all tool calls when the gateway is down |
LLM Provider
Add the provider to~/.openclaw/openclaw.json:
claude-sonnet-4-20250514 with any model available on the gateway.
Security Benefits
Using OpenClaw with Unbound Security AI Gateway provides:- Request Monitoring: All AI requests are logged and monitored
- Tool Policy Enforcement: Block dangerous terminal commands and MCP tool calls
- Compliance: Ensure AI interactions meet your organization’s standards
- Audit Trail: Complete visibility into AI usage patterns
Tool Policies
Configure terminal command and MCP tool policies
Available Models
Browse models available through the Unbound gateway

