cd /news/ai-agents/show-hn-claw-patrol-a-security-firew… · home topics ai-agents article
[ARTICLE · art-24286] src=github.com ↗ pub= topic=ai-agents verified=true sentiment=· neutral

Show HN: Claw Patrol, a security firewall for agents

Claw Patrol, a new open-source security firewall for AI agents, intercepts agent traffic at the network level and enforces rules written in HCL before requests reach production systems. The tool can block destructive SQL commands, pause dangerous Kubernetes operations for human approval, and supports multiple deployment modes including per-process tunnels and full-host WireGuard connections.

read1 min publishedJun 9, 2026

The security firewall for agents.

Claw Patrol sits between your agents and prod, parses their traffic at the wire, and gates each action against rules you write in HCL. For example, you can block destructive SQL, or kubectl delete pod

until a human approves it before the request reaches Kubernetes.

For the full overview see clawpatrol.dev.

curl -fsSL https://clawpatrol.dev/install.sh | sh

From source: make

(requires Go and Node.js).

A real rule from our own production config:

rule "k8s-no-secrets" {
  endpoint  = k8s-prod
  condition = "k8s.resource == 'secrets'"
  verdict   = "deny"
  reason    = "Secret values must not leave the cluster via the agent"
}

Conditions are CEL expressions over wire-level facts the gateway extracts per protocol: SQL verbs and table names for Postgres / ClickHouse, resource / verb / namespace for Kubernetes, method / path / headers / body for HTTP. The full set of facts lives in the config reference.

Three deployment shapes; pick whichever fits.

clawpatrol gateway config.hcl   # run the proxy itself
clawpatrol join <gateway-url>   # join a gateway
clawpatrol run claude           # wrap one agent's process tree

clawpatrol run

opens a per-process tunnel on Linux (via netns) or macOS (via NetworkExtension); only the wrapped command's traffic goes through the gateway. clawpatrol join

brings up a WireGuard tunnel that routes the whole host. clawpatrol gateway

is the proxy: a single binary that loads your HCL config and accepts clients tunneling in via WireGuard or Tailscale.

clawpatrol.dev/docs/getting-started walks through a first config end-to-end. clawpatrol.dev/docs/config-reference is the auto-generated field reference. See gateway.example.hcl for an annotated starting template.

MIT. See LICENSE.md.

── more in #ai-agents 4 stories · sorted by recency
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/show-hn-claw-patrol-…] indexed:0 read:1min 2026-06-09 ·