# OpenAI Codex Configuration
# Standard configuration for OpenAI's codex models

model = "gpt-5-codex"
model_provider = "openai"
approval_policy = "on-request"
sandbox_mode = "workspace-write"

[model_providers.openai]
name = "OpenAI"
base_url = "https://api.openai.com/v1"
env_key = "OPENAI_API_KEY"
wire_api = "chat"

# Optional: Enable helpful features
[features]
view_image_tool = true
web_search_request = false

# Optional: Shell environment policy
[shell_environment_policy]
inherit = "core"
include_only = ["PATH", "HOME", "LANG"]

# Optional: Sandbox workspace-write settings
[sandbox_workspace_write]
exclude_tmpdir_env_var = false
exclude_slash_tmp = false
network_access = true
