Codex CLI¶
Official Docs: openai.github.io/codex-cli Category: CLI
OpenAI's Codex CLI is a command-line tool for AI-assisted coding using OpenAI's models.
Quick Links¶
Works With
Codex CLI uses OpenAI models including GPT-4 and GPT-4 Turbo.
Configuration¶
See Understanding Config Directories for general concepts.
Codex CLI stores its configuration in ~/.codex/:
| File | Purpose |
|---|---|
config.toml | Main configuration (TOML format) |
Configuration File¶
# ~/.codex/config.toml
[model]
name = "gpt-4"
temperature = 0.7
[api]
key = "sk-..." # Or use OPENAI_API_KEY env var
Tips & Tricks¶
Community Tips
This section collects tips from real users. Contribute your tips!
Tips coming soon! Be the first to contribute.
Common Issues¶
"API key invalid"
- Check your OpenAI API key
- Verify billing is set up on OpenAI account
- Try regenerating the key
Community Resources¶
Help Improve This Page
Know a tip that's not listed? Found a helpful video tutorial? Contribute to this page.