Skip to content

OpenClaw

Share one OpenClaw with your team without giving it the keys to everything. Every shell command, browser step, file write and message it sends is checked by AgentFox first.

This is for a team inside one trust boundary. OpenClaw's own security policy says one gateway should not be shared by people who do not trust each other, and a plugin does not change that. What AgentFox adds is a check on every action, an approver for the risky ones, and a record of all of them.

Start OpenClaw behind AgentFox

The kit in deploy/openclaw/ starts AgentFox and OpenClaw together, with the AgentFox plugin loaded and AgentFox as OpenClaw's model endpoint.

  1. Fill in the settings

    bash
    git clone https://github.com/architsharm/agentfox && cd agentfox
    cp deploy/openclaw/.env.example deploy/openclaw/.env

    Set the two AgentFox secrets, your model provider's key and an OpenClaw token. The model key stays in AgentFox: OpenClaw and the people using it never see it.

  2. Start it

    bash
    deploy/openclaw/up.sh

    It starts AgentFox, tells it what OpenClaw's tools do, grants them to the openclaw agent, builds the plugin and starts OpenClaw. OpenClaw is on port 18789 and AgentFox on 3000.

  3. Watch, then switch to Block

    AgentFox starts by watching: it records what it would have held and lets the call run. Destructive shell commands are blocked from the start. When the decisions look right:

    bash
    docker compose --env-file deploy/openclaw/.env \
      -f deploy/docker-compose.yml -f deploy/openclaw/compose.yml \
      exec gateway agentfox policy enforce tool-containment

    Or start in Block straight away with deploy/openclaw/up.sh --block.

Or deploy it to Render, with no terminal

Deploy to Render sets up the same kit on your own Render account: Postgres, the AgentFox gateway and dashboard, and OpenClaw with the plugin built in. Render asks for your model key and an AgentFox agent key (enter unregistered until you create one in the dashboard); neither is stored in the repository. The gateway and OpenClaw need Render's starter instance type. To sign in, open the gateway's Shell in Render and run agentfox admin users create you@example.com --role owner --token. OpenClaw is public there, behind the OPENCLAW_GATEWAY_TOKEN Render generates, where the local kit only listens on your machine. The blueprint is deploy/openclaw/render.yaml.

Add it to an OpenClaw you already run

  1. Build the plugin

    bash
    cd sdk/openclaw && npm ci && npm run build
  2. Load it in openclaw.json

    openclaw.json
    {
      "plugins": {
        "load": { "paths": ["/path/to/agentfox/sdk/openclaw"] },
        "entries": {
          "agentfox": {
            "enabled": true,
            "config": { "baseUrl": "http://localhost:8080", "apiKey": "nom_agt_…" }
          }
        }
      }
    }
  3. Declare and grant OpenClaw's tools

    Where the agentfox CLI reaches your AgentFox database:

    bash
    deploy/openclaw/agentfox-setup.sh openclaw

What is checked

OpenClaw doesAgentFox
Runs a shell commandBlocks destructive ones (recursive delete, curl | sh, reading credential files). Holds one built from content it read.
Sends a message (WhatsApp, Slack, Teams…)Lets it through when the recipient and text came from the user. Holds it when either was copied out of a web page, a file or another tool's output.
Uses the browser, writes filesChecked against what the agent was granted and where the arguments came from.
Schedules a job, reconfigures itself, starts another agentWaits for an approver every time.
Calls a tool nobody grantedRecorded as ungranted; refused in Block.

Approvals

By default a held call is refused with a link. An approver decides in AgentFox under Approvals, and when the agent tries the same call again it runs once. So the person chatting with OpenClaw cannot approve their own risky call. To use OpenClaw's own approval prompt instead, set "approvals": "openclaw" in the plugin's config.

If AgentFox is down

The plugin fails closed: a call AgentFox cannot check does not run. Set "failMode": "open" to let calls through instead.

What it does not cover

  • Code a skill or plugin runs on its own, outside a tool call.
  • What a shell command starts after AgentFox allowed it.
  • A held call in a run nobody is watching, such as a cron job: it is refused, not queued.
  • In Block, a browser step or file write built from a fetched page is held. Research-heavy agents should watch first.