Skip to main content

Environment object

Returned by create, get, list, update, and archive endpoints.
FieldTypeDescription
idstringEnvironment ID with the env_ prefix
typestringAlways "environment"
namestringEnvironment name
descriptionstringEnvironment description
configEnvironment configEnvironment configuration
metadataobjectMetadata object. Defaults to {}
statusstringEnvironment status. Valid values: ready, archived
archivedbooleanWhether the Environment is archived
archived_atstring | nullArchive time in UTC, or null when not archived
created_atstringCreation time in UTC
updated_atstringLast update time in UTC

Environment config

FieldTypeRequiredDescription
typestringYesMust be "cloud"
networkingEnvironment networkingNoNetwork access configuration
packagesEnvironment packagesNoDependencies to install when a session sandbox is prepared

Environment packages

packages maps supported package managers to arrays of package spec strings. Supported keys are apt, pip, and npm; other keys are not installed by the current environment preparation flow.
KeyTypeDescriptionExample
aptarray of stringDebian/Ubuntu system packages installed with apt-get install -y["git", "curl", "build-essential"]
piparray of stringPython packages installed with pip install["pandas", "PyYAML==6.0.1"]
npmarray of stringNode.js packages installed globally with npm install -g["typescript@5.0.0", "eslint"]
Package installation happens during sandbox preparation for a session. Invalid package names or unavailable versions can cause the session to fail with an environment configuration error.

Environment networking

FieldTypeRequiredDescription
typestringYesValid values: limited, unrestricted

Cloud environment setup

Choose the container, network, and dependencies your agent runs in.