Skip to Content
Agent ClientsCoding agents

Connect Claude Code to Agent Authority

Connect Anthropic's Claude Code to SecureAuth Agent Authority so every MCP tool call is checked and audited

When you finish, every MCP tool call Claude Code makes is checked against your policies and recorded in the audit log. Anthropic's Claude Code reaches your approved tools through one SecureAuth Agent Authority gateway URL, and each developer signs in as themselves.

Setup

  1. Add the MCP server.

    claude mcp add --transport http \
      secureauth https://your-gateway-url/gateway/mcp
  2. Start Claude Code.

    claude
  3. Open MCP settings. Type /mcp and select secureauth.

  4. Authenticate. Choose Authenticate. A browser window will open for sign-in.

    The agent is auto-registered on first connect.

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.

Send model calls through the AI gateway

The steps above put Claude Code's MCP tool calls through the gateway. To put its model calls through the AI gateway too, where model access rules decide each one, set ANTHROPIC_BASE_URL to https://<your-gateway-url>/gateway/llm/anthropic and ANTHROPIC_API_KEY to an agent token. See Connect Claude Code and Codex to create the agent token, or to keep a Claude sign-in instead of an API key.

Next steps

On this page