Track AI API spend per feature and stop runaway agent loops: route OpenAI, Anthropic, Gemini and other LLM clients through the AtlasBurn Edge Proxy in one line.
pip install atlasburn==0.1.1 Copy PIP instructions
See what each AI feature of your Python app spends, and stop runaway agent loops before they hit your bill.
atlasburn points your existing OpenAI, Anthropic or other OpenAI-compatible client at the AtlasBurn Edge Proxy in one line. Every call is then tracked by model and feature, and protected by the guardrails you set in AtlasBurn: alerts, throttling, and a kill switch that pauses only the feature that is looping.
pip install atlasburn Use it Get a key at app.atlasburn.com (Settings → API keys) and set ATLASBURN_KEY.
import atlasburn from openai import OpenAI client = OpenAI(**atlasburn.openai_config(feature="support-chat")) client.chat.completions.create(model="gpt-4o-mini", messages=[{"role": "user", "content": "Hi"}]) Anthropic:
from anthropic import Anthropic client = Anthropic(**atlasburn.anthropic_config(feature="summarize")) Tag a single call with a different feature:
client.chat.completions.create(..., extra_headers=atlasburn.feature("search")) Every provider the proxy supports works with the OpenAI client: atlasburn.openai_config("gemini"), "cohere", "openrouter", "mistral", "groq", "together", "deepseek", "xai". Pass that provider's own key as api_key= to the client, exactly as before.
client = OpenAI(api_key=os.environ["GEMINI_API_KEY"], **atlasburn.openai_config("gemini")) client.chat.completions.create(model="gemini-2.5-flash", messages=[{"role": "user", "content": "Hi"}]) Safe by default No dependencies. It only builds the client's base_url and headers. Never breaks your app. Without a key it warns and returns an empty config, so your client talks to the provider directly (untracked). Content-blind. AtlasBurn records usage (model, tokens, cost, timing, your feature label), not prompts or outputs. What's next This first release covers the proxy. A full Python SDK with automatic capture (no base-URL change, like the Node.js SDK) is in progress under this same package name.
Docs: Proxy quickstart · Guardrails and the kill switch · atlasburn.com
llm openai anthropic cost monitoring guardrails ai-agents observability
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
None of the files in this release were uploaded with provenance metadata.
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.




