Examples and guides for using the OpenAI API
Daytona sandboxes
Run Agents API tasks with codex exec-server in Daytona 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 restarts stopped 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.