Environment object
Returned by create, get, list, update, and archive endpoints.Environment config
For
self_hosted, the config must be exactly:
type is "cloud".
Environment packages
packages maps package managers to arrays of package spec strings. Cloud environment responses include type plus apt, npm, and pip; omitted arrays are returned as [].
Environment setup script
setup_script is a shell script executed during sandbox preparation, after packages are installed. It runs through /bin/bash -lc. Use it for initialization steps that cannot be expressed as packages, for example, cloning a repository, writing config files, or warming caches.
On success a completion marker is written inside the sandbox so the script does not run twice in the same sandbox; when the sandbox is recreated, the script runs again.
A non-zero exit aborts session startup. The error response includes the
setup_script exit code and a stderr excerpt to help diagnose the failure.
Environment networking
Related
Cloud environment setup
Choose the container, network, and dependencies your agent runs in.