The authorization engine for AI agents.
Every action checked. Every decision logged. Humans in the loop when it matters — a permission system your agents can't talk their way around.
Legitimate requests pass. Attacks don't.
Watch a request travel from your agent through Lelu's policy, confidence, and injection checks — and see what happens when a prompt injection tries the same path.
Agent reads a customer record with authorized scope
support-agent → GET /v1/customers/42
Your agents
- LangChain / CrewAI
- MCP servers
- Chatbots
- Apps + scripts
External services
- Databases
- Email + Slack
- Payments
- SaaS APIs
tools + APIs
Humans
Approve risky actions in Slack
Event log
- 1Agent requests customer:read via SDK
- 2Policy check — crud-read grants read on customers
- 3Confidence 0.96 verified, above threshold
- 4Allowed — tool call executed against the API
- 5Decision written to audit log (tr_4d21b8)
Lelu checks, decides, and logs every agent action
One HTTP call replaces weeks of guardrail infrastructure. Works with every major agent framework.
01
Agent calls a tool
LangChain, CrewAI, MCP, or plain HTTP — the agent asks Lelu before acting.
POST /v1/agent/authorize
02
Identity & policy
The actor is resolved and the action is checked against your YAML or Rego policy.
actor: support-bot
03
Security filters
Prompt-injection screening, verified confidence gating, and behavioral anomaly scoring.
confidence: 0.92 ✓
04
Decision returned
allow, deny, human_review, or compute — one of four explicit outcomes, never a guess.
"allowed": false
05
Audit log written
Every decision is recorded with full context: who, what, why, and the trace ID.
trace_id: tr_7f3a9c
Your agent asks. Lelu decides.
Run the real engine on your machine in one command — no account, no Docker, no config.
npx -y lelu-mcp start # → local engine ready — policy, key, and audit # trail live in ~/.lelu. No account needed.
Works with your stack
Agent frameworks, policy languages, identity standards, and observability tools.
Works with your stack
Ready to give your agents guardrails?
The local engine is free, open source, and starts in one command.