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.
burnguard init launches a full-screen terminal UI form that walks you through every configuration option and writes a ready-to-use burnguard.yaml to your current working directory. Run it once after installation, and the proxy is ready to start.
Usage
What the wizard asks
The wizard is split into several sequential screens. Use Tab / arrow keys to navigate options and Enter to confirm each screen.AI providers
A multi-select list of supported AI providers. Select every provider your application talks to.
| Option | Value written to config |
|---|---|
| Anthropic (Claude) (pre-selected) | anthropic |
| OpenAI (GPT) | openai |
Google Gemini support is present in the codebase but not yet exposed in the wizard. Add it manually to
burnguard.yaml after generation if needed.Monthly budget limit (USD)
Enter a number representing your monthly spending cap in US dollars. The field displays a placeholder of
50.00.BurnGuard Cloud sync token
Confirm whether you have a BurnGuard Cloud sync token (obtainable at burnguard.run after signing up). Answering No skips the next screen and leaves
sync.enabled: false in the generated config.Paste your sync token
(Shown only if you answered Yes above.)Paste a token in the form
bg_.... The value is written to sync.token and sync.enabled is set to true.Slack alerts
Confirm whether you want Slack budget alerts. Answering No skips the next screen and leaves
alerts.slack_webhook empty.Paste your Slack webhook URL
(Shown only if you answered Yes above.)Paste a URL in the form
https://hooks.slack.com/services/....Discord alerts
Confirm whether you want Discord budget alerts. Answering No skips the next screen and leaves
alerts.discord_webhook empty.Paste your Discord webhook URL
(Shown only if you answered Yes above.)Paste a URL in the form
https://discord.com/api/webhooks/....Alert thresholds
A multi-select of the percentage thresholds at which alerts fire. All three are pre-selected by default.
| Option | Value written to config |
|---|---|
| 50% of budget (pre-selected) | 0.5 |
| 80% of budget (pre-selected) | 0.8 |
| 100% of budget (pre-selected) | 1.0 |
Output
After the form completes, BurnGuard prints a summary and writes the file:Generated file
burnguard.yaml is created in the directory where you ran burnguard init. Below is a fully annotated example:
Re-running init
You can runburnguard init again at any time to regenerate the config from scratch.
Manual configuration
If you prefer to skip the wizard and edit YAML directly, or if you need to tune fields the wizard does not expose, see the full burnguard.yaml reference. Every field in theConfig, ServerConfig, BudgetConfig, ProviderConfig, AlertConfig, and SyncConfig structs is documented there.
Dependencies
Theinit wizard is built on Charmbracelet Huh v1. It requires a terminal that supports TUI rendering (colour, cursor movement, raw mode).
burnguard init is not suitable for CI/CD pipelines or non-interactive shells. In automated environments, write burnguard.yaml directly from a template and use burnguard start without running the wizard.