Sync tokens authenticate the proxy, not a user. When the local BurnGuard binary flushes usage records to the cloud every 60 seconds, it presents a sync token as proof that it belongs to your account. Without a valid token the proxy still runs and enforces budgets locally — it just cannot upload data to the dashboard.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.
What a Sync Token Looks Like
Every token is prefixed withbg_ followed by a lowercase hex string generated server-side:
How the Proxy Uses the Token
The proxy reads the token fromburnguard.yaml under sync.token and sends it as a Bearer credential when posting batched usage records to the cloud:
last_used_at on the token row.
Creating a Token
Open the Tokens page
Sign in at burnguard.run and click Tokens in the left sidebar.
Click 'Create token'
Click the Create token button in the top-right corner of the page. A modal will appear asking for a token name.
Name the token
Enter a descriptive name that identifies the proxy instance — for example
production-proxy, dev-machine, or staging. Names are for your reference only and can be anything.Copy the token immediately
After clicking Generate token, the full token string is displayed once inside the modal. Copy it before closing — it cannot be retrieved again.
CreatedToken object:
Listing Tokens
GET /v1/tokens returns a SyncToken[] array of all tokens associated with your account. The Tokens page displays these as a table. Each SyncToken object has the following fields:
| Field | Type | Description |
|---|---|---|
id | number | Unique token ID |
user_id | number | ID of the account that owns this token |
name | string | The label you gave the token at creation |
created_at | string | When the token was generated (shown as relative time, e.g. “3 days ago”) |
last_used_at | string | null | When the proxy last successfully synced using this token — — if it has never synced |
last_used_at is the fastest way to confirm that a proxy is actively pushing data. If it has not updated in more than a few minutes and the proxy is running, check that the token in burnguard.yaml matches the one shown here.
Revoking a Token
Click the trash icon on the right side of any token row to revoke it. The UI sendsDELETE /v1/tokens/{id}.
After a token is successfully revoked:
- The proxy will log sync failures (it continues running and enforcing budgets locally).
- Generate a new token from the Tokens page.
- Update
sync.tokeninburnguard.yamlwith the new value. - Restart
burnguard start.
Multiple Tokens
You can create as many tokens as you need — one per proxy instance is the recommended pattern. All tokens report usage to the same dashboard account, so a single Overview page covers every environment at once.last_used_at timestamp, so you can see at a glance which environments are active and which are stale.
Token Security
Treat sync tokens the same way you treat API keys: keep them out of version control, do not log them, and do not share them across teams or environments. If a token is exposed, revoke it immediately from the Tokens page and generate a replacement.
- Add
burnguard.yamlto.gitignoreif it contains a real token, or use an environment variable substitution and keep the YAML in version control with a placeholder. - In CI/CD pipelines, inject the token via a secret manager and write it to
burnguard.yamlat startup rather than committing it. - Rotate tokens periodically in long-running environments as a matter of hygiene.
