Environments
Create an agent environment
POST
/agents/environmentsList agent environments
GET
/agents/environmentsRetrieve an agent environment
GET
/agents/environments/{environment_id}Models
EnvironmentInfo object { id, files, object, 4 more } Safe metadata for a first-class execution environment.
EnvironmentInfo object { id, files, object, 4 more }
Safe metadata for a first-class execution environment.
Files installed in the environment, without their contents.
minItems0maxItems2000
Files installed in the environment, without their contents.
minItems0
maxItems2000
object: "agent.environment" (default: "agent.environment")
The object type. Always agent.environment.
Skills installed in the environment, without their archive contents.
minItems0maxItems2000
Skills installed in the environment, without their archive contents.
minItems0
maxItems2000
EnvironmentsFiles
Write an agent environment file
POST
/agents/environments/{environment_id}/filesList agent environment files
GET
/agents/environments/{environment_id}/filesEnvironmentsTemplates
Create an agent environment template
POST
/agents/environments/templatesDelete an agent environment template
DELETE
/agents/environments/templates/{environment_template_id}List agent environment templates
GET
/agents/environments/templatesRetrieve an agent environment template
GET
/agents/environments/templates/{environment_template_id}Update an agent environment template
POST
/agents/environments/templates/{environment_template_id}Models
EnvironmentTemplate object { id, capability_directories, created_at, 9 more } Reusable configuration that provisions a fresh OpenAI-hosted environment for each session.
EnvironmentTemplate object { id, capability_directories, created_at, 9 more }
Reusable configuration that provisions a fresh OpenAI-hosted environment for each session.
capability_directories: array of string
Directories that expose capabilities to the agent.
minItems0
maxItems2000
files: array of FileID { file_id, path, type } or Inline { path, size_bytes, type } Safe file metadata, excluding contents and session-scoped file IDs.
minItems0maxItems50
files: array of FileID { file_id, path, type } or Inline { path, size_bytes, type }
Safe file metadata, excluding contents and session-scoped file IDs.
minItems0
maxItems50
network: object { access, allowed_domains } Runtime network access for each OpenAI-hosted environment.
network: object { access, allowed_domains }
Runtime network access for each OpenAI-hosted environment.
object: "agent.environment.template" (default: "agent.environment.template")
The object type. Always agent.environment.template.
packages: object { npm, python, system } Packages installed in each fresh OpenAI-hosted environment.
packages: object { npm, python, system }
Packages installed in each fresh OpenAI-hosted environment.
skills: array of SkillReference { skill_id, type, version } or Inline { description, name, type } Safe skill metadata, preserving unresolved version selectors.
minItems0maxItems200
skills: array of SkillReference { skill_id, type, version } or Inline { description, name, type }
Safe skill metadata, preserving unresolved version selectors.
minItems0
maxItems200