Codex in Detail #948
ikaijua
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Codex in Detail
What is Codex?
Codex is OpenAI's AI coding agent. Its core is an open-source (Apache-2.0) terminal CLI written in Rust. It can understand, edit, and run code directly in your local repository, and is also available through VS Code / Cursor / Windsurf / JetBrains IDE extensions, the Codex App (desktop), and Codex Web (cloud tasks). Active sessions can sync across phone, desktop, and web through the same ChatGPT account.
Core Philosophy
Terminal-Native
Codex CLI is built around the terminal workflow, letting you complete the full development loop—explore, edit, run, and review—inside your familiar shell environment.
Local-First with Optional Cloud
By default Codex runs on your local machine, keeping code and credentials local. You can also hand work off to Codex Cloud and let it finish asynchronously in a cloud sandbox.
Controllable Automation
Approval modes and sandbox settings let you control when Codex can read or write files, run commands, and access the network.
Extensible
Codex supports Skills (reusable instructions), Plugins (team tool integrations), MCP servers, subagents, and Hooks.
Available Surfaces
codex appfor visual management and multiple sessionsCore Capabilities
Code Understanding & Modification
Command-Line & CI Integration
codex execfor scripts and pipelinesCode Review
codex reviewexamines uncommitted changes, commits, or branchesExtensibility
Cross-Device & Remote
Quick Start
Installation
Official install script:
Homebrew:
npm (alternative):
Verify installation:
Log In
Choose Sign in with ChatGPT (recommended) or use an OpenAI API key.
Common Commands
Approval Modes & Sandbox
Codex uses an approval mode to decide when to pause for confirmation and a sandbox to define file and network access.
Approval Modes
suggest(default)auto-editfull-autoSandbox Modes
read-onlyworkspace-writedanger-full-accessBest Practices
suggestmode: increase automation only after you know the project.Related Resources
License
Codex CLI is released under the Apache-2.0 license. Use of OpenAI model services is subject to the corresponding terms of service.
All reactions