seanbabalala/SiftGate

Self-hosted AI gateway for enterprise AI governance: scoped keys and policy, metadata-only audit, budgets and chargeback, smart routing and failover for apps, coding agents and MCP tools.

What it solves

As companies adopt AI, provider keys end up scattered across editors, agents and tools. Nobody can say who uses which model, offboarding can't revoke access, security teams worry about a proxy storing prompts and source code, and costs arrive as one unexplained bill. SiftGate solves this by putting a single gateway between all AI clients (business apps, coding agents like Claude Code and Codex, SDKs, MCP tools) and AI providers. It decides who may call which model, which provider key is used, what a request may cost, and what evidence is kept — before any request leaves your network.

How it works

SiftGate runs on your own infrastructure. Instead of calling AI providers directly, clients send requests to SiftGate, which acts as one control point. It handles four governance pillars:

  • Access and policy: one entry point for OpenAI- and Anthropic-compatible traffic (chat, embeddings, rerank, media, batch, MCP tools), routed to any configured provider. Permissions are the intersection of Gateway API key, Team and Policy Namespace rules — an empty intersection fails closed.
  • Data protection and audit: by default it stores only metadata (request id, selected node and model, latency, status, token usage, cost estimate, policy labels, fallback reason). It does not store prompts, responses, raw headers, provider keys, tool payloads, media bytes or resolved secrets unless an operator explicitly enables it.
  • Cost control: daily token and cost budgets at global, namespace, team and key scope reject over-budget requests. Workspace price books, chargeback exports and cache-savings reporting show where money goes.
  • Reliability and operations: smart routing with compatibility filters, fallback chains, circuit breakers and credential cooldowns. Route Explanation shows which candidates were selected, skipped or rejected and why.

Who it's for

  • CTOs and platform owners who want one provider-neutral entry point for apps, agents and tools, and the ability to switch or mix providers without changing clients.
  • CISOs and security reviewers who need metadata-only defaults, a privacy posture of every content-keeping setting, provider-key isolation, fail-closed Dashboard auth, RBAC, OIDC, hash-chained audit and signed releases.
  • Finance and FinOps teams who need budgets at global, namespace, team and key scope, refused-request evidence per key, and chargeback exports by team and project.
  • Engineering and SRE teams who need OpenAI- and Anthropic-compatible endpoints, automatic failover, route explanations, and alerts to Feishu, WeCom, Telegram or webhooks.

Highlights

  • Metadata-only by default: 0 prompts or responses stored unless an operator explicitly enables content retention.
  • 4 policy scopes: workspace, team, namespace, key.
  • 50+ provider metadata profiles covering direct APIs, China providers, aggregators, cloud platforms, media generation, speech/audio, local/self-hosted and hosted compatible inference.
  • Cache-aware credential pools that keep prompt-cache locality across parallel keys and fail over on 429, 5xx or timeouts.
  • Blocked requests recorded as metadata by key, reason and minute, kept out of call logs so success rates and cost reports stay clean.
  • Hash-chained audit log for management actions and versioned configuration with validation-first rollback.
  • Signed release assets with Sigstore provenance; the optional host Operator applies upgrades only from reviewed, approved plans.
  • Dashboard with auth on by default, fixed admin/operator/viewer roles, Workspaces, invitations and optional OIDC.
  • Quick connect creates a scoped key and a bound coding agent profile in one step.
  • Route Explanation for every request via the x-siftgate-request-id header — no prompt or response ever written to disk.
  • Scales from PoC to production: starts on SQLite, moves to PostgreSQL, optional Redis, Docker, Kubernetes or Helm, log sinks and OpenTelemetry.
  • MIT-licensed and self-contained: no hosted control plane required; AI requests never need to pass through a hosted service.

Related

  • Project
  • Project
  • Project
  • Project