Skip to Content
Agent ClientsCoding agents

Connect OpenClaw to Agent Authority

Connect OpenClaw to SecureAuth Agent Authority with OAuth sign-in so every MCP tool call is checked and audited

When you finish, every MCP tool call OpenClaw makes is checked against your policies and recorded in the audit log. OpenClaw, the open-source personal agent, reaches your approved tools through one SecureAuth Agent Authority gateway URL, and each person signs in as themselves.

Setup

  1. Add the MCP server. Run the command below on the machine where OpenClaw runs:

    openclaw mcp add secureauth \
      --url https://your-gateway-url/gateway/mcp \
      --transport streamable-http \
      --auth oauth

    This saves a secureauth entry under mcp.servers in ~/.openclaw/openclaw.json. OpenClaw reads the scopes to request from the gateway, so you don't pass --oauth-scope.

  2. Authenticate. If the OpenClaw Gateway is running, stop it first (openclaw gateway stop), because sign-in runs from the terminal. Then run:

    openclaw mcp login secureauth

    Open the URL it prints in your browser and sign in. OpenClaw saves the credentials when the browser returns, so you sign in once. Start the Gateway again afterward (openclaw gateway start).

  3. Start using. openclaw mcp probe secureauth lists the gateway's tools, and your agents can call them on their next turn.

    The agent is auto-registered on first connect.

OpenClaw connect steps in the console
The OpenClaw steps in the console carry your gateway URL.

Connecting to just one MCP? To stay under an agent's tool limit, point the URL at a single MCP — /gateway/mcp/{slug} instead of /gateway/mcp. Grab the exact URL from the resource's detail page; see Scope a connection.

Next steps

OpenClaw now reaches your tools through the secureauth server in ~/.openclaw/openclaw.json. Next, write the policy that decides which tools it can call.

  • Create a policy – control which tools OpenClaw can call.
  • Monitor activity – watch its tool calls appear in the dashboard and audit log.
  • Audit log – filter and search every tool call OpenClaw makes.

On this page