openguardrails/openguardrails
AI agent guardrails for every builder. Local rules, a sandbox and a firewall for your agents, open source.
What it solves
AI agents perform many actions automatically, and most are safe. But some can be dangerous, like sending an API key to an unknown host. OpenGuardrails decides which actions are safe to run and which should be refused, without making you approve every single step. It applies strict local rules first, and only calls a judging model when the rules cannot decide.
How it works
You run a local service (openguardrails serve) and point your agent to it. Every tool call goes through this gateway. The gateway checks a set of local rules: a strict shell parser that only allows fully understood commands, a read-only allowlist, workspace boundaries, and a list of things no agent should ever do. If a rule clearly allows or denies the action, that is the result. If the rules cannot decide, the action is sent to a model built to judge agent actions. The model can allow it, refuse it (and the agent is told why), or ask you for a decision.
Secrets are protected: they become placeholders before any request leaves your machine, so the model provider never sees them. The tool gets the real value only after its call is allowed. The service also runs a sandbox and firewall, recording every connection an agent makes and reporting hosts the agent reached even if no tool call named them.
Who it’s for
Developers who build or use AI agents and want them to act autonomously while keeping control. It works with existing agents like Hermes, OpenClaw, and DeepSeek Harness, and requires Node 22.12 or newer. Companies can also use the enterprise product OpenGuardrails AIRS for organisation-wide policy and audit.
Highlights
- Runs entirely on your machine with no network or model for most decisions.
- Keeps your API keys and secrets private – they become placeholders before leaving your machine.
- Refusals don't end the task: the agent is told what was refused and what it may do instead.
- Includes sandbox and firewall to contain agent actions and log connections.
- Full transparency:
openguardrails decisionsshows every decision, and model requests are logged.
Related
- Project
- Project
- Project
- Project