Skip to content

Examples and guides for using the OpenAI API

581 B
Raw Blame

E2B sandboxes

Run Agents API tasks with codex exec-server in E2B sandboxes:

  • Application-managed: create a sandbox, run a task, read its output, and clean up the sandbox and session.
  • Webhook-managed: deploy a controller that provisions workers and resumes paused workers when a session needs a connection.

Both modes use sandbox.py for executor installation and launch. Workers receive only the restricted executor key; application credentials stay in the application or webhook controller.