Overview
OpenAI Codex is a code-specialized agent from OpenAI. When configured in Zenflow, it runs inside isolated Git worktrees with access to Zencoder’s context engine, multi-repo search, and Zen Rules.Setup
Prerequisites
You need one of:- OpenAI API key: Get one at platform.openai.com
Installation
Install Codex CLI
Install the OpenAI Codex agent on your machine. See OpenAI’s documentation for installation instructions.
When to Use Codex
- Code generation: Fast, accurate code writing across many languages
- Test generation: Comprehensive test suites from existing code
- Quick iterations: Fast response times for rapid prototyping
- API integration: Strong understanding of APIs and SDKs
Configurations
- Sandbox – Controls what Codex can do without asking:
None,Always ask,Workspace write, orDanger full access. - Model – Override the Codex model ID.
- Model reasoning effort – Controls how much compute Codex spends reasoning:
none,low,medium,high.
Pricing
| Option | How It Works |
|---|---|
| BYOK (API Key) | Pay OpenAI directly based on token usage |
Next Steps
Supported Agents
Compare all available agents
Claude Code
Try Claude for reasoning tasks