Integrations

Two paths to capture

AtlasBurn captures AI usage through two complementary surfaces. Pick whichever fits your stack — both write to the same Forensic Ledger.

  • SDK auto-detect (@atlasburn/sdk) — JavaScript/TypeScript only. Patches globalThis.fetch and captures any call to a recognized provider host. Soft enforcement: limits are evaluated in-process.
  • Cloudflare Edge Proxy (proxy.atlasburn.com) — language-agnostic. Point your client at /openai/, /anthropic/, /gemini/, or/openrouter/. This is the universal hard-enforcement path — guardrail kill flags are read from Cloudflare KV before traffic ever reaches the provider.

Priced vs. auto-captured

The cost engine prices a wider set of providers than the SDK can currently auto-detect. A provider marked “Priced” will produce correct cost figures once the event reaches the ledger — but if it isn't listed as auto-captured, you must route through the proxy or post events directly to /api/ingest.

Provider Matrix

ProviderSDK auto-detectCloudflare proxyPricedNotes
OpenAIYes/openai/YesStandard usage object. Streaming usage injected via stream_options.include_usage.
AnthropicYes/anthropic/YesStandard usage object.
Google GeminiYes/gemini/YesusageMetadata field. Watch for schema drift between API versions.
Google Vertex AIYesvia /gemini/YesSame wire format as Gemini.
OpenRouterNo/openrouter/YesUse the proxy for capture. Tokenizer drift from upstream routing — Layer 4 RPS is the primary safety net.
Meta / LlamaNoSelf-hostYesPriced in the registry. Capture via the proxy when fronting a Llama gateway; otherwise post events to /api/ingest manually.
MistralNoSelf-hostYesPriced. Auto-detect not yet shipped — use the proxy or /api/ingest.
DeepSeekNoSelf-hostYesPriced. Auto-detect not yet shipped.
xAINoSelf-hostYesPriced. Auto-detect not yet shipped.
CohereNoSelf-hostYesPriced. Auto-detect not yet shipped.
Azure OpenAINoNot supportedNoNot yet supported.
AWS BedrockNoNot supportedNoNot yet supported.
GroqNoNot supportedNoNot yet supported.
Together AINoNot supportedNoNot yet supported.

How SDK auto-detect works

Auto-detect monkey-patches globalThis.fetch and inspects the request URL. When it matches a recognized provider host (OpenAI, Anthropic, Gemini, Vertex), it extracts usage metadata from the JSON or SSE response. No wrappers, no middleware.

Schema drift — Google

Google occasionally renames fields inside usageMetadata. If Gemini or Vertex token counts disappear after a provider update, upgrade @atlasburn/sdk.

How the proxy works

The proxy is a Cloudflare Worker. It forwards to the upstream provider with the original auth header you passed, reads kill flags from Cloudflare KV synchronously, and emits one normalized telemetry event per request. Because enforcement happens at the edge, a tripped guardrail blocks traffic before the provider charges you.

Supported routes today: /openai/, /anthropic/, /gemini/, /openrouter/. See Proxy Quickstart.

Posting events manually

For any priced-but-not-auto-captured provider (Mistral, DeepSeek, xAI, Cohere, self-hosted Llama), POST normalized events directly to /api/ingest. See the API Reference.

Not yet supported

Azure OpenAI, AWS Bedrock, Groq, and Together AI are not yet supported by either the SDK or the proxy. They are not priced in the registry. Tracking them today requires posting normalized events to /api/ingest from your own server.

Next Steps