Install
Set your API key
Create a key on the dashboard and export it in the terminal where you will run the example:Run one agent
This example starts a billable run and asks Codex to write a release note. Thefinally block destroys the sandbox after the output is read.
- TypeScript / JavaScript
- Python
Save as
run.mjs. The example uses the TypeScript SDK from JavaScript,
so it runs directly with Node.run.mjs
output.files maps file names to their contents; paths are relative to the
sandbox’s output/ directory.
Continue building
- Configure an agent: choose a model and provide files, skills, and tools.
- Continue and inspect runs: keep context, save state, and download traces.
- Run work in parallel: process multiple inputs with Swarm.

