Ephemeral vs durable
API endpoints
Example: ephemeral run
language (javascript | python) and source (script text). Optional: state, timeoutMs (default 8000, max 20000). See SandboxEphemeralDto and CreateSandboxSessionDto in the API reference.
SDK
sandbox.createSession / create_session, execute, getSession / get_session, releaseSession / release_session.
Related
- Tools — Create custom tools after a successful sandbox preview
- Browser sessions — Live browser runtime (separate from code sandbox)