Developers
Send secrets from your terminal, your code and your pipelines
Everything the website does, without the browser. Secrets are encrypted on your side before they leave, so Burn the Secret only ever stores ciphertext. The recipient just opens the link.
printf '%s' "hunter2" | npx burnthesecret@0.1.1
# https://burnthesecret.com/secret/K7fq…#key=…Pick your integration
Command-line tool
Pipe a secret in, get a one-time link out. Encrypts on your machine, has zero dependencies and runs anywhere Node.js 18+ does.
CLI docsREST API
Create secrets, check whether they've been opened and burn them early. Encrypt with AES-256-GCM yourself so the server only sees ciphertext.
API referenceCI and scripts
Hand a freshly generated credential to a person from a pipeline or onboarding script, with the link masked in your logs.
CI recipesAPI keys are optional
You can create secrets anonymously from the CLI or the API. Add a free API key when you want secrets to show up in your account and to get the higher signed-in limits (larger secrets, longer expiry, more views).
- Create a free account or log in.
- Open API Access and create a key. It starts with
bts_live_(older keys start withks_live_and still work) and is shown once. - Export it as
BURNTHESECRET_API_KEY. The CLI picks it up automatically. For the API, send it as a Bearer token.
export BURNTHESECRET_API_KEY="bts_live_…"
# CLI: picked up from the environment
printf '%s' "$DB_PASSWORD" | npx burnthesecret@0.1.1
# API: Bearer token
curl -H "Authorization: Bearer $BURNTHESECRET_API_KEY" …The same zero-knowledge model everywhere
- 01
Encrypt locally
A random 256-bit key encrypts the secret with AES-256-GCM on your machine.
- 02
Upload ciphertext
Only the ciphertext and IV are sent, with the expiry and view limit.
- 03
Key stays in the link
The key goes in the #key= fragment, which browsers never send to a server.
- 04
Read once, then gone
The recipient's browser decrypts it. At the view limit or expiry, the ciphertext is deleted.
Links from the CLI and the API open in any browser, exactly like links made on the website. Details are in the encryption section of the API reference.
Further reading
- Send API keys to clients
- Share database credentials
- Send an SSH key securely
- How secure are one-time links?
Building something with Burn the Secret, or missing an integration you need? Tell us.