Persistent disk and snapshots
Last updated: 30 November 2026 · API v1 (beta)
Only the /workspace directory is persistent on a machine. Even if you delete the machine, the files on the persistent disk stay on your new machine. A snapshot is a copy of the machine's whole disk and is kept in a separate place.
Persistent /workspace
- Every user has one persistent disk (
/workspace). On the Beta package its capacity is 20 GB per user. - The persistent disk is attached to only one machine at a time.
- A Persistent disk badge appears on the page of the machine the disk is attached to. On a machine opened while the disk is attached to another machine,
/workspaceis Temporary and the badge shows this. - Files in a temporary
/workspaceare gone when the machine is deleted. They are not written to the persistent disk. - Only
/workspaceis persistent. Other directories and packages installed with apt are gone when the machine is deleted. The tools you choose when you create a machine are installed automatically on every start. - Docker images and volumes are kept on the persistent disk (in the hidden
/workspace/.hb-dockerfolder) and count towards its capacity.
Keep your important files under /workspace.
Snapshots
A snapshot takes the machine's disk image: the whole disk is copied, installed software included.
- You take a snapshot from the machine's page or from the Snapshots page. In the API it is also taken with
POST /v1/snapshots. - The Beta package allows at most 5 snapshots per organization.
- When a snapshot is ready, a
snapshot.createdwebhook event arrives (Webhooks). - You open a new machine from a snapshot. This machine's
/workspaceis temporary: the copied disk is not attached to the persistent disk and is gone when the machine is deleted. - You cannot choose tools on a machine opened from a snapshot.
- Taking and deleting snapshots in the API needs the
snapshots:writescope. Scope table: API keys.
Replicating from a snapshot
You can open 1 to 10 machines from one snapshot at the same time, which is handy for experiments or parallel work. The machines are named <prefix>-1, <prefix>-2 … (the snapshot name when no prefix is given), and all of them use a temporary /workspace like any machine opened from a snapshot.
- Panel: On the Snapshots page, Replicate on a ready snapshot's row lets you pick the number, the name prefix and the size. The estimated hourly cost is shown and you confirm it.
- CLI:
hb machines create --from-snapshot web-ilk --count 3 --prefix deney(CLI 0.5.0 and later, not published yet).--partialopens as many as fit. - API:
POST /v1/snapshots/{id}/fanoutwith the body{ "count": 3, "namePrefix": "deney", "size": "small", "allOrNothing": true }; it needs themachines:createscope. The answer hascreated(the machines that opened),failed(those that did not:index,name,code),requestedand the hourly cost estimateestimate. - Checked first: Your machine limit, your balance and your spend budget are checked against the requested number before anything opens. With
allOrNothingon (the default), if not all fit, none opens and the answer is402(PLAN_LIMIT_MACHINES,CREDIT_INSUFFICIENTorBUDGET_EXCEEDED;details.requestedanddetails.remaininggive the numbers). With it off, as many as fit open and the rest are listed infailedwith their reason. - Cost: Every machine that opens is metered at the normal per-minute price (Credits and pricing); the estimate is
count × the hourly price of the size.
Charges
The persistent disk and snapshots are charged at 4.00 TL per GB-month, on the allocated size. They are charged while the machine is paused or stopped too. Details: Credits and pricing.
How persistent each machine is
CLI
You manage snapshots from the panel or with the API. The CLI has the hb snapshots command (list, take, delete); you can also open a machine from a snapshot with hb machines create --from-snapshot; with --count it opens several machines. For details, see the CLI page.