Skip to main content

burn0 init

Configures burn0 for your project. Runs automatically on npm install (in interactive terminals) or manually:

What it does

1

API key

Choose to paste an existing key, get a free one at burn0.dev/api, or skip (local mode).
2

Detect services

Scans your package.json and codebase for known API services. Shows what it found with auto-priced or plan-selection prompts.
3

Configure

Writes .burn0/config.json, adds .burn0/ and .env to .gitignore.

Example

Files created

Re-running

Run npx burn0 init again at any time to reconfigure. It overwrites the existing config.

CI / Non-interactive

In CI/Docker (no TTY), init doesn’t run. It prints: