Change control for AI agents. Everyday work runs on its own; anything an agent can't take back waits for a teammate's sign-off, and every action lands on a tamper-evident record. Open source.
pip install squidbrake==0.14.2 Copy PIP instructions
Change control for AI agents. Agents propose. People approve.
Your AI agents run commands, edit code, call MCP tools, send emails, issue refunds and change databases. Squidbrake sits between the agents and those actions:
Every decision goes into a tamper-evident record that someone outside engineering can read.
One policy covers every agent your company runs: Claude Code, Cursor, Codex, Gemini CLI, VS Code Copilot, Antigravity, and any MCP tool. Open source (Apache 2.0) and free for one person; more than one person, phone approvals, Slack/Teams/email and the audit export are part of the Team plan (squidbrake license). Runs on your laptop or your own server.
Agents are good at each step and blind to the whole. Often every step is allowed, and the combination isn't:
Built-in agent permissions judge one tool call at a time, inside one agent. Squidbrake judges each action against what came before it, across conversations and agents. A person signs off on what matters, with the reason and the steps that led to it.
agent (Claude Code, Cursor, Codex, MCP client, your own code) │ every action, before it runs (hook, MCP proxy or HTTP) ▼ Squidbrake gateway ── rules.yaml + what came before ──► allow · hold for a person · block │ │ └──────────── tamper-evident record ◄──────────────────────┘ dashboard · phone · Slack · Teams · email · SIEM Deterministic. No LLM decides anything. Rules and checks are in rules.yaml, hot-reloaded on save. Reads what a command really does before it runs: ls && rm -rf ~/, bash -c "...", curl ... | sh Makefile targets and package.json scripts commands sent over ssh, docker exec and kubectl exec Shows the approver the blast radius, measured on the developer's machine: "removes 3 commits from origin/main" "deletes 4,312 rows of 10,240 in orders" "destroys 12 resources, including aws_db_instance.main"
1. Install. One line installs it, runs it in the background, connects every agent on this computer, and opens the dashboard:
curl -fsSL https://pilots.squidbrake.com/install.sh | SQUIDBRAKE_REF=github sh # macOS / Linux $env:SQUIDBRAKE_REF="github"; irm https://pilots.squidbrake.com/install.ps1 | iex # Windows Or with pip: pip install squidbrake && squidbrake setup.
2. Start in observe mode. Nothing is blocked or held; Squidbrake records what it would have done:
squidbrake connect all --mode observe squidbrake doctor # every agent connected, and what each one's hook does and doesn't check 3. Review after a week:
squidbrake report --week # held, blocked, would-have, false-positive rate, decision time, chains caught Mark any hold that shouldn't have happened with "This was legit" in the dashboard, or squidbrake feedback EVENT_ID legit. The report counts the false-positive rate per rule.
4. Enforce. Set mode: enforce in ~/.squidbrake/rules.yaml. You can also enforce rule by rule (mode: on a single rule) and observe the rest.
Even in observe mode, three things are always enforced:
No install? Open the live demo in your browser: a sandbox company's support agent works its inbox while you watch.
More ways to install: docs/install.md. First run not right? docs/troubleshooting.md.
rules: - id: approve-money-out action: review # allow | review (a person decides) | deny reason: Bank transfers, wires and payouts need finance sign-off timeout_seconds: 900 approvers: ["role:finance", "role:admin"] match: name: ["*transfer*", "*wire*", "*payout*"] sequences: - id: runaway-refunds action: deny reason: Too many refunds in a short time; the agent may be stuck in a loop match: { name: ["*refund*"] } count: { more_than: 10, within_hours: 1, scope: identity } # across all of one person's agents Proof The incidents and the session benchmark run in CI, so they can't quietly stop being true.
squidbrake doctor lists, for each agent on a computer, what its hook doesn't see. Details: docs/install.md and docs/integrations.md.
Squidbrake is a policy and approval layer for agents that make mistakes or follow instructions they shouldn't. It is not a sandbox against an agent deliberately trying to escape.
The full list, per agent and with the test behind each claim, is in THREAT_MODEL.md. To report a vulnerability, see SECURITY.md.
What your agents do never leaves your machine or server: commands, files, prompts, tool inputs and outputs, and the audit trail.
Anonymous usage counts are sent to the Squidbrake team:
The first run in a terminal says so, and asks, optionally, for your work email and name (Enter skips it; only if you give an email are it, your name and the names of the coding agents installed here sent). squidbrake telemetry status shows exactly what is sent, and DO_NOT_TRACK=1 turns it off. Details: docs/operations.md.
Squidbrake is early and moves fast: releases are frequent, and the rules format can still change between minor versions. Start in observe mode, and read the release notes before upgrading.
Tell us what you need most with a 👍 or a comment on the issue.
All 2 files in this release have provenance metadata.
ai-agents approval audit claude-code guardrails human-in-the-loop mcp security
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.
All 2 files in this release have been uploaded with provenance metadata.
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.




