Govern AI agent activities with precise policy enforcement and auditable controls.
Project details
SAFi offers a robust governance gateway for AI agents, ensuring real-time policy enforcement and comprehensive audit trails. By managing tool calls and decisions, this open-source solution provides transparency and regulatory readiness, making it an essential tool for organizations seeking to govern AI responsibly.
SAFi (Self-Alignment Framework Interface) is an open-source runtime governance gateway for AI agents. It sits between agents and your infrastructure like a domain controller for AI, enforcing written policies before commands run, confining tool execution at the OS level, and recording every decision in a local audit ledger.
safi-cli) executes agent tools inside Linux bubblewrap or macOS sandbox-exec with restricted filesystem, IPC/UTS, and environment boundaries. If the sandbox is unavailable, execution fails closed.SAFi uses a client-server model where the SAFi Governance Gateway manages accounts, groups, and policies centrally while safi-cli runs as a thin, sandboxed terminal client on developer or admin workstations. No LLM API keys sit on the workstation, and local users cannot override server-enforced policies.
[ Workstation: safi-cli ] --HTTPS--> [ SAFi Governance Gateway (Server / Appliance) ] --> [ Local / Cloud Models ]
* Thin terminal client * Central Identity (SSO / LDAP / SCIM) & RBAC
* OS-sandboxed tool execution * Immutable Charters & Policies (no local overrides)
* Zero LLM API keys on laptop * Conscience + deterministic risk gates (R0-R4)
* Unified hash-chained Audit Hub across every workstation
SAFi ships with three ready-to-use CLI agents, each bound to its own default policy (plus support for custom agents through the web admin portal):
software_engineer): Inspects repositories, edits code, writes tests, and runs build and test commands inside a scoped sandbox.security_engineer): Runs authorized security checks, code audits, header/SSL/port inspections, and defensive hardening.sysadmin): Diagnoses servers, inspects services, logs, disks, and firewalls, and assists with fleet operations.In SAFi, your written policies are enforced at runtime rather than left to prompt suggestions. Because every prompt, policy verdict, and executed action is logged in a verifiable local ledger, SAFi produces concrete audit evidence to support security reviews and regulatory frameworks such as SEC 17a-4, FINRA 3110, HIPAA, CMMC, GDPR, and the EU AI Act.
SAFi includes built-in detection and blocking for sensitive personal and financial data, including credit card numbers, Social Security numbers, and other regulated identifiers, helping prevent accidental exposure during AI interactions while logging every block event.
Comments
0Start the conversation
Share the first comment.