codex_run
Send coding tasks to OpenAI Codex for code generation, file operations, and technical analysis using the local CLI with cached authentication.
Instructions
Send a task to OpenAI Codex via the local codex CLI. Specializes in coding tasks, file operations, and technical analysis. Uses cached OpenAI auth — no API key required.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | OpenAI model to use, e.g. "o3", "gpt-5-codex". Omit to use the configured default (CODEX_MODEL env var or Codex default). | |
| prompt | Yes | Task or question to send to the Codex AI agent. Works best for coding tasks, file operations, and technical analysis. | |
| sandbox | No | "full-auto": workspace-write sandbox, no approval prompts (default, recommended). "dangerous": bypass all approvals and sandbox — only use in isolated environments. | full-auto |
| timeout_seconds | No | Max seconds to wait. Codex tasks can take longer than Gemini — 120s default. | |
| working_directory | No | Working directory for the Codex process. Set this to the project root so Codex can read and write local files. Defaults to the user home directory. |