Guardrails for Claude Code. Catches rm -rf on your home directory, force-pushes, edits to protected files, reads of your SSH keys and .env, and attempts to switch Lelu itself off, before they run. Starts in shadow mode, so you see what it would block first. Runs locally, no account.
Lelu is an open-source authorization engine that sits between your AI agent and the real world. Before the agent takes any action — issuing a refund, sending an email, deleting a record — it asks Lelu first, and Lelu returns one of four decisions:
✅ allow — the action runs
⛔ deny — blocked, with a reason
🙋 human_review — the agent pauses until a human approve
🧪 compute — redirected to a safer alternative or sandbox
It's one HTTP call from any language or framework, every decision is written to an audit log, and the engine runs entirely on your own machine or infrastructure.
Why Lelu?
A decision point and approval layer for AI agent actions — with a signed record of every decision.
Lelu sits next to your policy engine, not in place of it. OPA, Cedar, Cerbos and your identity provider decide who may do what; Lelu adds a human-approval step that is bound to the exact call that was reviewed, and a signed, hash-chained record of every decision. It also offers advisory signals — a phrase-based prompt-injection screen and a confidence gate — that can only make a decision stricter. See What Lelu does not do before you rely on it.
OPA, Casbin, and AWS AVP handle role & permission checks, but stop there. Lelu does that too, and adds:
Advisory prompt-injection screening (phrase matching; English only, easy to evade — a speed bump, not a defence)
Confidence gating on a caller-supplied confidence signal (the engine cannot verify it)