Tip · Last checked
The VS Code workflow was checked on 2026-06-29. Extension availability and UI labels can change; use the Codex IDE documentation and Codex CLI documentation for current guidance.
Tip
This is the official OpenAI Codex extension, so you can use Codex conversations and code assistance directly in the editor.
Use Codex in VS Code
Install the extension
Open Extensions in VS Code, search for Codex, and choose the official publisher. Verify the publisher before installing a similarly named extension.
Open the task panel
Open a project file and select the Codex or ChatGPT icon to open the side panel. Sign in with the account that has access to the workspace.
Use file context
Type @ and select a file when the task has a clear scope. File context helps Codex inspect the relevant code without broad, unnecessary searches. Ask for a read-only explanation before requesting an edit.
Review the patch
Use the editor diff, tests, and diagnostics to review each change. The desktop app is better for multi-task orchestration, Skills, and Automations; the extension is convenient for an editor-centered loop. They can be used together.
Next step
Continue with Codex Cloud.
Reference screenshots

![]()


Source and internal links
Reference tables
| Codex 桌面 App | VS Code 插件 | |
|---|---|---|
| 适合场景 | 多任务管理、Skills、Automations | 边写代码边调用,贴近编辑器工作流 |
| 文件结构可见性 | 需要切换界面 | 直接在编辑器里查看 |
| 修改前后对比 | 独立查看 | 可结合编辑器 diff 查看 |
| 推荐用户 | 需要并行任务或插件协作 | 日常编码开发者 |
