← Blog

How do you pause, fork, or clone an AI agent's computer?

What suspend, stop, fork, clone, and restart keep, and when to use each.

Updated

Orgo has five lifecycle calls for a computer, and each keeps a different amount of state. Suspend pauses it with memory and disk saved, so open windows and processes continue on Resume. Stop keeps only the disk and releases the host. Fork copies a running Linux computer including its memory, so a second computer continues from the same moment. Clone copies the disk into a new computer that boots fresh. Restart reboots in place. The docs' rule: clone to reuse a setup, fork to try two next steps from the same moment (Clone computer). Suspend when the agent will be back soon and needs its open apps; stop when it only needs its files.

This matters more for an agent than for a server, because an agent's working context often lives in the desktop: a signed-in browser tab, a half-filled form, an app window in a particular state. The statuses involved are running, suspending, suspended, resuming and frozen. A computer you stop reads frozen.

OperationEndpointDiskMemory and open appsResultWorks on
SuspendPOST /computers/{id}/suspendKeptKeptSame computer, suspendedRunning Linux without a GPU, not billed by the hour
ResumePOST /computers/{id}/resumeKeptKeptSame computer, runningA suspended computer
StopPOST /computers/{id}/stopArchivedLostSame computer, frozen, host releasedRunning Linux and Windows
StartPOST /computers/{id}/startRestoredOnly if it was suspended to storageSame computer, runningfrozen, stopped, or suspended in storage
RestartPOST /computers/{id}/restartKeptLostSame computer, rebootedA computer on its host, not suspended
ForkPOST /computers/{id}/forkCopiedCopiedNew computer, runningRunning Linux only
ClonePOST /computers/{id}/cloneCopiedNot copiedNew computer, fresh bootRunning Linux or Windows

Sources: Suspend, Resume, Stop, Start, Restart, Fork, Clone.

Suspend and resume

bash
# Pause, memory included
curl -X POST https://www.orgo.ai/api/computers/$COMPUTER_ID/suspend \
  -H "Authorization: Bearer $ORGO_API_KEY"
 
# Later: continue where it left off
curl -X POST https://www.orgo.ai/api/computers/$COMPUTER_ID/resume \
  -H "Authorization: Bearer $ORGO_API_KEY"
  • Suspend returns 200 with status: "suspended", or 202 with status: "suspending" while memory is still being saved. Poll GET /computers/{id}/suspension until it reads suspended.
  • A suspended computer may be moved off its host to storage. One still on its host resumes in seconds; one in storage wakes in about a minute, and its 202 carries expected_seconds (Resume computer).
  • Both calls are idempotent. Suspending a suspended computer returns 200; resuming a running one returns 200 with status: "running".
  • Suspend is for Linux computers without a GPU. Others return 400 suspend_unsupported. A computer billed by the hour returns 409 HOURLY_USE_STOP; stop it instead.

On paid plans, auto_stop_minutes on PATCH /computers/{id}/resize sets how many idle minutes pass before a running computer suspends itself; 0 means always on, which is the default (Resize computer).

Stop and start

Stop archives the disk to object storage, keeping files, installed software and configuration, and releases the host, so a stopped computer uses no compute (Stop computer).

bash
curl -X POST "https://www.orgo.ai/api/computers/$COMPUTER_ID/stop?async=true" \
  -H "Authorization: Bearer $ORGO_API_KEY"
  • Processes and memory are lost. If the agent needs its open apps as they are, suspend instead.
  • Stop works on Linux and Windows. Other systems and physical devices return 400 STOP_UNSUPPORTED.
  • Send ?async=true, a body { "async": true }, or Prefer: respond-async to get 202 with an operation_id and poll_url. Without it the call waits up to 300 seconds.
  • Start restores the archived disk and boots it. The computer gets a new instance_id and can land on a different host with a different address and ports, so read GET /computers/{id} again afterwards (Start computer).
  • A computer billed by the hour pays a lower rate for its disk while stopped. On a free account, when the credit runs out the computer stops, and its files are kept for 7 days, then deleted.

Fork

Fork copies a running Linux computer including its memory. The copy comes up running with the same apps, windows and processes (Fork computer).

bash
curl -X POST https://www.orgo.ai/api/computers/$COMPUTER_ID/fork \
  -H "Authorization: Bearer $ORGO_API_KEY"

The answer is 201 with the new computer. Use its id as the fork's handle:

json
{
  "id": "7f3a9c21-5e8b-4d0a-b6c4-1e2f3a4b5c6d",
  "name": "agent-1 (fork)",
  "status": "running",
  "fly_instance_id": "c58e1a04"
}

Uses: fork before a risky step, such as submitting a form or running a destructive command, so a copy from before it exists. Run one strategy on the source and another on the fork, and keep the one that worked. Or give a reviewer or a second agent the exact desktop while the first keeps working.

The source must be a running Linux computer on a VM type that can fork live. A stopped source, a Windows computer or an older VM type returns 409 NOT_FORKABLE. The source pauses while its memory is copied, about two seconds according to the docs, longer with a lot of memory. The fork gets a new UUID, a new instance_id, and auto-stop set to always on.

Clone

Clone copies the full disk, including installed software, files and browser sessions, into a new computer that boots fresh (Clone computer). It suits the case where you configured one computer by hand and want more like it.

bash
curl -X POST https://www.orgo.ai/api/computers/$COMPUTER_ID/clone \
  -H "Authorization: Bearer $ORGO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name": "agent-2"}'
  • Clone the source while it runs. A stopped computer reads frozen and has no VM to copy, so Clone answers 400 NOT_CLONABLE; start it first. A source asleep in storage returns 409 computer_asleep until you resume or start it.
  • name is optional, unique in the workspace, 1 to 255 characters. A name in use returns 409 NAME_TAKEN.
  • Clone is a disk copy, so stop applications that need a consistent copy of their data first. Some sites may ask the new computer to sign in again.

For many identical computers, a template is the versioned way to define one; see Orgo templates and triggers.

After a lifecycle change

  1. Keep the UUID, not the instance_id. A computer started from its archive, or woken from storage, gets a new instance_id and can move hosts. Store the id and read connection details from GET /computers/{id}.
  2. Poll; do not retry blindly. Async start and stop return a poll_url. Poll every two seconds until the operation reads succeeded, failed or needs_review. needs_review means the host's answer was lost; Orgo checks the computer and resolves the operation within about two hours, and a second start or stop returns 409 until then (Get computer operation).
  3. Reconnect streams. A restart keeps the computer's ports and VNC password, but open VNC and terminal WebSockets drop during the reboot.
CodeSeen onNext step
suspend_in_progress (409)Start, stop, resume, clone, restartWait until the status is suspended, then retry
computer_asleep (409)Clone, forkResume or start the source
NOT_FORKABLE (409)ForkStart the source; for Windows or an older VM type, clone instead
NOT_CLONABLE (400)CloneStart the source first
HOURLY_USE_STOP (409)SuspendStop instead
OPERATION_IN_PROGRESS (409)Start, stopPoll the pending operation
OPERATION_NEEDS_REVIEW (409)Start, stopWait while Orgo checks the last operation
upgrade_required (402)Start, resume, restartThe workspace plan no longer funds running computers; a person must upgrade
DISK_QUOTA_EXCEEDED (403)Clone, forkThe source disk is larger than the plan's per-computer storage

What copies count against

A fork or clone is a new computer, so it counts against the workspace owner's plan: one of the account's computers, its RAM and vCPU, the per-computer size limit, and storage for the copied disk. Running out of any returns 403. A source billed by the hour or by its own subscription returns 409 HOURLY_QUOTE_REQUIRED, because a copy needs its own purchase.

Where these do not apply

  • Mac and iPhone computers cannot be stopped, suspended, forked or cloned. Clone answers 409 unsupported_os, and Stop on a Mac suggests Restart.
  • GPU computers cannot be suspended. On a dedicated GPU host, Restart needs {"clear_disk": true} and clears everything outside /workspace.
  • A computer on a dedicated machine that Orgo manages directly answers DEVICE_LIFECYCLE_UNSUPPORTED to Suspend, Stop, Fork and Clone.
  • None of these calls deletes a computer. DELETE /computers/{id} does.