capabilities.work

Suspend and Resume a Devbox

A 4-step recipe with Runloop. We can help you get access.

Recipe · 4 steps

Suspend and Resume a Devbox

with Runloop · Environment Management

Suspend a devbox then resume it back to running.

  1. Suspend the running devbox; its disk is snapshotted as part of suspension.
  2. Poll until the devbox reports suspended, looping back while it is still suspending.
  3. Resume the suspended devbox from its captured disk state.
  4. Poll until the devbox reports running again, looping back while it is still resuming.
What you'll need to have ready
  • apiToken: Runloop API bearer token.
  • devboxId: The id of the running devbox to suspend and resume.
For your developer

Arazzo workflow runloop-ai:suspend-and-resume-devbox, 4 operations: suspendDevbox → waitForDevboxStatus → resumeDevbox → waitForDevboxStatus. Specs on APIs.io.