Use case

A background agent that works for hours.

Hand it the migration at lunch and read the result at five. A job that runs for hours will meet a machine that doesn't, so Annex saves the work as it goes.

The problem

Sandboxes are not forever. Providers cap how long one may live, reclaim machines, and now and then lose one. An agent three hours into a job finds out the hard way.

Starting again from nothing wastes the time and the money already spent, and the agent has forgotten what it had worked out.

How Annex does it

  1. Start the job and leave

    Give the agent the task and close the laptop. It works in a sandbox, not on your machine, so nothing depends on you staying.

  2. Annex saves as it goes

    On a timer, or whenever the agent asks, Annex saves the sandbox's files, how its environment was set up, and a note on where the work had got to.

  3. A lost machine isn't a lost job

    If the sandbox goes, Annex starts a new one, on the same provider or another, puts the files back and hands the agent its own notes. The job picks up from the last save.

What it looks like

Save where you are, then carry on anywhere.

From your own code

curl -X POST $ANNEX/sandboxes/sbx_…/checkpoints \
  -H "Authorization: Bearer $KEY" \
  -d '{"note": "tests pass; next: deploy"}'

curl -X POST $ANNEX/checkpoints/ckp_…/resume \
  -H "Authorization: Bearer $KEY" \
  -d '{"route": "cheapest"}'

Related use cases