For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to the page URL.
Primary navigation

Codex IDE extension commands

Reference for Codex IDE extension commands and keyboard shortcuts

Use these commands to control Codex from the VS Code Command Palette. You can also bind them to keyboard shortcuts.

Assign a key binding

To assign or change a key binding for a Codex command:

  1. Open the Command Palette (Cmd+Shift+P on macOS or Ctrl+Shift+P on Windows/Linux).
  2. Run Preferences: Open Keyboard Shortcuts.
  3. Search for Codex or the command ID (for example, chatgpt.newChat).
  4. Select the pencil icon, then enter the shortcut you want.

Extension commands

CommandDefault key bindingDescription
chatgpt.addToThread-Add selected text range as context for the current chat
chatgpt.addFileToThread-Add the entire file as context for the current chat
chatgpt.newChatmacOS: Cmd+N
Windows/Linux: Ctrl+N
Create a new chat
chatgpt.newCodexPanel-Create a new Codex panel
chatgpt.openCommandMenu-Open the Codex command menu
chatgpt.openSidebar-Open the Codex sidebar panel