Skip to main content

Installation

Requires Python 3.10+.

Authentication

Or pass directly:

Evaluate a tool call

Drop-in wrapper for existing agents

Replace your existing tool dispatch with this single function:

Multi-turn session protection

Pass a consistent session_id across turns to enable escalation scoring. After repeated denied turns in a session, subsequent calls are blocked even if per-turn content looks benign.

Admission decision object

Error handling

Claude Code — MCP integration

For teams using Claude Code, install the Guard MCP Server instead. Every tool call is governed automatically with no code changes.
See the Guard MCP Server guide for full setup instructions.