Proxy Quickstart
Zero install, zero latency, zero code changes
1. Install — nothing
There is no SDK to install. The hosted proxy at proxy.atlasburn.com is a Cloudflare Worker that accepts traffic from any HTTP client in any language.
2. Get your AtlasBurn API key
Sign in to the AtlasBurn dashboard and copy your key from Settings → API Keys. Keys are prefixed abn_.
ATLASBURN_API_KEY=abn_xxxxxxxxxxxxxxxxxxxx
OPENAI_API_KEY=sk-xxxxxxxxxxxxxxxxxxxx3. Initialize the client
Point your existing AI client at the proxy. Two changes only: the base URL and the AtlasBurn-API-Key header. Pick your setup below — the provider's SDK, a raw HTTP call in any language, a framework, or a no-code tool. Every combination is one source of truth, so the snippet always matches what the proxy forwards.
curl https://proxy.atlasburn.com/openai/v1/chat/completions \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-H "AtlasBurn-API-Key: $ATLASBURN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-4o-mini",
"messages": [
{
"role": "user",
"content": "Hello from AtlasBurn"
}
]
}'Only two things change from a direct call: the base URL points at proxy.atlasburn.com/… and you add the AtlasBurn-API-Key header. Your provider key is forwarded untouched. Streaming works too — set stream: true and SSE frames pass through.
4. The event model
Every request through the proxy generates one telemetry event with this shape:
{
"ts": "2026-05-18T12:34:56.789Z",
"org_id": "org_xxx",
"provider": "openai",
"model": "gpt-4o-mini",
"endpoint": "/chat/completions",
"status": 200,
"tokens_in": 142,
"tokens_out": 318,
"cost_usd": 0.000421,
"latency_ms": 612,
"fingerprint": "sha256:b9c1...",
"stream": false
}- Synchronous capture — non-streaming responses are parsed in-flight.
- SSE pass-through — streamed frames forward untouched; the final usage frame is parsed and a single event is posted.
- Fingerprint — deterministic hash of model + messages + tools, used by the Dumb Loop Detector.
5. Minimal end-to-end snippet
import OpenAI from "openai";
const openai = new OpenAI({
apiKey: process.env.OPENAI_API_KEY,
baseURL: "https://proxy.atlasburn.com/openai/v1",
defaultHeaders: {
"AtlasBurn-API-Key": process.env.ATLASBURN_API_KEY!,
},
});
const res = await openai.chat.completions.create({
model: "gpt-4o-mini",
messages: [{ role: "user", content: "Say hi from the AtlasBurn proxy." }],
});
console.log(res.choices[0].message.content);npx tsx hello-proxy.tsVerify in the dashboard
est/~est — see Streaming Usage.Next steps
- Edge Proxy Interception — architecture and self-hosting
- Autonomous Guardrails — the 5-layer defense engine
- Auto-Recovery & Manual Override — resuming after a kill
- API Reference — ingestion and enforcement endpoints