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.
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.
| Operation | Endpoint | Disk | Memory and open apps | Result | Works on |
|---|---|---|---|---|---|
| Suspend | POST /computers/{id}/suspend | Kept | Kept | Same computer, suspended | Running Linux without a GPU, not billed by the hour |
| Resume | POST /computers/{id}/resume | Kept | Kept | Same computer, running | A suspended computer |
| Stop | POST /computers/{id}/stop | Archived | Lost | Same computer, frozen, host released | Running Linux and Windows |
| Start | POST /computers/{id}/start | Restored | Only if it was suspended to storage | Same computer, running | frozen, stopped, or suspended in storage |
| Restart | POST /computers/{id}/restart | Kept | Lost | Same computer, rebooted | A computer on its host, not suspended |
| Fork | POST /computers/{id}/fork | Copied | Copied | New computer, running | Running Linux only |
| Clone | POST /computers/{id}/clone | Copied | Not copied | New computer, fresh boot | Running Linux or Windows |
Sources: Suspend, Resume, Stop, Start, Restart, Fork, Clone.
Suspend and resume
# 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
200withstatus: "suspended", or202withstatus: "suspending"while memory is still being saved. PollGET /computers/{id}/suspensionuntil it readssuspended. - 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
202carriesexpected_seconds(Resume computer). - Both calls are idempotent. Suspending a suspended computer returns
200; resuming a running one returns200withstatus: "running". - Suspend is for Linux computers without a GPU. Others return
400 suspend_unsupported. A computer billed by the hour returns409 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).
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 }, orPrefer: respond-asyncto get202with anoperation_idandpoll_url. Without it the call waits up to 300 seconds. - Start restores the archived disk and boots it. The computer gets a new
instance_idand can land on a different host with a different address and ports, so readGET /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).
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:
{
"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.
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
frozenand has no VM to copy, so Clone answers400 NOT_CLONABLE; start it first. A source asleep in storage returns409 computer_asleepuntil you resume or start it. nameis optional, unique in the workspace, 1 to 255 characters. A name in use returns409 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
- Keep the UUID, not the
instance_id. A computer started from its archive, or woken from storage, gets a newinstance_idand can move hosts. Store theidand read connection details fromGET /computers/{id}. - Poll; do not retry blindly. Async start and stop return a
poll_url. Poll every two seconds until the operation readssucceeded,failedorneeds_review.needs_reviewmeans the host's answer was lost; Orgo checks the computer and resolves the operation within about two hours, and a second start or stop returns409until then (Get computer operation). - Reconnect streams. A restart keeps the computer's ports and VNC password, but open VNC and terminal WebSockets drop during the reboot.
| Code | Seen on | Next step |
|---|---|---|
suspend_in_progress (409) | Start, stop, resume, clone, restart | Wait until the status is suspended, then retry |
computer_asleep (409) | Clone, fork | Resume or start the source |
NOT_FORKABLE (409) | Fork | Start the source; for Windows or an older VM type, clone instead |
NOT_CLONABLE (400) | Clone | Start the source first |
HOURLY_USE_STOP (409) | Suspend | Stop instead |
OPERATION_IN_PROGRESS (409) | Start, stop | Poll the pending operation |
OPERATION_NEEDS_REVIEW (409) | Start, stop | Wait while Orgo checks the last operation |
upgrade_required (402) | Start, resume, restart | The workspace plan no longer funds running computers; a person must upgrade |
DISK_QUOTA_EXCEEDED (403) | Clone, fork | The 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_UNSUPPORTEDto Suspend, Stop, Fork and Clone. - None of these calls deletes a computer.
DELETE /computers/{id}does.