Lightweight coding agent that runs in your terminal
★ 134,641⑂ 21,312👁 665⑃ 18,800● 39,871▤ 1,000◈ 1,116
134,641
stars
+527+1,768+6,107
21,312
forks
665
watchers
18,800
prs
39,871
issues
1,000
releases
1,116
discussions
README
Codex CLI is a coding agent from OpenAI that runs locally on your computer. If you want Codex in your code editor (VS Code, Cursor, Windsurf), install in your IDE. If you want the desktop app experience, run codex app or visit the Codex App page. If you are looking for the cloud-based agent from OpenAI, Codex Web, go to chatgpt.com/codex. --- Quickstart Installing and running Codex CLI Run the following on Mac or Linux to install Codex CLI: shell curl -fsSL https://chatgpt.com/codex/install.sh | sh Run the following on Windows to install Codex CLI: shell powershell -ExecutionPolicy ByPass -c "irm https://chatgpt.com/codex/install.ps1 | iex" The standalone installers download from https://releases.openai.com/codex by default and fall back to GitHub Releases if a metadata or asset download is unavailable. To force GitHub Releases, set CODEX_INSTALLER_USE_RELEASES_OPENAI_COM to false (0 and no are also accepted): shell curl -fsSL https://chatgpt.com/codex/install.sh | CODEX_INSTALLER_USE_RELEASES_OPENAI_COM=false sh powershell $env:CODEX_INSTALLER_USE_RELEASES_OPENAI_COM='false'; irm https://chatgpt.com/codex/install.ps1 | iex Codex CLI can also be installed via the following package managers: shell Install using npm npm install -g @openai/codex shell Install using Homebrew brew install --cask codex Then simply run codex to get started. You can also go to the latest GitHub Release and download the appropriate binary for your platform. Each GitHub Release contains many executables, but in practice, you likely want one of these: - macOS - Apple Silicon/arm64: codex-aarch64-apple-darwin.tar.gz - x86_64 (older Mac hardware): codex-x86_64-apple-darwin.tar.gz - Linux - x86_64: codex-x86_64-unknown-linux-musl.tar.gz - arm64: codex-aarch64-unknown-linux-musl.tar.gz Each archive contains a single entry with the platform baked into the name (e.g., codex-x86_64-unknown-linux-musl), so you likely want to rename it to codex after extracting it. Using Codex with your ChatGPT plan Run codex and select Sign in with ChatGPT. We recommend signing into your ChatGPT account to use Codex as part of your Plus, Pro, Business, Edu, or Enterprise plan. Learn more about what's included in your ChatGPT plan. You can also use Codex with an API key, but this requires additional setup. Docs - Codex Documentation - Contributing - Installing & building - Open source fund This repository is licensed under the Apache-2.0 License.
Top issues
#19464Support 1M token context for GPT-5.5 in Codex132 comments · 2026-04-24#51601Windows app 26.1002.51308: sandbox setup fails with sharing violation when validating its own active runtime125 comments · 2026-10-07#20214Codex App frequently freezes/stutters on Windows 11 Pro despite sufficient system resources114 comments · 2026-04-29#36040Regression: iOS Remote only lists projects with recent chats110 comments · 2026-07-29#9203Please make "/undo" back98 comments · 2026-01-14#49458[Windows] dot-started local tasks lack Computer Use tools while ordinary local Codex sessions work98 comments · 2026-09-30#28969Add setting to disable the auto-resolve in 60 seconds for questions98 comments · 2026-06-18#48237unexpected status 401 Unauthorized issue97 comments · 2026-09-25
Discussions
#60297We built a BCC plugin which should save your tokens and unstuck goals in Codex0 comments · 2026-11-08#60282Worktree receipt: check required local files even when Git status is clean0 comments · 2026-11-08#60264Codex publishes its report as a web page and replies with the link (remote MCP)1 comments · 2026-11-08#60240Configurable permissions for a personal dot across Codex and Work0 comments · 2026-11-08#60239An OpenAI-native workspace independent of Windows0 comments · 2026-11-08#60238A secure way to identify a personal dot in external applications0 comments · 2026-11-08#60185agent-recap: local search across Codex and Claude Code transcripts1 comments · 2026-11-07#60116Pushary: answer Codex approvals from your phone, or send a git push to your team lead1 comments · 2026-11-07
Latest release
0.167.0 rust-v0.167.0 2026-11-06New Features - Open the agent command center with codex agents --no-daemon. The command center and session picker now mark unread results (58238, 58239, 58263, 58264). - Switch between connected backends from the terminal session picker and keep your drafts when switching (58280, 58457). - Preview local image attachments while composing on supported terminals, and open viewed local images from clickable transcript paths (58261, 58446). - Find API key and cloud provider options under “Sign in another way.” Enable gcp_setup_wizard to set up Google Cloud Vertex AI with Application Default Creden
相关报道 (11)
動區動趨開發工具 Postman 會自動幫 AI 代理裝外掛,不需開發者批准同意2026-11-04動區動趨AI 逆向工具「REA 」GitHub 十天衝上 17 萬星,真的什麼都能拆嗎?2026-10-13TechNews 科技新報GitHub 擁抱 Claude、Codex,編碼代理程式進駐平台2026-02-04华尔街见闻OpenAI收购Pierre,不仅要写代码,还要把整个GitHub给端了2026-11-05cnBeta.COMOpenAI收购神秘团队 奥特曼要在Codex里再造一个GitHub2026-11-05新浪财经刚刚,OpenAI收购Pierre,Codex要对Git下手?_手机新浪网2026-11-05投资界刚刚,OpenAI收购Pierre,Codex要对Git下手?2026-11-04智源社区OpenAI 将收购 Pierre Computer,计划把 Code Storage 整合进 Codex,瞄准微软 GitHub2026-11-04Pasquale PillitteriOpenAI 发布 Pando,用 Codex 在 10 周内构建的 Git 后端2026-11-04新浪财经克劳德代码、Codex、Gemini 命令行工具与GitHub Copilot被发现存在同一安全漏洞2026-09-18
News & coverage (21)
Hacker NewsChatGPT Desktop forwards your SSH agent to remote machines▲ 203 · 71 comments · 2026-11-09Hacker NewsTell HN: The Codex App is replaced by ChatGPT▲ 6 · 4 comments · 2026-07-13Hacker NewsA GPT-5.4 bug led to OpenAI banning goblins and raccoons▲ 6 · 1 comments · 2026-04-29Hacker NewsAsk HN: Is Codex login down for all workspace (non-personal) users?▲ 6 · 2 comments · 2026-01-15Hacker NewsAsk HN: GPT-5.3-Codex being silently routed to GPT-5.2?▲ 5 · 3 comments · 2026-02-12Hacker NewsShow HN: BYO AI free notetaking with optional screen reading for OpenClaw/hermes▲ 3 · 3 comments · 2026-07-14Hacker NewsAsk HN: Are Google Search AI hallucinations common?▲ 1 · 0 comments · 2025-12-31Hacker NewsCodex can read sensitive files outside the CWD without approval▲ 1 · 0 comments · 2025-11-25noteCodex Day 14 In-Depth: Edit Past Messages on Desktop! Differences from Steer, Queue, and Fork2026-11-07How-To Geek on MSNOpenAI is building a GitHub alternative into Codex, and it could change how developers work2026-11-05