Skip to content
For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to the page URL.
Primary navigation
Theme

Environments

Create an agent environment
client.beta.agents.environments.create(params, options?): EnvironmentInfo { id, files, object, 4 more }
POST
/agents/environments
List agent environments
client.beta.agents.environments.list(query?, options?): CursorPage<EnvironmentInfo { id, files, object, 4 more } >
GET
/agents/environments
Retrieve an agent environment
client.beta.agents.environments.retrieve(environmentID, options?): EnvironmentInfo { id, files, object, 4 more }
GET
/agents/environments/{environment_id}
Models
EnvironmentInfo { id, files, object, 4 more }

Safe metadata for a first-class execution environment.

EnvironmentsFiles

Write an agent environment file
client.beta.agents.environments.files.create(environmentID, body, options?): EnvironmentFile { environment_id, object, path, size_bytes }
POST
/agents/environments/{environment_id}/files
List agent environment files
client.beta.agents.environments.files.list(environmentID, query?, options?): TokenPage<EnvironmentFile { environment_id, object, path, size_bytes } >
GET
/agents/environments/{environment_id}/files
Models
EnvironmentFile { environment_id, object, path, size_bytes }

A live file in an execution environment.

EnvironmentsTemplates

Create an agent environment template
client.beta.agents.environments.templates.create(body?, options?): EnvironmentTemplate { id, capability_directories, created_at, 9 more }
POST
/agents/environments/templates
Delete an agent environment template
client.beta.agents.environments.templates.delete(environmentTemplateID, options?): EnvironmentTemplateDeleted { id, deleted, object }
DELETE
/agents/environments/templates/{environment_template_id}
List agent environment templates
client.beta.agents.environments.templates.list(query?, options?): CursorPage<EnvironmentTemplate { id, capability_directories, created_at, 9 more } >
GET
/agents/environments/templates
Retrieve an agent environment template
client.beta.agents.environments.templates.retrieve(environmentTemplateID, options?): EnvironmentTemplate { id, capability_directories, created_at, 9 more }
GET
/agents/environments/templates/{environment_template_id}
Update an agent environment template
client.beta.agents.environments.templates.update(environmentTemplateID, body?, options?): EnvironmentTemplate { id, capability_directories, created_at, 9 more }
POST
/agents/environments/templates/{environment_template_id}
Models
EnvironmentTemplate { id, capability_directories, created_at, 9 more }

Reusable configuration that provisions a fresh OpenAI-hosted environment for each session.

EnvironmentTemplateDeleted { id, deleted, object }

A deleted reusable environment template.