BurnGuard uses path-prefix routing to decide which upstream AI provider to forward each request to. The first segment of the request path —Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Verifieddanny/BurnGuard/llms.txt
Use this file to discover all available pages before exploring further.
/anthropic, /openai, and so on — must match a key in the providers map inside burnguard.yaml. BurnGuard strips that prefix, appends the rest of the path to the provider’s base_url, and forwards the request with all original headers intact. This means changing a single base URL in your application code is all that is needed to route traffic through BurnGuard.
How URL transformation works
| Request to BurnGuard | Forwarded upstream |
|---|---|
http://localhost:8080/anthropic/v1/messages | https://api.anthropic.com/v1/messages |
http://localhost:8080/openai/v1/chat/completions | https://api.openai.com/v1/chat/completions |
providers map, removes that segment, and concatenates what remains onto base_url. No additional path configuration is required.
Provider configuration in YAML
burnguard.yaml
providers is both the YAML identifier and the path prefix used in your application’s base URL. The value is a single base_url field pointing to the provider’s public API root.
Supported providers
| Provider | Key in YAML | Default base_url | Path prefix |
|---|---|---|---|
| Anthropic (Claude) | anthropic | https://api.anthropic.com | /anthropic/... |
| OpenAI (GPT) | openai | https://api.openai.com | /openai/... |
| Google Gemini | Coming soon | — | /google/... |
Google Gemini (
google) appears in the example burnguard.yaml and is supported as a generic proxy target, but token parsing for Gemini responses is not yet implemented. The burnguard init wizard has Gemini commented out. If you add the google key manually, requests will be forwarded to generativelanguage.googleapis.com but token counts and costs will not be tracked. Use only anthropic and openai until Gemini support ships.API key forwarding
BurnGuard forwards every request header to the upstream provider without modification. You do not configure API keys insideburnguard.yaml — your application passes them exactly as it always has:
- Anthropic expects
x-api-key: sk-ant-...in the request headers. - OpenAI expects
Authorization: Bearer sk-...in the request headers.
