Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/cloudflare/sandbox-sdk/llms.txt

Use this file to discover all available pages before exploring further.

This method is not currently implemented in the SDK. Session tracking is planned for a future release.

Planned Method Signature

async listSessions(): Promise<SessionInfo[]>

Planned Returns

SessionInfo[]
array
Array of session information objects

Workaround

Currently, track sessions manually in your application:
const activeSessions = new Map<string, ExecutionSession>();

// Create and track
const session = await sandbox.createSession({ id: 'my-session' });
activeSessions.set(session.id, session);

// Cleanup
await sandbox.deleteSession('my-session');
activeSessions.delete('my-session');

See Also