AI 程式設計教程中文版
官方教程中文版產品入口

調整 App 設定

Codex App 的 settings panel 用來調整 App 行為、檔案開啟方式,以及外部工具連線方式。

Codex App 的 settings panel 用來調整 App 行為、檔案開啟方式,以及外部工具連線方式。

開啟方式:

  • 在 App menu 中開啟 Settings
  • 使用快捷鍵 Cmd+,

General

General 設定用於控制檔案在哪裡開啟,以及 thread 中顯示多少 command output。

你也可以在這裡啟用兩個常用行為:

  • multiline prompts 必須按 Cmd+Enter 才傳送。
  • thread 正在執行時,阻止電腦 sleep。

通知

Notifications 設定用於選擇 turn completion notifications 何時出現,以及 App 是否要提示 notification permissions。

Agent configuration

Codex App 中的 agents 會繼承和 IDE、CLI extension 相同的 configuration。

常用設定可以在 App 內直接調整;高階選項仍然編輯 config.toml

相關官方文件:

Appearance

Settings 中,你可以調整 Codex App 的外觀:

  • base theme
  • accent color
  • background color
  • foreground color
  • UI font
  • code font

你也可以把 custom theme 分享給朋友。

官方截圖:

Codex pets

Codex pets 是 App 中可選的 animated companions。

選擇方式:

  1. 開啟 Settings
  2. 進入 Appearance
  3. 選擇 Pets
  4. 選擇 built-in pet,或從本地 Codex home refresh custom pets。

你也可以用這些方式控制 floating overlay:

  • 在 composer 中輸入 /pet
  • Settings > Appearance 中使用 Wake PetTuck Away Pet
  • Cmd+KCtrl+K 開啟 command palette,執行同樣的 commands。

overlay 會讓 active Codex work 在你使用其他 apps 時仍保持可見。它會顯示 active thread,反映 Codex 當前是 running、waiting for input,還是 ready for review,並配合一段短 progress prompt,讓你不用重新開啟 thread 也能看到發生了什麼。

要建立自己的 pet,先安裝 hatch-pet skill:

$skill-installer hatch-pet

然後從 command menu reload skills:

  1. Cmd+KCtrl+K
  2. 選擇 Force Reload Skills
  3. 讓 skill 建立 pet:
$hatch-pet create a new pet inspired by my recent projects

Git

Git settings 可以統一 branch naming,並選擇 Codex 是否使用 force pushes。

你也可以設定 Codex 生成 commit messages 和 pull request descriptions 時使用的 prompts。

Integrations & MCP

透過 MCP,也就是 Model Context Protocol,Codex 可以連線 external tools。

在 App 中你可以:

  • 啟用 recommended servers。
  • 新增自己的 MCP server。
  • 在 server 需要 OAuth 時,讓 App 啟動 auth flow。

這些 settings 同樣適用於 Codex CLI 和 IDE extension,因為 MCP configuration 存在 config.toml 中。

官方 MCP 文件:

https://developers.openai.com/codex/mcp

瀏覽器使用

Browser use settings 用來安裝或啟用 bundled Browser plugin,並管理 allowed websites 和 blocked websites。

預設情況下,Codex 在使用一個 website 前會先詢問你,除非你已經 allow 這個網站。把網站從 blocked list 中移除後,Codex 下次會重新詢問是否可以使用它。

browser preview、comment 和 browser use workflows 見:

https://developers.openai.com/codex/app/browser

Computer Use

在 macOS 上,Computer Use settings 用來檢查 desktop-app access 和相關 preferences。

如果你要撤銷 system-level access,需要到 macOS Privacy & Security settings 中修改:

  • Screen Recording permissions
  • Accessibility permissions

該功能 launch 時不面向 EEA、United Kingdom 或 Switzerland 提供。

Personalization

你可以把預設 personality 設為:

  • Friendly
  • Pragmatic
  • None

選擇 None 會停用 personality instructions。這個設定之後可以隨時改。

你還可以新增自己的 custom instructions。編輯 custom instructions 會更新 AGENTS.md 中的 personal instructions

上下文-aware suggestions

Context-aware suggestions 會在你啟動或回到 Codex 時,提示可能需要繼續的 follow-ups 和 tasks。

記憶

Memories 可用時,你可以啟用它,讓 Codex 把過去 threads 中有用的 context 帶到未來工作裡。

setup、storage 和 per-thread controls 見:

https://developers.openai.com/codex/memories

Archived threads

Archived threads section 會列出 archived chats,並顯示 dates 和 project context。需要恢復時使用 Unarchive

本頁目錄