Skip to content

Commit cac6483

Browse files
docs: update README for Codex module configuration details
1 parent 5e9f0dd commit cac6483

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

registry/coder-labs/modules/codex/README.md

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ module "codex" {
8282
- **Install**: The module installs Codex CLI and sets up the environment
8383
- **System Prompt**: If `codex_system_prompt` and `folder` are set, creates the directory (if needed) and writes the prompt to `AGENTS.md`
8484
- **Start**: Launches Codex CLI in the specified directory, wrapped by AgentAPI
85-
- **Environment**: Sets `OPENAI_API_KEY` and `CODEX_MODEL` for the CLI (if variables provided)
85+
- **Configuration**: Sets `OPENAI_API_KEY` environment variable and passes `--model` flag to Codex CLI (if variables provided)
8686

8787
## Sandbox Configuration
8888

@@ -124,11 +124,16 @@ module "codex" {
124124
For advanced configuration or when you need to override multiple settings:
125125

126126
```tf
127-
extra_codex_settings_toml = <<-EOT
128-
# Any custom Codex configuration
129-
model = "gpt-4"
130-
disable_response_storage = true
131-
EOT
127+
module "codex" {
128+
source = "registry.coder.com/coder-labs/codex/coder"
129+
# ... other variables ...
130+
131+
extra_codex_settings_toml = <<-EOT
132+
# Any custom Codex configuration
133+
model = "gpt-4"
134+
disable_response_storage = true
135+
EOT
136+
}
132137
```
133138

134139
> [!NOTE]

0 commit comments

Comments
 (0)