Skip to content
Runtime

A sandbox from a browser

A sandbox session is a short-lived token your own web page uses to run commands, read and write files and reach previews in one sandbox, with no API key and no proxy of your own. It cannot stop, extend or change the sandbox, lasts 1 hour unless you ask for up to 24 hours, can be revoked at once, and is answered only from the pages you list. sbx.sessions.create({ origins }) makes one and Sandbox.fromSession({ token, sandboxId }) uses it, from withruntime 0.8.3; Blaxel's sandbox.sessions and fromSession now work in the drop-in. See JavaScript and Python.

1,000 agent runs for $0.64.

  • Your first $10 becomes $20
  • You never owe more than you add
Start with $10, get $20
Start with $10, get $20