Skip to main content
Clone copies a stopped Computer’s disk into a new persistent Computer with its own ID, fresh /etc/machine-id, and new SSH Host Key. The child inherits the source’s configured Memory (ram_mib) and is admitted against your current Account pool and persistent_computers limit. Use Clone to branch an environment for an experiment without altering the source. Clone copies disk state only—it is not a live-memory or running-process fork, and it never silently Stops a running source.

What is copied vs. fresh on the child

Check startup services and browser profiles before cloning: Because Clone copies the Guest disk faithfully, any self-starting bot, cron job, or saved browser/SaaS session on disk will also exist on the child when it boots, which can cause duplicate jobs or third-party session conflicts. Clean or disable them on the source before cloning if unintended.

Clone with a saved idempotency key

Clone consumes one slot in your Account’s persistent_computers limit (50 / 500 / 1,000 / 1,000 across Starter / Pro / Max 16 / Max 32) plus Storage and running Memory for the child. In the Console, Stop the source Computer, then open Settings → Advanced → Clone Computer. Through @deepest/sdk, save a unique DEEPEST_CLONE_KEY before calling clone(), and reuse that exact key + source ID if recovery is needed:
Expected outcome: the source remains stopped, and the child has a distinct id, state: "running", and its own Linux environment. Verify the child via deepest.computer(child.id).exec(...), and never confuse source and child IDs in follow-up actions.

Re-authorize access on the child

Because platform credentials are never inherited:
  • Add SSH public keys to child.id via SSH and fetch its own ssh.endpoint() (expect a new Host Key).
  • Grant only needed Vault secrets to child.id.
  • Create separate Private Preview or Share routes for the child’s ports.

Memory, CPU, and Storage considerations

  • Memory: Cloning a 2,048 MiB stopped source creates a 2,048 MiB running child. Starting both concurrently requires 4,096 MiB. You cannot specify a different size inside clone()—resize the stopped source beforehand if needed (only after resolving any prior uncertain clone intent).
  • CPU & Network: Source and child share the same Account shared_cpus budget and Paid network Fair Use pool.
  • Storage: Both disks remain Account Storage; independent writes and snapshots add to storage_used_bytes.

Failure and recovery

When your experiment finishes, Stop the child to free Memory or explicitly Delete child.id after confirming the ID so you don’t delete the source by mistake. See Computer lifecycle and Errors.