Skip to main content

Guard an OpenClaw agent

Install LumoAuth Guard in OpenClaw. Each tool call is checked against what you allowed, and risky ones ask you first.

RecipeReadyView source
Works with
OpenClaw

What it shows​

  1. You install the plugin and run setup in your terminal.
  2. Setup creates a key on your machine and shows a code. You approve the code in the portal, and LumoAuth creates the agent with the capabilities that you ticked.
  3. The preset decides which capabilities start ticked: Observer, Personal assistant or Builder.
  4. The plugin decides each tool call from the capabilities of the agent: it runs, it asks you, or it is blocked.
  5. You stop the agent from the terminal with lock, or from the portal with Suspend.

The machine never receives an administrator token or an API key. It sends only its public key and the list of capabilities that it asks for.

Before you start​

  • OpenClaw 2026.11.5 or later.
  • A LumoAuth organization, and the address of its portal, for example https://app.lumoauth.dev/orgs/acme-corp/portal.

Set it up​

  1. Install the plugin. OpenClaw asks two questions, because the plugin comes from npm: answer y to both. Until setup ends, the plugin blocks every tool call.

    openclaw plugins install npm:@lumoauth/openclaw
  2. Run setup. Enter the address of your portal, and choose the preset assistant (Personal assistant). Setup prints a link, a code and a key fingerprint, and waits.

    openclaw lumoauth setup
  3. Open the link and sign in. The page Enroll an agent shows the name of the agent, the code and the key fingerprint. Check that the code and the fingerprint match your terminal.

  4. Under What it may do, the capabilities that only read are ticked. Tick the other capabilities that the agent may use without asking you, for example files:write. Then click Approve and create the agent. You become the owner of the agent. The switch May act on your behalf is on, because setup asked for approvals through LumoAuth: keep it on to get approval requests on your phone or in Slack.

  5. Back in the terminal, setup saves its settings, turns the plugin on and runs a self-test. If an OpenClaw gateway runs, restart it once: openclaw gateway restart.

  6. Run openclaw lumoauth status to see the agent, its capabilities and the latest decisions. Run openclaw lumoauth doctor to check the security settings of OpenClaw. Doctor changes nothing.

  7. To stop every tool call on this machine at once, run openclaw lumoauth lock "Going on holiday". Run openclaw lumoauth unlock to lift the lock. The agent cannot unlock itself.

For a script, openclaw plugins install takes --force --accept-capabilities, and setup takes --url, --preset, --approvals auto and --yes. You still approve the agent in the portal.

These steps were followed on a LumoAuth organization. The steps were followed with OpenClaw 2026.11.5 and @lumoauth/openclaw 0.1.1 against a LumoAuth organization, up to the suspend and the reactivation in the portal. The tool calls of the checks came from a test model that asks for one fixed tool call, in place of a real model.

Check the result​

openclaw lumoauth status prints this, after a few tool calls:

Output
LumoAuth Guard status
Agent Northwind laptop OpenClaw (agt_bd448de555064311)
LumoAuth https://app.lumoauth.dev, organization acme-corp
Agent page https://app.lumoauth.dev/orgs/acme-corp/portal/agents/agt_bd448de555064311
Key fingerprint m_XQ-Yh3l-24S7-h2Ym
Preset assistant
Decisions local; not granted → ask; approvals auto
Taint on, 30 min, escalates external
Lock off
LumoAuth connected; 13 capabilities
• files:read Read files
• files:write Create and change files
• web:search Search the web
• web:fetch Open web pages
…

Last report from OpenClaw (process 1363962, 2026-11-28T02:14:57Z)
Receipts: 4 sent, 0 queued, 0 running, 0 dropped
Recent decisions:
2026-11-28T02:13:46Z expired exec shell:exec · not_granted:cancelled
2026-11-28T02:13:45Z blocked read files:read · hard_rule
2026-11-28T02:13:39Z allowed read files:read · granted
2026-11-28T02:13:20Z blocked read files:read · snapshot_unavailable
  • Ask the agent to show ~/.ssh/id_rsa. The plugin blocks the call, and the model gets the reason: "LumoAuth Guard blocked this call. Protected by a rule that cannot be changed: a credential store (SSH, cloud, registry or browser secrets). Do not try another way to do this."
  • Ask the agent to run a command. The preset does not grant shell:exec, so OpenClaw asks you to allow the call. A run with nobody to answer, such as a cron job or openclaw agent from a script, ends with "Plugin approval unavailable".
  • In the portal, open Agents, then the agent, and click Suspend, then Confirm. Within a minute, every tool call is blocked: "LumoAuth cannot confirm this agent's permissions". Click Reactivate, and the calls run again.
  • In the portal, open Audit logs. Each decision has an entry agent.tool_call.reported, for example "Agent reported a tool call: read (blocked)." The arguments of a call never leave the machine.

Limits​

  • The plugin is not a sandbox. The agent runs with your user account. Turn on the sandbox of OpenClaw too: doctor names the setting.
  • The plugin checks the calls that OpenClaw sends through its tool hook.
  • The risk of an MCP tool comes from the name of the tool.
  • Approvals on your phone, in Slack or in Discord need the switch May act on your behalf of the agent. Check that your plan includes agent governance in the plans matrix. Approvals in OpenClaw work without it.
  • openclaw security audit does not show the checks of the plugin. Use openclaw lumoauth doctor.