The AI gateway that proves nothing leaked

Every prompt. Every tool call. Every agent hop. Through one gate.

Hullgate is one small Go binary between your agents, tools and models. It routes the traffic, scans what leaves, and keeps the evidence of what was scanned, found and stopped.

$ hullgate serve -config hullgate.yaml
$ export ANTHROPIC_BASE_URL=http://127.0.0.1:4000
$ export OPENAI_BASE_URL=http://127.0.0.1:4000/v1
scroll
Detection plane · in build

00 · Why a gate

Why Hullgate exists

Act 01 · Unscanned

Agents multiplied the leak surface.

Tool results carry credentials into prompts. Coding agents read .env files. Multi-agent chains pass data nobody inspects. The red specks are secrets.

Act 02 · Through the gate

One gate on all of it.

Every prompt, tool call and agent hop passes the same scan. A secret is redacted or blocked before any provider sees it.

Act 03 · The record

And the proof stays with you.

Masked evidence, keyed fingerprints and a signed daily report of what was scanned, what was found and what was stopped.

01 · How it works

One request, through the gate

Scroll to send it. Every call takes the same path, and nothing on it takes a lock or touches a database: config is an immutable snapshot, swapped whole.

hullgate · request 4bf92f35waiting for a request

Loop guard, scan and evidence are Phase 2 work; the other stages are built.

  1. 01

    Key

    The client shows a Hullgate key. It is checked against hashed keys held in memory; the provider key never leaves the gateway.

    Built
  2. 02

    Limits

    Requests and tokens per minute and spend budgets per key, shared across replicas through Redis.

    Built
  3. 03

    Parse

    Only the model and the stream flag are read. The body passes through byte for byte, never re-serialized.

    Built
  4. 04

    Loop guard

    Three identical tool calls in a session, or too deep a chain of agents, stop with a clear reason.

    Phase 2
  5. 05

    Scan

    Secrets, PII and your own watchlist, inline, in microseconds. Each detector and key climbs its ladder: observe, alert, redact, block.

    Phase 2
  6. 06

    Route

    Weighted candidates with declared capabilities. Fallback happens only before the first streamed byte.

    Built
  7. 07

    Stream

    Server-sent events pass chunk by chunk with zero allocations per chunk, and the answer is scanned on the way back.

    Built
  8. 08

    Evidence

    A masked snippet, a keyed fingerprint and the trace ID, kept with retention. The record that shows what crossed.

    Phase 2

02 · The name

Hull and gate

hull the line around your AI traffic

Every model call, MCP tool and agent-to-agent hop sits inside one boundary you run yourself, on a laptop, a server or a cluster. Provider keys stay inside it; clients only ever hold a Hullgate key.

gate the one way through

Each passage shows a key, stays within its limits, gets scanned, and leaves a record. Nothing crosses the line unchecked, and you can show what crossed.

hullgate

03 · Three jobs

Route it, catch it, prove it

Route: one endpoint for every model

OpenAI-compatible chat, Responses and embeddings, and native Anthropic Messages, so Claude Code, Codex and the SDKs only change a base URL. Keys, rate limits, budgets and fallback come with it.

Built
routes:
  - model: claude-sonnet-4-5
    candidates:
      - {provider: anthropic, weight: 70}
      - {provider: azure, weight: 30}

Detect: secrets and customer data, caught on the way out

Detectors for secrets, PII and your own watchlist run inline on prompts, tool results and streamed answers, with matches split across chunks still caught. Each detector and key climbs its own ladder: observe, alert, redact, block.

Phase 2
# sketch: the Phase 2 config may differ
detectors:
  aws_access_key: redact
  email:          observe
  watchlist:      alert   # terms never logged

Prove: evidence an auditor accepts

Every finding keeps a masked snippet, a keyed fingerprint and the trace ID. A signed daily report says what was scanned, what could not be, what was found and what was done, by detectors with published precision and recall.

Phase 2
# sketch of a daily report, Phase 2
coverage 2026-11-28  tenant acme
scanned      1,204,881 parts
unscannable      2,113 (image 1,940)
findings           318  redacted 301
signed       yes

04 · Numbers, not adjectives

Measured, not promised

124µs
p99 gateway overhead

Chat at 1,000 requests per second, SQLite store. Streaming p99 was 80 µs.

26.5MB
idle memory

Resident set with key budgets on. The gate is 30 MB.

22.1MB
container image

Static binary on distroless, non-root. The gate is 25 MB.

80ns
key check

Virtual key lookup from the in-memory snapshot, zero allocations.

Apple M4 Pro, mock upstream, make load · CHANGELOG.md at 4dd98ff

05 · What you get

Small enough to run everywhere

One static binary

Pure Go, no cgo, no Python or Node at runtime. The same binary runs as a gateway, a control plane, or both.

Built

Claude Code and Codex fleets

Point ANTHROPIC_BASE_URL or OPENAI_BASE_URL at Hullgate. Headers and bodies pass through unchanged; the provider key never leaves the gateway.

Built

Keys, limits, budgets

Hashed virtual keys with model allowlists, requests and tokens per minute, and spend budgets by hour, day, week or month.

Built

Runs your way

SQLite on one node, or Postgres and Redis behind replicas, with gateway and control roles. Container, systemd or a laptop.

Built

MCP gateway

Upstream MCP servers behind one endpoint, with per-key tool filtering, lazy tool loading and a span for every tool call.

Phase 2

Supply chain you can check

Standard library first, four scanners on every build, a 7-day cooldown on every new release we depend on.

Built

And the next phase

Detection, evidence and the admin UI land in January 2027.

See the roadmap →

06 · Open core

Open source at the core

Open source Apache 2.0

  • The gateway, routing, keys, limits and budgets
  • Secrets, PII and watchlist detection with the full ladder
  • Evidence, admin API, CLI and admin UI
  • SQLite, or Postgres and Redis for replicas

Enterprise commercial

  • SAML, SCIM, enforced SSO and role mapping
  • Hush: lineage of sensitive data across hops
  • Full-capture evidence with audited reveal
  • Fleet controls across deployments and regions

Compare the editions →

07 · Roadmap

Where we are

TargetDecember 30, 2026

Open source, standalone

The gateway as one binary on one node: OpenAI and Anthropic APIs, routing and fallback, keys, limits, budgets, the admin API and the CLI. The repository goes public the same day, under Apache 2.0.

TargetMarch 2027

Enterprise

The whole product: the detection plane and evidence, SSO and SCIM, the audit log, Hush lineage across hops, and fleet controls.

  1. Phase 0 Bootstrap 11 of 13
  2. Phase 1 Core proxy, admin API, CLI 28 of 41
  3. Phase 2 Detection plane, token reduction, UI, auth, site 0 of 40
  4. Phase 3 Hush, enterprise, edge v0 0 of 24
  5. Phase 4 Fleet at scale 0 of 7

The full roadmap →

08 · Early access

Run it where your data lives

Self-hosted, vendor-neutral, and small enough for a laptop. We are taking a few design partners for the private preview.