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

权限

选择 ChatGPT 可在您的计算机上执行哪些操作,以及何时会请求审批

权限模式

权限决定桌面 App 中的 ChatGPT 与 CLI 或 IDE 中的 Codex 如何处理本地操作,例如编辑文件、运行命令和使用互联网。您选择的模式会划定边界, 规定 ChatGPT 可以自行执行哪些操作,以及哪些操作需要审查。

对于大多数任务,请先选择请求审批。在此模式下,ChatGPT 可在 当前工作空间内执行操作;要越过该边界时,它会先暂停。

选择下方的不同模式,了解每种模式的工作方式。

Ask Codex anything.

Ask for approval

Codex can read and edit files in the current workspace and run routine local commands. It asks before using the internet or going beyond the workspace boundary.

Sandbox
workspace-write
Approvals policy
on-request
Reviewer
user

启用模式

首次使用 ChatGPT 桌面 App 时,您需要在应用设置中启用这些模式。

请求审批始终可用。要将替我审批(在设置中称为 自动审查)或完全访问权限添加到权限菜单,请在 ChatGPT 桌面 App 中打开 设置 > 通用,然后在 权限下启用相应模式。启用后,该模式会显示在菜单中,但不会 自动选中该模式,也不会更改现有聊天。

Permissions

Default permissions

By default, ChatGPT can read and edit files in its workspace. It can ask for additional access when needed

Auto-review

ChatGPT can read and edit files in its workspace. ChatGPT automatically reviews requests for additional access. Auto-review can make mistakes. Learn more about elevated risks.

Full access

When ChatGPT runs with full access, it can edit any file on your computer and run commands with network, without your approval. This significantly increases the risk of data loss, leaks, or unexpected behavior. Learn more about elevated risks.

可用模式可能会因您的本地配置和 您所在组织的要求而异。不允许使用的模式会显示为禁用状态。

权限的工作原理

以下两项控制相互配合:

  • 沙盒规定 ChatGPT 可以访问哪些文件和网络资源。
  • 审批决定 ChatGPT 何时在执行操作前暂停,或何时将 请求交由自动审查。

更改请求的审查方不会扩大沙盒范围。例如, 替我审批模式的工作空间边界与请求审批相同; 该模式会将需要越过该边界的请求交由自动审查。

请在 ChatGPT 桌面 App 或 IDE 扩展中使用编辑器下方的权限控件。

在 CLI 中,输入 /permissions。有关技术详情,请参阅 沙盒自动审查权限配置文件