Hullgate is in private preview. Preview users build from source; binaries and images are published with the first public release.
Build it
make build # bin/hullgate: one static binary, no cgo
./bin/hullgate version
Make a key
Clients never hold a provider key. They hold a Hullgate key, and only its hash goes in the config.
./bin/hullgate keys generate
The secret alone goes to stdout; the hash: line for the config goes to stderr. Nothing keeps a copy, so hand the secret over through a secret manager.
Write a config
keys:
- id: key_laptop
name: My laptop
hash: sha256:<paste the hash line>
providers:
- id: anthropic
type: anthropic
credential: env://ANTHROPIC_API_KEY
- id: openai
type: openai
credential: env://OPENAI_API_KEY
routes:
- model: claude-sonnet-4-5
candidates: [{provider: anthropic}]
- model: gpt-4o
candidates: [{provider: openai}]
Provider keys are references (env:// or file://), never values in the file. Check the file before you run it:
./bin/hullgate config validate -config hullgate.yaml
Run it
./bin/hullgate serve -config hullgate.yaml # listens on 127.0.0.1:4000
curl -s http://127.0.0.1:4000/readyz # {"status":"ready"}
Edit the file and send SIGHUP to reload it; an invalid file is refused and the running config stays.
Point your clients
Claude Code and the Anthropic SDKs:
export ANTHROPIC_BASE_URL=http://127.0.0.1:4000 # no /v1
export ANTHROPIC_AUTH_TOKEN=<your Hullgate key>
export ANTHROPIC_MODEL=claude-sonnet-4-5 # routes match model names exactly
Codex and the OpenAI SDKs:
export OPENAI_BASE_URL=http://127.0.0.1:4000/v1
export OPENAI_API_KEY=<your Hullgate key>
Request bodies and anthropic-* headers pass through unchanged, and the Hullgate key never leaves the gateway. A model the key may not call, or one with no route, answers 404 model_not_found.
Next
- Run it in a container: a distroless, non-root image under 25 MB.
- Add a store for budgets and the admin API: SQLite on one node, Postgres for replicas.
- See what is coming on the roadmap.