01 / Intro
Codex とは
Codex is OpenAI's coding agent. It can run locally through Codex CLI, work in an IDE, or run as Codex Web in ChatGPT. Use it for reading code, planning changes, fixing bugs, writing tests, and preparing PR notes.
02 / Setup
インストール
Mac / Linux
curl -fsSL https://chatgpt.com/codex/install.sh | shnpm
npm install -g @openai/codexHomebrew
brew install --cask codexRun codex, then choose Sign in with ChatGPT. API-key auth is also available for advanced users.
03 / Workflow
808 推奨ワークフロー
- Ask Codex to read first, without editing.
- Ask for a plan listing files, risks, and verification steps.
- Let it make one small change at a time.
- Run tests, lint, and build before calling the task done.
- Ask for a delivery summary with changes, checks, and remaining risks.
04 / Guardrails
安全と権限
Do not paste secrets
Never paste API keys, passwords, payment data, or customer private data. Share variable names only.
公式ソース
OpenAI Codex GitHub README と OpenAI Developers docs に基づく内容です。使用前に公式の最新バージョンを確認してください。