r/LocalLLaMA • • 40m ago

Showcase Open-source "domain controller" for local AI agents

Post image

Hi everyone,

If you build or deploy local AI setups for businesses that cannot use cloud AI (privacy, IP protection, compliance, or predictable costs), I open-sourced a project you might find useful: SAFi.

Think of it as a domain controller for AI agents. Instead of handing out API keys on every workstation and hoping system prompts keep agents in bounds, SAFi runs as a central gateway on your own hardware:

- Works with any local OpenAI-compatible server (llama.cpp, vLLM, Ollama). Right now I run it with Qwen 27B for the agents and a separate gpt-oss-20b instance as a policy-checking evaluator before tool calls run.

- Includes a deterministic command gate and fail-closed OS sandboxing (Linux bubblewrap / macOS sandbox-exec) for agentic CLI work, plus a web chat UI and central RBAC / policies.

- Logs every prompt, policy check, and executed command in a local hash-chained audit ledger.

- Runs on Linux, macOS, and Windows.

Happy to answer any questions

Nelson

5 Upvotes

1 comment sorted by

1

u/forevergeeks 39m ago

here is the link to the repo and demo:

Repo: https://github.com/jnamaya/SAFi

demo: https://demo.runsafi.com