
The best way to get work done, instead of chatting about it and doing it yourself. Open-source, secure agents, in Slack and on the web. Self-hosted agent harness for teams: sandboxed, policy-controlled, and never touching a real credential.
Loading comments…
Maker
modemfox
Visit Website
onecli.sh
Project Info
Product Keywords
Alternatives
OneCLI is an open-source, self-hosted agent harness that acts as a security firewall for AI coding agents. Instead of trusting agents to behave responsibly, OneCLI sits between them and your infrastructure, enforcing policies at the network layer. It gates risky actions, blocks unauthorized API calls, and keeps real credentials locked in a vault—so agents never touch a secret directly. Built for developers who use tools like Claude Code, OpenAI Codex, or Cursor, OneCLI turns "please don't delete the database" from a prompt into a hard rule that cannot be bypassed.
OneCLI doesn't rely on the agent's judgment. It enforces policies at the proxy level, outside the LLM entirely. Whether the agent makes MCP tool calls, runs CLI commands, uses curl, or writes code, every request passes through the gateway where rules are applied deterministically.
Agents never hold a real secret. OneCLI injects scoped credentials per request, meaning each call gets exactly the access it needs—and nothing more. If an agent goes rogue, it can't exfiltrate keys because it never had them in the first place.
You can block specific endpoints like DELETE /repos or POST /payments, rate-limit agents per minute or hour, require human approval for sensitive operations, and scope access per project. These aren't suggestions—they're enforced at the network layer, so even a compromised or misbehaving agent can't break them.
Prompts are suggestions. OneCLI policies are enforced at the network layer, outside the agent, outside the LLM.
This is the core insight that sets OneCLI apart. Most agent security tools try to coax models into behaving through better prompts or fine-tuning. OneCLI recognizes that any LLM can be tricked, confused, or simply fail to follow instructions. By moving enforcement to the network layer, it makes safety a property of the infrastructure, not the model. The result is a system where "the agent tried to delete everything" becomes a rejected request, not a headline.
Other tools you might consider
You're running AI coding agents in any serious capacity and want to sleep at night. If you've ever watched an agent ignore a "do not do that" instruction, or if you're about to give Claude Code or Cursor access to your production environment, OneCLI offers a free tier for up to two agents—no credit card required. It's also worth a look if you're evaluating MCP gateways and finding them insufficient, since OneCLI covers every path an agent takes, not just MCP calls. For teams that value open-source tooling, self-hosting, and deterministic security, OneCLI is a practical, no-nonsense addition to your stack.