NativeAIHub

Codex CLI (Open Source)

Free (Apache 2.0 open source), requires ChatGPT account or API key2 min read
1

Install the binary

Use the standalone installer (curl), npm, or Homebrew. Runs on macOS, Linux, and Windows natively.

2

Authenticate

Sign in with your ChatGPT account (Free through Enterprise) or set an API key for pay-per-token usage.

3

Choose sandbox mode

Defaults to workspace-write with OS native enforcement. Read-only for maximum safety, danger-full-access for unrestricted use.

4

Start coding

Run codex in your project directory for interactive use, codex exec for non-interactive CI/CD, or codex cloud exec for cloud tasks.

FeatureCodex Cloud (Web)Codex CLICodex Desktop App
Runs whereRuns whereOpenAI cloudYour local machineYour local machine
Open sourceOpen sourceYes (Apache 2.0)
Local file accessLocal file accessNo (cloud only)
Computer UseComputer UseYes (macOS, Windows)
AutomationsAutomationsYes (cron scheduling)
MCP supportMCP supportYes (client)Yes (client + server)Yes (client + server)
SandboxingSandboxingCloud isolationOS native (Seatbelt, bubblewrap, Windows Sandbox)OS native
Delivers results asDelivers results asGitHub pull requestDirect file changesDirect file changes or PR via cloud delegation

When to use which surface

Use Codex CLI when you want a terminal workflow, need open source transparency, or want to use non-OpenAI providers. Use the desktop app for the richest experience with Computer Use, Automations, and Appshots. Use Codex Cloud for background tasks that benefit from isolation. Use the IDE extension to stay in your editor while delegating to the cloud. Use mobile remote control to steer tasks from your phone when you are away from your desk.