Reference

Configuration

Environment variables, exit codes, and JSON output — everything you need to wire snapshotdb into a script, CI job, or agent.

Environment variables

VariableMeaning
SNAPSHOTDB_SERVERServer base URL the client submits jobs to. Required — the client fails without it.
SNAPSHOTDB_TOKENAdmin token, sent as Authorization: Bearer.
SNAPSHOTDB_CONSOLE_ORIGINSComma-separated exact browser origins allowed to call the control API. No wildcards; disabled by default.
SNAPSHOTDB_HOMEServer storage directory (default ~/.snapshotdb). Put it on a reflink-capable volume.
SNAPSHOTDB_IDLE_MINUTESIdle timeout before a branch suspends (default 5; 0 never suspends).

Exit codes

CodeMeaning
0Success.
1Something failed while running — network, engine, timeout.
2The command was wrong, or preflight did not pass.

JSON and scripting