📚AI 编程官方教程中文版
📘 OpenAI Codex📚 官方教程中文版产品入口

使用 App 命令

这篇整理 Codex App 中常用 commands、keyboard shortcuts、slash commands 和 deeplinks。

这篇整理 Codex App 中常用 commands、keyboard shortcuts、slash commands 和 deeplinks。

Keyboard shortcuts

分类ActionmacOS shortcut
GeneralCommand menuCmd+Shift+PCmd+K
GeneralSettingsCmd+,
GeneralOpen folderCmd+O
GeneralNavigate backCmd+[
GeneralNavigate forwardCmd+]
GeneralIncrease font sizeCmd++Cmd+=
GeneralDecrease font sizeCmd+-Cmd+_
GeneralToggle sidebarCmd+B
GeneralToggle diff panelCmd+Option+B
GeneralToggle terminalCmd+J
GeneralClear the terminalCtrl+L
ThreadNew threadCmd+NCmd+Shift+O
ThreadFind in threadCmd+F
ThreadPrevious threadCmd+Shift+[
ThreadNext threadCmd+Shift+]
ThreadDictationCtrl+M

斜杠命令

Slash commands 让你不离开 thread composer,就能控制 Codex。可用 commands 会随 environment 和 access 变化。

Use a slash command

使用方式:

  1. 在 thread composer 中输入 /
  2. 从列表中选择 command,或者继续输入来过滤,例如 /status

你也可以在 thread composer 中输入 $ 来显式调用 skills。详见 Skills

Enabled skills 也会出现在 slash command list 中。

Available slash commands

Slash commandDescription
/feedback打开 feedback dialog,用来提交 feedback,并可选包含 logs。
/mcp打开 MCP status,查看 connected servers。
/plan-mode为 multi-step planning 切换 plan mode。
/review启动 code review mode,用来 review uncommitted changes,或和 base branch 对比。
/status显示 thread ID、context usage 和 rate limits。

Codex App 注册了 codex:// URL scheme,因此链接可以直接打开 App 的指定区域。

DeeplinkOpensSupported query parameters
codex://settingsSettingsNone
codex://skillsSkillsNone
codex://automationsInbox in automation create modeNone
codex://threads/<thread-id>A local thread。<thread-id> 必须是 UUID。None
codex://newA new thread可选:promptoriginUrlpath

new-thread deeplinks 的参数规则:

参数行为
prompt设置 initial composer text。
path必须是 local directory 的 absolute path;有效时,这个 directory 会成为 new thread 的 active workspace。
originUrl尝试通过 Git remote URL 匹配当前 workspace roots。pathoriginUrl 同时存在时,Codex 先解析 path

See also

On this page