🛡️ Node9 Proxy
The "Sudo" Command for AI Agents.

Node9 is the execution security layer for the Agentic Era. It encases autonomous AI Agents (Claude Code, Gemini CLI, Cursor, MCP Servers) in a deterministic security wrapper, intercepting dangerous shell commands and tool calls before they execute.
While others try to guess if a prompt is malicious (Semantic Security), Node9 governs the actual action (Execution Security).
💎 The "Aha!" Moment
AIs are literal. When you ask an agent to "Fix my disk space," it might decide to run docker system prune -af.
With Node9, the interaction looks like this:
- 🤖 AI attempts a "Nuke":
Bash("docker system prune -af --volumes")
- 🛡️ Node9 Intercepts: An OS-native popup appears immediately.
- 🛑 User Blocks: You click "Block" in the popup.
- 🧠 AI Negotiates: Node9 explains the block to the AI. The AI responds: "I understand. I will pivot to a safer cleanup, like removing only large log files instead."
⚡ Key Architectural Upgrades
🏁 The Multi-Channel Race Engine
Node9 initiates a Concurrent Race across all enabled channels. The first channel to receive a human signature wins and instantly cancels the others:
- Native Popup: OS-level dialog (Mac/Win/Linux) for sub-second keyboard dismissal.
- Browser Dashboard: Local web UI for deep inspection of large payloads (SQL/Code).
- Cloud (Slack): Remote asynchronous approval for team governance.
- Terminal: Classic
[Y/n] prompt for manual proxy usage and SSH sessions.
🧠 AI Negotiation Loop
Node9 doesn't just "cut the wire." When a command is blocked, it injects a Structured Negotiation Prompt back into the AI’s context window. This teaches the AI why it was stopped and instructs it to pivot to a safer alternative or apologize to the human.
⏪ Shadow Git Snapshots (Auto-Undo)
Node9 takes silent, lightweight Git snapshots right before an AI agent is allowed to edit or delete files. If the AI hallucinates and ruins your code, don't waste time manualy fixing it. Just run:
node9 undo
🌊 The Resolution Waterfall
Security posture is resolved using a strict 5-tier waterfall:
- Env Vars: Session-level overrides (e.g.,
NODE9_PAUSED=1).
- Cloud (SaaS): Global organization "Locks" that cannot be bypassed locally.
- Project Config: Repository-specific rules (
node9.config.json).
- Global Config: Personal UI preferences (
~/.node9/config.json).
- Defaults: The built-in safety net.
🚀 Quick Start
npm install -g @node9/proxy
node9 addto claude
node9 addto gemini
node9 init
node9 status
🛠 Protection Modes
| Hook Mode | Claude, Gemini, Cursor | node9 addto <agent> wires native pre-execution hooks. |
| Proxy Mode | MCP Servers, Shell | node9 "npx <server>" intercepts JSON-RPC traffic. |
| Manual Mode | You | node9 rm -rf / protects you from your own typos. |
⚙️ Configuration (node9.config.json)
Rules are merged additive—you cannot "un-danger" a word locally if it was defined as dangerous by a higher authority (like the Cloud).
{
"settings": {
"mode": "standard",
"enableUndo": true,
"approvers": {
"native": true,
"browser": true,
"cloud": true,
"terminal": true
}
},
"policy": {
"sandboxPaths": ["/tmp/**", "**/test-results/**"],
"dangerousWords": ["drop", "destroy", "purge", "push --force"],
"ignoredTools": ["list_*", "get_*", "read_*"],
"toolInspection": {
"bash": "command",
"postgres:query": "sql"
}
}
}
⏪ Phase 2: The "Undo" Engine (Coming Soon)
Node9 is currently building Shadow Git Snapshots. When enabled, Node9 takes a silent, lightweight Git snapshot right before an AI agent is allowed to edit or delete files. If the AI hallucinates, you can revert the entire session with one click: node9 undo.
🔧 Troubleshooting
node9 check exits immediately / Claude is never blocked
Node9 fails open by design to prevent breaking your agent. Check debug logs: NODE9_DEBUG=1 claude.
Terminal prompt never appears during Claude/Gemini sessions
Interactive agents run hooks in a "Headless" subprocess. You must enable native: true or browser: true in your config to see approval prompts.
"Blocked by Organization (SaaS)"
A corporate policy has locked this action. You must click the "Approve" button in your company's Slack channel to proceed.
🗺️ Roadmap
🏢 Enterprise & Compliance
Node9 Pro provides Governance Locking, SAML/SSO, and VPC Deployment.
Visit [node9.ai](https://node9.ai