Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Shashank-H/gaiter-gaurd/llms.txt
Use this file to discover all available pages before exploring further.
What you’ll build
By the end of this guide, you’ll have:- GaiterGuard running in Docker with a PostgreSQL database
- A registered service (Stripe test API)
- An AI agent with a scoped
Agent-Key - A working proxy request that gets risk-assessed and forwarded
Prerequisites: Docker and Docker Compose installed on your machine.
Step 1: Clone and configure
Clone the GaiterGuard repository and set up your environment:backend/.env with your configuration:
backend/.env
Step 2: Start services
Launch all containers with Docker Compose:| Service | URL | Status |
|---|---|---|
| Backend API | http://localhost:3000 | GET /health |
| Frontend dashboard | http://localhost:4173 | Web UI |
| PostgreSQL | localhost:5432 | Internal |
Step 3: Register a user
Open the dashboard at http://localhost:4173 and create your first account:Sign up
Click Sign Up and enter your email and password. This creates a user in the PostgreSQL database.
access_token from the login response — you’ll need it for the next steps.
Step 4: Register a service
Create a service entry for the Stripe test API. This stores the base URL, authentication type, and encrypted credentials:Credentials are encrypted with AES-256-GCM and stored in the
credentials table. The bearer_token value is never returned in API responses.id (e.g., 1) — you’ll use it when creating an agent.
Step 5: Create an agent
Provision an agent with a scopedAgent-Key:
Step 6: Test the proxy
Send a low-risk request through the gateway:Low-risk response (auto-forwarded)
If the risk score is belowRISK_THRESHOLD (0.5), you’ll get a 200 response with the Stripe API data:
X-Proxy-Status: forwarded— request was automatically approved and forwardedX-Idempotency-Status: processed— idempotency key was recorded
High-risk response (requires approval)
If the risk score meets or exceeds the threshold, you’ll get a428 response:
Step 7: Approve and execute
For blocked requests, the agent must poll for approval:Approve in dashboard
Open http://localhost:4173/approvals and click Approve on the pending request. You’ll see:
- The agent’s intent: “Delete customer account per GDPR request”
- The full HTTP request (method, URL, headers, body)
- The risk score and explanation
What you learned
Secret isolation
Your agent never saw the Stripe API key. GaiterGuard injected it at request time from the encrypted vault.
Risk-based gating
Low-risk GET requests passed through instantly. High-risk DELETE required human approval.
Approval workflow
Blocked requests queue for review. You approved from the dashboard, and the agent executed after polling.
Intent transparency
Every request includes a natural language intent. The LLM checks if the intent matches the actual payload.
Next steps
Installation guide
Deploy GaiterGuard to production with custom configurations.
Architecture
Learn how risk scoring, credential injection, and approval flows work.
Agent integration
Integrate GaiterGuard into your AI agent codebase with polling loops and error handling.
Agent skill
Install the bundled agent skill to teach your AI how to use the gateway protocol.