Sandbox / SandboxPauseOpts
Interface: SandboxPauseOpts
Options for pausing a sandbox.
Extends
Properties
apiHeaders?
optionalapiHeaders?:Record<string,string>
Additional headers to send with AgentBox API requests.
Inherited from
apiKey?
optionalapiKey?:string
AgentBox API key to use for authentication.
Default
AGENTBOX_API_KEY // environment variableInherited from
domain?
optionaldomain?:string
Domain to use for the API.
Default
AGENTBOX_DOMAIN // environment variable or agentbox-runtime.ru
Inherited from
keepMemory?
optionalkeepMemory?:boolean
Whether to keep a full memory snapshot.
When false, the in-memory state is dropped and only the filesystem is persisted (a filesystem-only snapshot); resuming such a sandbox cold-boots (reboots) it from disk, losing running processes and open connections.
Default
truerequestTimeoutMs?
optionalrequestTimeoutMs?:number
Timeout for requests to the API in milliseconds.
Default
60_000 // 60 secondsInherited from
SandboxForkOpts.requestTimeoutMs
signal?
optionalsignal?:AbortSignal
An optional AbortSignal that can be used to cancel the in-flight request. When the signal is aborted, the underlying fetch is aborted and the returned promise rejects with an AbortError.