SAFi puts a rulebook and a sandbox between AI agents and your computers
An open-source project on GitHub checks every action an AI agent proposes against written company policy, and logs each decision in a tamper-evident record.
The short version
- A central SAFi server holds policies and accounts; agents run in a terminal client and can only do what the server allows.
- On Linux, WSL and macOS, agents are sandboxed and by default cannot write outside their project workspace.
- Every tool call and policy decision goes into a hash-chained audit log that is meant to reveal tampering.
- It works with local models or with providers such as OpenAI, Anthropic and Gemini, and it is licensed under AGPL-3.0.
- The project says its compliance documents describe capabilities, not certifications.
What SAFi is
SAFi is an open-source project that aims to control what AI agents are allowed to do while they work. An agent here means an AI program that does not just answer questions but takes actions: reading a code repository, running tests, checking servers, or managing infrastructure.
The project page on github.com describes it with an analogy for IT staff. SAFi is like a domain controller for agents. That is the central server in a company network that stores accounts, groups and rules, and applies them to every machine.
In SAFi's version, a central governance server holds the policies. Each employee's computer runs a thin command-line client called safi-cli, which carries out only what the server permits.
Why it matters
AI agents that can run commands and edit files are only as safe as the limits around them. SAFi is one concrete attempt to enforce those limits with ordinary code and a clear paper trail, instead of trusting the model to behave. Teams that are starting to give agents real access can use it as a checklist of what good control looks like, even if they never install it.
Two layers of restraint
The first layer is a sandbox, a fenced-off area where a program can only touch what it has been explicitly given. SAFi uses bubblewrap on Linux and WSL (Windows' built-in Linux layer), and Apple's sandbox-exec on macOS.
By default, an agent cannot write outside its project workspace. Home directories, container and runtime sockets, and stores of credentials are hidden from every agent except the Sysadmin agent, which gets read-only access to inspect the host.
The second layer is policy. The source says the AI never runs commands on your servers directly. It only proposes actions, and those must pass the organization's rules and any required approvals first. The server also applies risk gates labeled R0 to R4. The page does not explain what each level means, so treat that as a detail to look up in the documentation.
An audit trail built to resist tampering
Every tool call, answer and policy decision is written to an audit log. The log is hash-chained, meaning each entry carries a fingerprint that depends on the entries before it. If someone quietly edits an old record, the chain stops matching, and the edit shows up.
The records feed an Audit Hub and a review queue, and can be exported for auditors. Inside the terminal client, a user can type /audit to inspect the governance record for any turn.
SAFi can also screen for sensitive personal and financial identifiers before they reach a model, and before a reply containing one is delivered. The page says this detection is plain deterministic code, and that three of the four checks rely on arithmetic checksums anyone can recompute. Every check is off by default and switched on per identifier.
Who runs it, and on what
- Try it quickly: the client can connect to a public demo server, or to a server you host yourself with Docker.
- Models: local models are supported, along with providers including OpenAI, Anthropic, Gemini, Groq, Mistral, DeepSeek, Cerebras and Zhipu.
- Hardware option: a product called SAFi Core is described as on-premise hardware that runs fully offline with three preloaded local models. Pricing is on the vendor's site, not in the source.
- Existing agents: an /evaluate gateway lets agents built elsewhere send their drafts for a policy check and an audit record.
Access is organized around four roles: admin, editor, auditor and member. Editors, who write agents and policies, cannot perform supervisory review, which keeps the people writing the rules separate from the people checking compliance.
What to be cautious about
The page is candid about limits. Its compliance documents say what ships today and what is still planned, and the authors state they make no certification claims. They call these capabilities that support a compliance program, not a replacement for one. Agreements with model providers remain the deploying organization's job.
The license is AGPL-3.0, a strong open-source license, with an exception that keeps an organization's own policies, tools, branding and data private. New versions come on a 12-week cycle, and the project advises production users to install a tagged release and check its published fingerprint.
As our hosts noted today, the project's existence is confirmed, but how mature it is remains an open question. The description comes from the project's own page, not an independent review or a security audit.
What to watch
- Whether independent security researchers review SAFi's sandbox and audit design.
- Whether teams adopt it in real workplaces, beyond the demo server.
- How the R0 to R4 risk levels and approval rules work in daily use.
Try it
Read the project's README on GitHub, then compare its controls (workspace limits, hidden credentials, approvals, audit log) with what your own team's AI tools can currently access.
More stories
Get The Daily
AI news, explained in 5 minutes a day. Free. The first issue is coming soon.
No password. Unsubscribe any time. Privacy
Say why
Liked it? Say why
Add a line for other readers.
No account needed. We never show your email. Comments with links, ads or abuse are held and not shown. Your comment shows after a quick check.
Sources
The reporting and documents this story is built from. Each link opens the original.
- ReportingGitHub: the article we sourced github.com
Written with AI by the SI Agent News Desk from the reporting above. Every number is checked against it.Spot a mistake or a concern? Contact us · Corrections.
Gemini
Open models
Gemini