SolonGate Logo
  • Docs
  • Pricing
Sign inBook a Demo

Loading...

IntroductionPrerequisitesQuick StartAPI KeysInstallationPoliciesPrompt Inj. DetectionAI JudgeAgent Trust MapOpenClawDashboard Guide
GitHub

# Quick Start

Protect your AI tools in under 2 minutes. No code changes required.

Before you begin: Make sure you have Node.js v18+ and an AI tool client installed. See Prerequisites for the full list.

SolonGate protects your AI tools from prompt injection, shell execution, path traversal, data exfiltration, and other vulnerabilities that third-party tool integrations introduce. One command, zero code changes.

Option A: Security Proxy (Recommended)

The fastest way to secure your AI tools. No code changes, no API keys needed.

1Automatic Setup

Run this in your project directory (where your .mcp.json lives):

bash
1npx @solongate/proxy@latest init --all

This auto-detects your AI tool servers, wraps each one with the SolonGate proxy, and installs security hooks for all supported AI tools.

Select specific AI tools (optional)

By default, hooks are installed for all tools. Use flags to target specific ones:

bash
1# Only Claude Code + Gemini
2npx @solongate/proxy@latest init --all --claude-code --gemini
3
4# Only Gemini CLI
5npx @solongate/proxy@latest init --all --gemini
--claude-code--gemini--openclaw

2Restart Your Client

Restart your AI client — Claude Code, Claude Desktop, or any other. Done. Every tool call now passes through SolonGate's security pipeline.

3Verify It Works

Try calling a dangerous tool — it should be blocked:

> shell_exec("rm -rf /")
Error: POLICY_DENIED — "Block shell execution"
> file_read("readme.txt")
"Welcome to..." ✓ Allowed

See the Policies documentation for custom rules, constraints, and advanced options.

Option B: OpenClaw Plugin

Using OpenClaw? Install the SolonGate plugin to protect all OpenClaw tools automatically.

bash
1npm install @solongate/openclaw-plugin@latest
2export SOLONGATE_API_KEY=sg_live_your_key_here

Add @solongate/openclaw-plugin to your openclaw.yaml plugins list, restart OpenClaw, done.

> exec("rm -rf /")
[SolonGate] DENY — "Block bash/shell execution"
> message("hello!")
ALLOWED ✓

See the Policies documentation for configuration, constraints, and all options.

Option C: Inject Protection into Existing Server

Already built your own tool server? Inject SolonGate protection with one command — no handler changes needed.

1Run Inject

bash
1npx @solongate/proxy@latest inject

Auto-detects your TypeScript project, installs the SDK, and swaps McpServer with SecureMcpServer. Only 2 lines change. A backup is always created.

2Rebuild & Run

bash
1npm run build && npm start

Your tool handlers stay exactly the same. SolonGate wraps them internally with policy evaluation, input guard, and rate limiting.

To undo: npx @solongate/proxy@latest inject --restore. See the Policies docs for all options.

PrerequisitesAPI Keys