sandbox.id somewhere durable (a database, a queue message), and reconnect later with Sandbox.connect().
Sandbox.connect(id)- returns a livesandboxwithcommandsandfilesready to use. If the sandbox ispaused, it’s auto-resumed before returning.sandbox.getInfo()- fetch the current status and metadata for a sandbox you already have (read-only, no state change)
Find sandboxes with list
List all sandboxes on the team, or narrow the result with filters. metadata
returns only sandboxes matching every key-value pair you pass; status
selects one lifecycle state; limit and offset page through large lists.
list() returns an array of SandboxInfo - no live sandbox is constructed. Call Sandbox.connect(id) when you need one.