Get started
zn-gate documentation
zn-gate is an open-source security layer that runs on your machine, between your coding agent and the tools and content it touches.
zn-gate lets you use Claude Code, Codex CLI, Cursor, OpenCode, Antigravity, ZCode desktop app or any MCP client without exposing your secrets, your data or your systems. It runs on your machine, needs no account and sends nothing anywhere by default.
It does three things today:
- Scrubber. Replaces secrets with markers before the model sees them: in MCP tool output and, with the hooks (npm), in the agent's file reads, command output and prompts.
- Galvanize. Checks prompts, tool arguments, tool output and MCP tool descriptions for prompt injection with a local rules engine. An optional cloud second opinion uses the Galvanize 3.1 model.
- Scan. Audits prompt templates,
AGENTS.mdandSKILL.mdfiles and configs for injection traps and leaked secrets.
Try it without installing anything
The playground runs attack and benign examples against a browser build of zn's deterministic rules. Nothing you type leaves your device. The playground in the dashboard calls the zn Cloud API with your key: every result shows what the rules decided and, when the model ran, the score of Galvanize 3.1, even when a rule already decided.
Pick your path
| You want to | Start here |
|---|---|
| Protect a coding agent on your machine | Quickstart |
| See it work and learn what its messages mean | First 5 minutes |
| Wrap the MCP servers you already use | Protect MCP servers |
| Guard tools inside your own Python or Node.js agent | SDK |
| Know exactly what is sent, and when | What leaves your machine |
| Add the optional cloud second opinion | zn Cloud API |
| Give an AI agent everything it needs to integrate zn-gate | Docs for AI agents |
| Run the model yourself | Galvanize 3.1 · Galvanize 2 and Galvanize-60M (previous) |
Get help
Security reports go to security@usezn.com (see the security policy). Questions: hello@usezn.com. Source and issues: github.com/usezn/zn. Questions and ideas: GitHub Discussions.