whereismyai
Aegis Proxy
Aegis Proxy is an open-source security proxy for PostgreSQL that blocks destructive SQL queries from AI agents.
Aegis Proxy sits between your application and your Postgres database to block destructive queries before they run without requiring changes to your database code. It uses native PostgreSQL AST parsing via wasilibs/go-pgquery to analyze agent queries in real time. The Go proxy engine intercepts PostgreSQL wire-protocol traffic on port 5433, while the Python SDK provides a decorator to provision ephemeral database branches via the Neon API. It is designed for developers building multi-agent workflows who need to secure AI agents against hallucinations and rogue statements. The project offers open-source, hosted SaaS, and enterprise guardrail tiers with features like static rate limiting, wire transparency, and connection termination.
Aegis Proxy at a glance
- Best for: Software engineer
- Runs on: Docker, self-hosted, open source, API, CLI
- Pricing: Free open-source tier; paid hosted SaaS plans and enterprise guardrail tier available.
- Released: November 2026
- Category: AI coding tool
- Website: github.com/raymondhani/aegis-proxy
Key features
- Intercepts destructive SQL queries at the network layer
- Terminates connections before reaching the database
- Provides a Python SDK with a decorator for ephemeral branches
- Parses PostgreSQL ASTs in real time
- Authenticates agents using signed JWTs
- Monitors activity with OpenTelemetry threat telemetry
- Runs as a wire-transparent proxy for PostgreSQL
Use it for
- Securing AI agents against destructive database queries
- Running multi-agent workflows with sandboxed execution
- Provisioning ephemeral Neon database branches automatically
- Intercepting PostgreSQL wire-protocol traffic
Alternatives to Aegis Proxy
- Vericto Proxy — Protects production databases from destructive SQL without requiring code changes.
- pgEdge — It combines AI tooling with standard Postgres and flexible deployment options.
- pgbot — It gives you plain-English answers and explanations instead of complex database dashboards.
- Postgres MCP Pro — It provides AI agents with deep database analysis and safe query execution tools.
- Neon — Cuts frontier model tokens and automates routine agent steps using small tuned models.
- AgentGate — Blocks attacks in under 35ms with a local neural classification head.
- Aiproxy — Keeps sensitive data on your machine and prevents leaking PII to LLM providers.
- Aethens — Runs verifiers in a Docker sandbox to find broken, flaky, and gameable tests.
- MCPgraphy — Learns from agent calls to prevent invalid tool execution.
- Frizky Kramer — Integrates with existing Claude Code, Codex, or Cursor installations.
- ARTEX — Runs autonomous multi-agent penetration testing with a dual-graph architecture.
- MCP Toolsearch Proxy — Cuts token usage by 97 percent for large tool catalogs while maintaining high search accuracy.
All Aegis Proxy alternatives