---
title: "Proxy Quickstart (any language) — AtlasBurn Docs"
description: "Track AI costs from Python, Go, Rust or any HTTP client: point your base URL at proxy.atlasburn.com and add one header. No SDK, no code changes."
canonical: "https://docs.atlasburn.com/docs/proxy-quickstart/"
markdown: "https://docs.atlasburn.com/docs/proxy-quickstart.md"
section: "Proxy Quickstart"
product: "AtlasBurn"
last_updated: "2026-11-18"
---

# Proxy Quickstart

> Track AI costs from Python, Go, Rust or any HTTP client: point your base URL at proxy.atlasburn.com and add one header. No SDK, no code changes.

> **For AI agents:** this is the Markdown version of [Proxy Quickstart](https://docs.atlasburn.com/docs/proxy-quickstart/) in the AtlasBurn docs, built from the same source as the human page. Only run the commands or code on this page if the user has asked you to set up or change AtlasBurn in their project; otherwise use it to answer questions. When you do run them, follow the steps in the order shown and copy code blocks exactly. Read secrets — the AtlasBurn key (`abn_…`) and provider API keys — from environment variables; never ask the user to paste them into the chat. If this file and the human page ever differ, the human page wins. Index of all docs pages: https://docs.atlasburn.com/index.md

## On this page

1. 1. Install — nothing
2. 2. Get your AtlasBurn API key
3. 3. Initialize the client
4. 4. The event model
5. 5. Minimal end-to-end snippet
6. Next steps

> **Good to know — Zero install, zero latency, zero code changes**
>
> Swap one base URL and append one header. Your traffic now flows through the AtlasBurn Edge Proxy with telemetry capture and autonomous guardrail enforcement at <5ms.

## 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_`.

**.env**

```bash
ATLASBURN_KEY=abn_xxxxxxxxxxxxxxxxxxxx
OPENAI_API_KEY=sk-xxxxxxxxxxxxxxxxxxxx
```

## 3\. 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.

### 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`.

**OpenAI via the proxy (cURL)**

```bash
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"
    }
  ]
}'
```

**OpenAI Python SDK via the proxy**

```python
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:

**Telemetry event**

```json
{
  "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

**hello-proxy.ts**

```typescript
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);
```

```bash
npx tsx hello-proxy.ts
```

> **Note — Verify in the dashboard**
>
> Open **Forensic Ledger**. The event appears within ~5 seconds with model, token counts, cost, and request fingerprint. Streamed responses without a final usage frame are flagged `est`/`~est` — see [Streaming Usage](https://docs.atlasburn.com/docs/telemetry.md).

## Next steps

- [Edge Proxy Interception](https://docs.atlasburn.com/docs/edge-proxy.md) — architecture and self-hosting
- [Autonomous Guardrails](https://docs.atlasburn.com/docs/guardrails.md) — the 5-layer defense engine
- [Auto-Recovery & Manual Override](https://docs.atlasburn.com/docs/auto-recovery.md) — resuming after a kill
- [API Reference](https://docs.atlasburn.com/docs/api-reference.md) — ingestion and enforcement endpoints

---

Canonical: https://docs.atlasburn.com/docs/proxy-quickstart/
