#!/bin/bash # The authoring helper's configuration. Codex CLI reads ~/.codex/config.toml; # the `codex` shell function .devcontainer/post-create.sh puts in ~/.bashrc # renders that file from the worker's .env at every launch and then starts # Codex, so the proxy route and the key variable are never edited by hand: # # - Codex 0.157.0's built-in `openai` provider does not take its base URL # from OPENAI_BASE_URL (it goes to OpenAI's own host), and the LLM proxy # serves gpt-6.1-sol on the Responses API only, so the model provider is a # custom block naming the proxy route (OPENAI_BASE_URL), the key variable # (OPENAI_API_KEY; the value itself is never written) and the wire API. # - The proxy route differs per deployment, so base_url is rendered from # .env at each launch, never fixed here. # - The model and its reasoning effort are the helper's: gpt-6.1-sol at high. # - Approvals are off and Codex's own sandbox is off (danger-full-access): # the dev container is the sandbox, the stance the interactive helper has # always taken here, and Codex's bubblewrap sandbox cannot create the # namespaces it needs inside the container anyway. # - The directory the helper is launched from is written as a trusted # project ([projects."