One of the following:
class EnvironmentResourceNone: …

The session talks to CCA without selecting or provisioning an execution environment.

type: Literal["none"]

The type of the object. Always none.

class EnvironmentResourceOpenAIHosted: …

An environment hosted by OpenAI.

id: str

The public ID of the environment.

minLength0
capability_directories: List[str]

Directories that contain capabilities exposed to the agent.

minItems0
maxItems2000

Files available in the environment, excluding their contents.

minItems0
maxItems50
One of the following:
class HostedEnvironmentFileID: …

A file copied from the OpenAI Files API.

id: str

The session-scoped ID of the file in the execution environment.

minLength0
file_id: str

The ID of the uploaded file.

minLength0
path: str

The file’s absolute path inside the environment.

minLength0
size_bytes: int

The decoded file size in bytes.

formatint64
minimum0
type: Literal["file_id"]

The type of the object. Always file_id.

class HostedEnvironmentFileResourceInline: …

A file supplied inline when the session was created.

id: str

The session-scoped ID of the file in the execution environment.

minLength0
path: str

The file’s absolute path inside the environment.

minLength0
size_bytes: int

The decoded file size in bytes.

formatint64
minimum0
type: Literal["inline"]

The type of the object. Always inline.

network: EnvironmentResourceOpenAIHostedNetwork

The effective network access policy for the environment.

access: Literal["enabled", "disabled", "restricted"]

The environment’s network access mode.

One of the following:
"enabled"

Allows unrestricted network access.

"disabled"

Disables network access.

"restricted"

Applies the configured domain restrictions.

allowed_domains: List[str]

Domains the environment may access when network access is restricted.

minItems0
maxItems2000
packages: EnvironmentResourceOpenAIHostedPackages

Packages installed in the environment.

npm: List[str]

npm packages installed globally in the environment.

minItems0
maxItems16384
python: List[str]

Python packages installed in the environment.

minItems0
maxItems16384
system: List[str]

System packages installed in the environment.

minItems0
maxItems16384
plugins: List[HostedPlugin]

Plugins installed in the environment, excluding their archive contents.

minItems0
maxItems2000
description: str

The installed plugin description.

minLength0
name: str

The installed plugin name.

minLength0
type: Literal["inline"]

The type of the object. Always inline.

skills: List[HostedSkill]

Skills installed in the environment, excluding their archive contents.

minItems0
maxItems2000
One of the following:
class HostedSkillReference: …

A skill installed from the Skills API.

description: str

The installed skill description.

minLength0
name: str

The installed skill name.

minLength0
skill_id: str

The referenced skill ID.

minLength0
type: Literal["skill_reference"]

The type of the object. Always skill_reference.

version: str

The concrete skill version installed for this session.

minLength0
class HostedSkillResourceInline: …

A skill installed from an inline ZIP archive.

description: str

The installed skill description.

minLength0
name: str

The installed skill name.

minLength0
type: Literal["inline"]

The type of the object. Always inline.

type: Literal["openai_hosted"]

The type of the object. Always openai_hosted.

container_size: Optional[Literal["small", "medium", "large"]]

The effective CPU and memory tier, or null when unknown or outside the public tiers.

One of the following:
"small"
"medium"
"large"
desktop: Optional[EnvironmentResourceOpenAIHostedDesktop]

The effective desktop configuration.

enabled: bool

Whether the environment provisions a desktop and browser proxy.

class EnvironmentResourceSelfHosted: …

An environment hosted by the application.

id: str

The public ID of the environment.

minLength0
capability_directories: List[str]

Directories that contain capabilities exposed to the agent.

minItems0
maxItems2000
remote_url: str

Pass this URL unchanged to codex exec-server --remote when connecting this environment.

minLength0
type: Literal["self_hosted"]

The type of the object. Always self_hosted.

workspace_directory: str

The absolute project directory inside the environment. Defaults to /workspace.

minLength0