codex login인증 다시 연결
ChatGPT OAuth, device auth, API key, stdin access token 방식으로 Codex 인증을 복구합니다.
🔒 브라우저 내부 처리
OpenAI Codex 매뉴얼 기준으로, CLI 명령, slash commands, AGENTS.md, Skills, MCP, Automations, 앱 설정 포인트를 다시 정리했습니다.
A compact Codex reference rebuilt from the OpenAI Codex manual, focused on CLI commands, slash commands, AGENTS.md, Skills, MCP, Automations, and app settings.
Checked
Codex는 CLI, 데스크톱 앱, IDE 확장, 클라우드 작업 흐름이 함께 움직입니다. 이 페이지는 2026년 6월 8일 기준 OpenAI Codex 매뉴얼에 직접 나온 항목 위주로 정리했습니다.
Last checked · 2026-06-08Checked
Codex now spans the CLI, desktop app, IDE extension, and cloud workflows. This page stays anchored to features OpenAI documents explicitly as of June 8, 2026.
Last checked · 2026-06-08CLI First
codex loginChatGPT OAuth, device auth, API key, stdin access token 방식으로 Codex 인증을 복구합니다.
codex update현재 설치 버전이 self-update를 지원할 때 Codex CLI 업데이트를 확인하고 적용합니다.
codex doctor설치, 인증, config, Git, 터미널, app-server, thread inventory 문제를 지원 리포트 형태로 점검합니다.
codex exec스크립트나 자동화에서 Codex를 한 번 실행하고 stdout 또는 JSONL로 결과를 받을 때 씁니다.
codex --model설정 파일의 기본 모델 대신 해당 세션에서만 모델을 바꿔 시작합니다.
--sandbox / --ask-for-approval로컬 작업은 보통 workspace-write와 on-request 조합이 낮은 마찰과 안전성의 균형점입니다.
/permissionsRead Only, Auto 같은 권한 프리셋을 세션 중 바꿔 파일 수정과 명령 실행의 자율성을 조절합니다.
/model / /status활성 모델, reasoning effort, 승인 정책, writable roots, 남은 컨텍스트를 빠르게 확인합니다.
/plan / /goal구현 전에 계획 모드로 범위를 잡고, 장기 작업은 목표를 붙여 진행 상태를 유지합니다.
/diff / /review현재 Git diff를 보고, 작업 트리에 대한 리뷰 관점의 재검토를 요청합니다.
CLI First
codex loginRecover Codex auth through ChatGPT OAuth, device auth, API key, or an access token piped over stdin.
codex updateCheck for and apply a Codex CLI update when the installed release supports self-update.
codex doctorGenerate a support report for installation, auth, config, Git, terminal, app-server, and thread inventory issues.
codex execUse Codex from scripts or automation and stream output to stdout or JSONL.
codex --modelOverride the configured default model for a single invocation.
--sandbox / --ask-for-approvalFor local work, workspace-write plus on-request is usually the practical balance.
/permissionsSwitch between presets such as Read Only and Auto while the session is running.
/model / /statusConfirm the active model, effort, approval policy, writable roots, and remaining context.
/plan / /goalUse plan mode before implementation and goals for longer-running tracked work.
/diff / /reviewInspect the working tree diff and ask Codex for a review pass on local changes.
App Workflow
반복되는 리뷰 기준, 빌드 명령, 저장소 규칙은 AGENTS.md에 둡니다. 가까운 하위 디렉터리의 지침이 더 구체적인 규칙으로 작동합니다.
반복 절차는 .agents/skills나 $HOME/.agents/skills에 스킬로 둡니다. Codex는 설명을 보고 필요할 때 전체 SKILL.md를 읽습니다.
GitHub, Figma, 브라우저, 내부 문서처럼 외부 시스템이 필요하면 codex mcp나 config.toml의 MCP 설정으로 연결합니다.
반복 점검은 Automations로 돌리고, Git 저장소에서는 전용 worktree를 선택해 미완성 로컬 작업과 분리하는 편이 안전합니다.
Codex 앱 스레드는 Local, Worktree, Cloud 모드로 나뉩니다. 같은 저장소의 독립 작업은 Worktree 모드가 가장 다루기 쉽습니다.
웹앱 검증은 in-app browser와 Browser plugin, 데스크톱 앱 검증은 Computer Use 설정으로 분리해 생각하면 됩니다.
App Workflow
Keep recurring review criteria, build commands, and repository rules in AGENTS.md. Closer nested files provide more specific guidance.
Put repeatable procedures in .agents/skills or $HOME/.agents/skills. Codex reads the full SKILL.md only when needed.
Use codex mcp or config.toml MCP settings when Codex needs GitHub, Figma, browsers, internal docs, or other external systems.
Run recurring checks with Automations, and choose dedicated worktrees in Git repositories to isolate background changes from local work.
Codex app threads run in Local, Worktree, or Cloud mode. Worktree mode is usually the cleanest choice for independent work in one repo.
Think of the in-app browser and Browser plugin for web app checks, and Computer Use for desktop-app workflows.
Use Cases
codex login, codex doctor, codex update, /status로 인증, 설치, 버전, 세션 상태를 먼저 확인하세요.
규칙은 AGENTS.md, 반복 절차는 Skills, 외부 시스템은 MCP, 반복 실행은 Automations로 나눠 설계하면 유지보수가 쉽습니다.
/diff로 변경을 확인하고 /review로 작업 트리 리뷰를 받은 뒤, 필요한 테스트를 직접 실행하게 하세요.
Use Cases
Start with codex login, codex doctor, codex update, and /status to recover auth, install, version, and session state.
Use AGENTS.md for rules, Skills for repeatable procedures, MCP for external systems, and Automations for recurring runs.
Inspect changes with /diff, request a working-tree review with /review, then ask Codex to run the relevant tests.
Official Sources
CLI 명령, 전역 플래그, sandbox, approval, codex exec, codex doctor, codex mcp를 확인합니다.
/permissions, /model, /plan, /goal, /review, /status를 확인합니다.
스킬 구조, 저장 위치, progressive disclosure, plugins와의 역할 차이를 확인합니다.
MCP 서버 연결, stdio/HTTP 설정, OAuth, tool approval, plugin-provided MCP 설정을 확인합니다.
standalone automation, thread automation, worktree 실행, sandbox 권한 경계를 확인합니다.
Local, Worktree, Cloud 모드, 내장 Git 도구, browser use, computer use, app 기능을 확인합니다.
Official Sources
For CLI commands, global flags, sandboxing, approvals, codex exec, codex doctor, and codex mcp.
For /permissions, /model, /plan, /goal, /review, and /status.
For skill structure, locations, progressive disclosure, and how skills relate to plugins.
For MCP server setup, stdio/HTTP transports, OAuth, tool approvals, and plugin-provided MCP settings.
For standalone automations, thread automations, worktree execution, and sandbox boundaries.
For Local, Worktree, and Cloud modes, built-in Git tools, browser use, computer use, and app behavior.