Edge Proxy reliability and fallback

What happens to your AI calls through proxy.atlasburn.com when something fails: AtlasBurn, its guardrail store, telemetry, your AI provider, or the proxy itself. Short version: if AtlasBurn has a problem, your calls still go through. If the proxy itself can't be reached, they fail, so add the fallback below.

Live status

See status.atlasburn.com for the Edge Proxy and every other AtlasBurn service, checked every minute.

Where the proxy sits

Your app → proxy.atlasburn.com (a Cloudflare Worker) → your AI provider. Before forwarding, the proxy checks your AtlasBurn key and any guardrail on it. After the provider answers, it streams the answer back to you and records the usage in the background. The proxy never retries your AI call. The one change it makes: on streamed OpenAI calls it asks OpenAI to include token usage, which adds one final chunk with the usage to the stream.

What happens when each part fails

If this failsYour AI callWhat you lose
AtlasBurn's app (the key check)Goes through after at most 1.5 s, usually with no wait (see below)Unknown or revoked keys aren't refused until it's back
The guardrail store (Cloudflare KV)Goes throughThrottles and blocks aren't applied
Telemetry (AtlasBurn ingest)Not affected: usage is sent after your answer, in the backgroundThat call's usage, if ingest is still down after one retry
Your AI providerIts own error, unchanged (same status and body). If the provider can't be reached at all: 502 with "error": "Failed to reach AI provider"Nothing extra
The proxy itselfFails (connection error or a Cloudflare 5xx)Add the client fallback

The key check can't block your traffic

Since 15 November 2026 the proxy only forwards calls made with an active AtlasBurn key. Before, any value in the AtlasBurn-API-Key header got an untracked relay with no guardrails. To check a key, the proxy asks AtlasBurn's app, which puts the app in the path of your calls. It is kept from ever blocking them:

  • Cached: an active key is remembered for 5 minutes and a refused one for 60 seconds, per Cloudflare location, so most calls don't ask the app at all.
  • Time-limited: if the app doesn't answer within 1.5 seconds, the call goes through.
  • Fails open: a timeout, network error or 5xx from the app lets the call through. Only a clear “unknown” or “revoked” answer refuses it (401 ATLASBURN_KEY_INVALID / ATLASBURN_KEY_REVOKED).
  • Backs off: after the app fails to answer (timeout or network error), the proxy stops asking it for 30 seconds, so during an outage your calls don't each wait the full 1.5 seconds.

Worst case during an AtlasBurn outage: one call per Cloudflare location waits up to 1.5 s every 30 seconds; the rest go straight through. These cases are covered by automated tests (test-proxy-key-check.ts: app returning 503, network errors, an app that never answers, the backoff and its expiry).

Guardrails when the store is unreachable

Throttles and blocks are flags in Cloudflare KV that the proxy reads before forwarding. If the read fails, the call goes through. A throttled feature waits 2 seconds per call; a blocked one gets 403 with X-AtlasBurn-Guardrail: SUSPENDED and a recovery time. See Guardrails.

Telemetry never delays your answer

The proxy records usage after the provider's answer has started streaming back to you. If AtlasBurn's ingest fails with a network error or 5xx, the proxy retries once after 500 ms with the same event id, so a retry is never counted twice. If that fails too, that call's usage is not recorded; it is not queued for later.

Client fallback: call the provider directly if the proxy can't be reached

Unlike the SDK, which runs inside your app, the proxy is in the path of every call. To survive the proxy being unreachable, catch connection errors and 5xx responses and retry the call once directly against the provider. Calls that take this path are not tracked and have no guardrails.

Never fall back on 4xx

A 403 from the proxy can be a guardrail block. Retrying it directly would bypass the guardrail you set. Fall back only when the proxy can't be reached or answers 5xx.
Python (openai)
python
import os
import openai
from openai import OpenAI

proxied = OpenAI(
    base_url="https://proxy.atlasburn.com/openai/v1",
    default_headers={"AtlasBurn-API-Key": os.environ["ATLASBURN_KEY"]},
    max_retries=1,  # fall back quickly instead of retrying the proxy
)
direct = OpenAI()  # the provider itself: not tracked, no guardrails

def chat(**kwargs):
    try:
        return proxied.chat.completions.create(**kwargs)
    except (openai.APIConnectionError, openai.InternalServerError):
        # Proxy unreachable or 5xx. Never fall back on 4xx (403 = guardrail block).
        return direct.chat.completions.create(**kwargs)
TypeScript (openai)
typescript
import OpenAI from "openai";

const proxied = new OpenAI({
  baseURL: "https://proxy.atlasburn.com/openai/v1",
  defaultHeaders: { "AtlasBurn-API-Key": process.env.ATLASBURN_KEY! },
  maxRetries: 1,
});
const direct = new OpenAI(); // not tracked, no guardrails

export async function chat(body: OpenAI.Chat.ChatCompletionCreateParamsNonStreaming) {
  try {
    return await proxied.chat.completions.create(body);
  } catch (err) {
    const unreachable = err instanceof OpenAI.APIConnectionError;
    const serverError = err instanceof OpenAI.APIError && (err.status ?? 0) >= 500;
    if (unreachable || serverError) return direct.chat.completions.create(body);
    throw err; // 4xx, including a guardrail block: respect it
  }
}

If you'd rather nothing sit in the path of your calls, use the SDK (Node.js): it runs inside your app and fails open.

Frequently asked questions

If AtlasBurn goes down, do my AI calls through the Edge Proxy stop?
No. The key check and the guardrail check both fail open: if AtlasBurn's app or the guardrail store can't answer, the proxy forwards the call. Only a clear 'unknown' or 'revoked' answer about your key refuses it.
How much latency can the key check add?
Usually none: an active key's status is cached for 5 minutes per Cloudflare location. When it isn't cached, the proxy waits at most 1.5 seconds for AtlasBurn's answer. During an AtlasBurn outage it stops asking for 30 seconds after each failed attempt.
What happens if the Edge Proxy itself is down?
Calls sent to proxy.atlasburn.com fail with a connection error or a Cloudflare 5xx, because the proxy is in the path of every call. Catch those errors and retry the call directly against your provider. Calls made that way are not tracked and have no guardrails.
Should my app fall back to the provider on a 403 from the proxy?
No. A 403 with the header X-AtlasBurn-Guardrail: SUSPENDED is a guardrail block you set. Falling back would bypass it. Fall back only on connection errors and 5xx responses.
Does the proxy retry failed AI calls?
No. It forwards each call once and returns the provider's answer unchanged, errors included. Retrying is up to your client.
What does a 502 'Failed to reach AI provider' mean?
The proxy couldn't connect to your AI provider. The provider is probably down or unreachable from Cloudflare. Calling it directly will likely fail too; check the provider's status page.
Is usage lost when AtlasBurn's ingest is down?
The proxy retries sending usage once after 500 ms. If ingest is still down, that call's usage is not recorded. Your AI call itself is never affected, because usage is sent after the answer.
How do I know if the Edge Proxy is having problems right now?
status.atlasburn.com checks the Edge Proxy every minute, opens an incident automatically after 3 failed minutes, and keeps a public incident history you can follow by feed.