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_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_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.
Proxy base URL for every provider
Keep your provider SDK or HTTP client. Change only the base URL to the value below and add the header AtlasBurn-API-Key: $ATLASBURN_KEY. Your provider key is sent as usual.
| Provider | Base URL | Provider key env var | Example model |
|---|---|---|---|
| OpenAI | https://proxy.atlasburn.com/openai/v1 | OPENAI_API_KEY | gpt-4o-mini |
| Anthropic | https://proxy.atlasburn.com/anthropic | ANTHROPIC_API_KEY | claude-3-5-sonnet-latest |
| Google Gemini | https://proxy.atlasburn.com/gemini/v1beta | GEMINI_API_KEY | gemini-2.5-flash |
| OpenRouter | https://proxy.atlasburn.com/openrouter/v1 | OPENROUTER_API_KEY | openai/gpt-4o-mini |
| Cohere | https://proxy.atlasburn.com/cohere/v1 | COHERE_API_KEY | command-r-plus |
| Mistral | https://proxy.atlasburn.com/mistral/v1 | MISTRAL_API_KEY | mistral-large-latest |
| Groq | https://proxy.atlasburn.com/groq/openai/v1 | GROQ_API_KEY | llama-3.3-70b-versatile |
| Together AI | https://proxy.atlasburn.com/together/v1 | TOGETHER_API_KEY | meta-llama/Llama-3.3-70B-Instruct-Turbo |
| DeepSeek | https://proxy.atlasburn.com/deepseek/v1 | DEEPSEEK_API_KEY | deepseek-chat |
| xAI (Grok) | https://proxy.atlasburn.com/xai/v1 | XAI_API_KEY | grok-2-latest |
For the Anthropic SDK use the base URL without /v1 (the SDK adds it). Raw HTTP calls to Anthropic use https://proxy.atlasburn.com/anthropic/v1/messages.
curl https://proxy.atlasburn.com/openai/v1/chat/completions \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-H "AtlasBurn-API-Key: $ATLASBURN_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-4o-mini",
"messages": [
{
"role": "user",
"content": "Hello from AtlasBurn"
}
]
}'import os
from openai import OpenAI
client = OpenAI(
api_key=os.environ["OPENAI_API_KEY"],
base_url="https://proxy.atlasburn.com/openai/v1",
default_headers={"AtlasBurn-API-Key": os.environ["ATLASBURN_KEY"]},
)
res = client.chat.completions.create(
model="gpt-4o-mini",
messages=[{"role": "user", "content": "Hello from AtlasBurn"}],
)
print(res.choices[0].message.content)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_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