File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed
registry/coder-labs/modules/codex Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff 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" {
124124For 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]
You can’t perform that action at this time.
0 commit comments