Install
$ agentstack add mcp-slahiri-llm-gateway ✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
Verified badge
Passed review? Show it. Paste this badge into your README, it links to the public security report.
Reliability & compatibility
Declared compatibility
Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.
We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.
How agent discovery & health will work →About
LLM Gateway
[](https://github.com/slahiri/llm-gateway/actions/workflows/ci.yml) [](LICENSE) [](https://go.dev/) [](https://www.postgresql.org/) [](docs/features.md)
A Go-based LLM gateway platform built for enterprises with compliance, audit, and data-sovereignty requirements. Proxy, governance, multi-tenant accounts, metered billing, and an admin frontend — in a single binary.
Status: pre-MVP. Design phase. No code yet. The architecture and roadmap live in [docs/features.md](docs/features.md).
Why
The existing LLM gateways trade off in ways enterprise buyers cannot accept:
- The broad Python aggregator: structural perf and memory issues,
paywalled governance, no jurisdiction-aware compliance.
- The Go performance leader: best raw latency, but enterprise audit
/ RBAC / SSO is paywalled and "designed for SOC 2" with no attested certifications.
- The governance-focused TypeScript player: closest on compliance,
but hybrid VPC that phones home every 60 seconds, no WORM audit, no jurisdiction-specific PII detectors, closed-source control plane.
- The hosted SaaS aggregator: disqualifies anyone with data
residency or audit requirements.
This project ships compliance-first OSS for any enterprise that needs auditability, data sovereignty, and tenant isolation under SOC 2, ISO 27001, HIPAA, GDPR, or sector-specific frameworks.
Differentiators
- Jurisdiction-aware PII detection out of the box — PAN, Aadhaar,
UPI VPA, IFSC, GSTIN, Emirates ID, NRIC, IBAN, SWIFT, US SSN, PCI PAN. Shipped with regression tests, not config burden on a third-party library. Designed for enterprises operating across multiple jurisdictions.
- WORM-by-default audit log with S3 Object Lock adapter, HMAC
chained signatures, native SIEM / syslog export. Not paywalled.
- Evidence packs mapped to SOC 2, ISO 27001, HIPAA §164, GDPR,
and sector-specific frameworks (SEBI Cybersecurity, DFSA Module GEN, MAS TRM / FEAT, RBI IT Framework).
- True air-gapped deploy mode — no telemetry, no license check,
no config sync.
- Data residency as enforcement —
eu_only,in_only,
gcc_only modes with default-deny on cross-region.
- MCP-scoped governance — per-agent-run budgets, per-tool-call
audit lines, guardrails on MCP tool inputs and outputs.
Quick start
Once code lands:
docker compose up
This brings up the gateway and a bundled Postgres. Open http://localhost:8080/admin/ for the management UI.
For production, point DATABASE_URL at a managed Postgres (RDS / Cloud SQL / Supabase).
Architecture
- Language: Go.
- Database: Postgres (only).
pgx/v5+golang-migrate. - Frontend: Vite + React 19 + TypeScript, embedded into the Go
binary via embed.FS and served from /admin/.
- Cache: in-memory (
ristretto) single-node; Redis when
distributed.
- Compatibility: OpenAI-compatible
/v1/chat/completions,
/v1/embeddings, /v1/images/generations. Anthropic-compatible /v1/messages.
- Distribution: single static binary. Hosted SaaS is the primary
product; the same binary self-hosts for OSS adopters with the billing module disabled by config.
See [docs/features.md](docs/features.md) for the full tiered roadmap (Tiers 0–12).
License
MIT. See [LICENSE](LICENSE).
Contributing
Contributions welcome via pull request. Issues and design discussion are open.
Source & license
This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: slahiri
- Source: slahiri/llm-gateway
- License: MIT
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet, be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.