12 12
13## 设置索引13## 设置索引
14 14
15下面的每个键都链接到其对应条目。作用域列出了该键可以写入的[文件](https://code.claude.com/docs/zh-CN/settings.md#settings-files-and-who-they-affect):`用户` 指 `~/.claude/settings.json`,`项目` 指 `.claude/settings.json`,`本地` 指 `.claude/settings.local.json`,`托管` 指[您的组织部署的内容](https://code.claude.com/docs/zh-CN/managed-settings.md)。`任意文件` 表示以上全部四种,`全局配置` 表示 [`~/.claude.json`](#global-config-settings)。15下方每个键都链接到其对应条目。Scope 列出了该键可以写入的[文件](https://code.claude.com/docs/zh-CN/settings.md#settings-files-and-who-they-affect):`User` 是 `~/.claude/settings.json`,`Project` 是 `.claude/settings.json`,`Local` 是 `.claude/settings.local.json`,`Managed` 是[您的组织部署的内容](https://code.claude.com/docs/zh-CN/managed-settings.md)。`Any file` 表示以上全部四种,`Global config` 表示 [`~/.claude.json`](#global-config-settings)。
16 16
17| Key | Description | Topic | Scope |17| Key | Description | Topic | Scope |
18| :- | :- | :- | :- |18| :- | :- | :- | :- |
19| [`advisorModel`](#advisormodel) | 选择 Claude 调用 [advisor 工具](https://code.claude.com/docs/zh-CN/advisor.md)时由哪个模型回答 | 模型与回复 | 任意文件 |19| [`advisorModel`](#advisormodel) | 选择 Claude 询问 [advisor 工具](https://code.claude.com/docs/zh-CN/advisor.md)时由哪个模型回答 | 模型与回复 | 任意文件 |
20| [`agent`](#agent) | 让每个会话都以指定的[子代理](https://code.claude.com/docs/zh-CN/sub-agents.md)身份启动,使用其提示词、工具和模型 | Agent、会话与 worktree | 任意文件 |20| [`agent`](#agent) | 以指定名称的[子代理](https://code.claude.com/docs/zh-CN/sub-agents.md)启动每个会话,并使用其提示词、工具和模型 | Agent、会话与 worktree | 任意文件 |
21| [`agentPushNotifEnabled`](#agentpushnotifenabled) | 允许 Claude 在其认为需要时[向您的手机发送推送通知](https://code.claude.com/docs/zh-CN/remote-control.md#mobile-push-notifications) | 远程、桌面与通知 | 任意文件 |21| [`agentPushNotifEnabled`](#agentpushnotifenabled) | 允许 Claude 在其认为需要时向[您的手机发送推送通知](https://code.claude.com/docs/zh-CN/remote-control.md#mobile-push-notifications) | 远程、桌面与通知 | 任意文件 |
22| [`allowAllClaudeAiMcps`](#allowallclaudeaimcps) | 在已部署 [`managed-mcp.json`](https://code.claude.com/docs/zh-CN/managed-mcp#exclusive-control-with-managed-mcp-json) 的同时,加载 Claude Code 自行获取的 [claude.ai 连接器](https://code.claude.com/docs/zh-CN/mcp.md) | MCP | 托管 |22| [`allowAllClaudeAiMcps`](#allowallclaudeaimcps) | 在已部署 [`managed-mcp.json`](https://code.claude.com/docs/zh-CN/managed-mcp#exclusive-control-with-managed-mcp-json) 的同时,加载 Claude Code 自行获取的 [claude.ai 连接器](https://code.claude.com/docs/zh-CN/mcp.md) | MCP | 托管 |
23| [`allowClaudeInChromeWithManagedMcp`](#allowclaudeinchromewithmanagedmcp) | 允许内置的 [Claude in Chrome](https://code.claude.com/docs/zh-CN/chrome.md) 服务器与已部署的 [`managed-mcp.json`](https://code.claude.com/docs/zh-CN/managed-mcp#exclusive-control-with-managed-mcp-json) 一起运行 | MCP | 托管 |23| [`allowClaudeInChromeWithManagedMcp`](#allowclaudeinchromewithmanagedmcp) | 允许内置的 [Claude in Chrome](https://code.claude.com/docs/zh-CN/chrome.md) 服务器与已部署的 [`managed-mcp.json`](https://code.claude.com/docs/zh-CN/managed-mcp#exclusive-control-with-managed-mcp-json) 一同运行 | MCP | 托管 |
24| [`allowedChannelPlugins`](#allowedchannelplugins) | 替换可推送消息的[频道插件](https://code.claude.com/docs/zh-CN/channels.md#restrict-which-channel-plugins-can-run)的默认允许列表 | 插件与 skill | 托管 |24| [`allowedChannelPlugins`](#allowedchannelplugins) | 替换可推送消息的[频道插件](https://code.claude.com/docs/zh-CN/channels.md#restrict-which-channel-plugins-can-run)的默认允许列表 | 插件与 skill | 托管 |
25| [`allowedHttpHookUrls`](#allowedhttphookurls) | 限制 [HTTP hook](https://code.claude.com/docs/zh-CN/hooks.md) 可以访问的 URL | hook 与自动化 | 任意文件 |25| [`allowedHttpHookUrls`](#allowedhttphookurls) | 限制 [HTTP hook](https://code.claude.com/docs/zh-CN/hooks.md) 可以访问的 URL | hook 与自动化 | 任意文件 |
26| [`allowedMcpServers`](#allowedmcpservers) | 通过允许列表限定用户可以添加的 [MCP 服务器](https://code.claude.com/docs/zh-CN/mcp.md) | MCP | 任意文件 |26| [`allowedMcpServers`](#allowedmcpservers) | 设置用户可添加的 [MCP 服务器](https://code.claude.com/docs/zh-CN/mcp.md)的允许列表 | MCP | 任意文件 |
27| [`allowedProviders`](#allowedproviders) | 限制一台机器可以使用的 [API 提供商](https://code.claude.com/docs/zh-CN/third-party-integrations.md) | 身份验证与提供商 | 托管 |27| [`allowedProviders`](#allowedproviders) | 限制一台机器可以使用的 [API 提供商](https://code.claude.com/docs/zh-CN/third-party-integrations.md) | 身份验证与提供商 | 托管 |
28| [`allowManagedHooksOnly`](#allowmanagedhooksonly) | 仅运行您的组织部署的 [hook](https://code.claude.com/docs/zh-CN/hooks.md) | hook 与自动化 | 托管 |28| [`allowManagedHooksOnly`](#allowmanagedhooksonly) | 仅运行您的组织部署的 [hook](https://code.claude.com/docs/zh-CN/hooks.md) | hook 与自动化 | 托管 |
29| [`allowManagedMcpServersOnly`](#allowmanagedmcpserversonly) | 使托管的 [MCP](https://code.claude.com/docs/zh-CN/mcp.md) 允许列表成为唯一生效的允许列表 | MCP | 托管 |29| [`allowManagedMcpServersOnly`](#allowmanagedmcpserversonly) | 使托管的 [MCP](https://code.claude.com/docs/zh-CN/mcp.md) 允许列表成为唯一生效的允许列表 | MCP | 托管 |
30| [`allowManagedPermissionRulesOnly`](#allowmanagedpermissionrulesonly) | 使[托管设置](https://code.claude.com/docs/zh-CN/managed-settings.md)成为[权限规则](https://code.claude.com/docs/zh-CN/permissions.md#managed-settings)的唯一设置来源 | 权限设置 | 托管 |30| [`allowManagedPermissionRulesOnly`](#allowmanagedpermissionrulesonly) | 使[托管设置](https://code.claude.com/docs/zh-CN/managed-settings.md)成为[权限规则](https://code.claude.com/docs/zh-CN/permissions.md#managed-settings)的唯一设置来源 | 权限设置 | 托管 |
31| [`alwaysThinkingEnabled`](#alwaysthinkingenabled) | 为所有会话关闭[扩展思考](https://code.claude.com/docs/zh-CN/model-config.md#extended-thinking) | 模型与回复 | 任意文件 |31| [`alwaysThinkingEnabled`](#alwaysthinkingenabled) | 为每个会话关闭[扩展思考](https://code.claude.com/docs/zh-CN/model-config.md#extended-thinking) | 模型与回复 | 任意文件 |
32| [`apiKeyHelper`](#apikeyhelper) | 使用您自己的命令生成 [API 凭据](https://code.claude.com/docs/zh-CN/authentication.md#credential-management) | 身份验证与提供商 | 任意文件 |32| [`apiKeyHelper`](#apikeyhelper) | 使用您自己的命令生成 [API 凭据](https://code.claude.com/docs/zh-CN/authentication.md#credential-management) | 身份验证与提供商 | 任意文件 |
33| [`askUserQuestionTimeout`](#askuserquestiontimeout) | 让未回答的问题在空闲一段时间后[自动继续](https://code.claude.com/docs/zh-CN/tools-reference.md#question-auto-continue-timeout) | 界面与终端 | 用户或托管 |33| [`askUserQuestionTimeout`](#askuserquestiontimeout) | 让未被回答的问题在空闲一段时间后[自动继续](https://code.claude.com/docs/zh-CN/tools-reference.md#question-auto-continue-timeout) | 界面与终端 | 用户或托管 |
34| [`appendPlugins`](#appendplugins) | 在用户安装的每个 mod 之后运行您组织的 [mod](https://code.claude.com/docs/zh-CN/plugins/mods/admin.md) | 插件与 skill | 用户或托管 |34| [`appendPlugins`](#appendplugins) | 在用户安装的每个 mod 之后运行您组织的 [mod](https://code.claude.com/docs/zh-CN/plugins/mods/admin.md) | 插件与 skill | 用户或托管 |
35| [`attribution`](#attribution) | 自定义 Claude Code 添加到提交和 Pull Request 中的署名 | Git 与署名 | 任意文件 |35| [`attribution`](#attribution) | 自定义 Claude Code 添加到提交和 Pull Request 中的署名 | Git 与署名 | 任意文件 |
36| [`attribution.commit`](#attribution-commit) | 更改或隐藏 Claude Code 添加到提交中的尾注 | Git 与署名 | 任意文件 |36| [`attribution.commit`](#attribution-commit) | 更改或隐藏 Claude Code 添加到提交中的 trailer | Git 与署名 | 任意文件 |
37| [`attribution.pr`](#attribution-pr) | 更改或隐藏 Pull Request 描述中的署名行 | Git 与署名 | 任意文件 |37| [`attribution.pr`](#attribution-pr) | 更改或隐藏 Pull Request 描述中的署名行 | Git 与署名 | 任意文件 |
38| [`attribution.sessionUrl`](#attribution-sessionurl) | 在[云端](https://code.claude.com/docs/zh-CN/claude-code-on-the-web.md)和 [Remote Control](https://code.claude.com/docs/zh-CN/remote-control.md) 提交中省略 claude.ai 会话链接 | Git 与署名 | 任意文件 |38| [`attribution.sessionUrl`](#attribution-sessionurl) | 从[云端](https://code.claude.com/docs/zh-CN/claude-code-on-the-web.md)和 [Remote Control](https://code.claude.com/docs/zh-CN/remote-control.md) 提交中省略 claude.ai 会话链接 | Git 与署名 | 任意文件 |
39| [`autoCompactEnabled`](#autocompactenabled) | 关闭或开启[自动压缩](https://code.claude.com/docs/zh-CN/context-window.md) | 记忆与上下文 | 任意文件 |39| [`autoCompactEnabled`](#autocompactenabled) | 关闭或开启[自动压缩](https://code.claude.com/docs/zh-CN/context-window.md) | 记忆与上下文 | 任意文件 |
40| [`autoCompactWindow`](#autocompactwindow) | 设置上下文达到多满时 Claude Code 执行[压缩](https://code.claude.com/docs/zh-CN/context-window.md) | 记忆与上下文 | 任意文件 |40| [`autoCompactWindow`](#autocompactwindow) | 设置上下文达到多满时 Claude Code 进行[压缩](https://code.claude.com/docs/zh-CN/context-window.md) | 记忆与上下文 | 任意文件 |
41| [`autoConnectIde`](#autoconnectide) | 从外部终端自动连接到正在运行的 [VS Code](https://code.claude.com/docs/zh-CN/vs-code.md) 或 [JetBrains](https://code.claude.com/docs/zh-CN/jetbrains.md#from-external-terminals) IDE | 全局配置设置 | 全局配置 |41| [`autoConnectIde`](#autoconnectide) | 从外部终端自动连接到正在运行的 [VS Code](https://code.claude.com/docs/zh-CN/vs-code.md) 或 [JetBrains](https://code.claude.com/docs/zh-CN/jetbrains.md#from-external-terminals) IDE | 全局配置设置 | 全局配置 |
42| [`autoContinueAtUsageLimit`](#autocontinueatusagelimit) | 在 claude.ai 用量限制重置后,在已打开的会话中等待并[自动继续任务](https://code.claude.com/docs/zh-CN/interactive-mode.md#wait-for-a-usage-limit-to-reset) | 界面与终端 | 用户或托管 |42| [`autoContinueAtUsageLimit`](#autocontinueatusagelimit) | 在 claude.ai 用量限制重置后,于打开的会话中等待并[自动继续任务](https://code.claude.com/docs/zh-CN/interactive-mode.md#wait-for-a-usage-limit-to-reset) | 界面与终端 | 用户或托管 |
43| [`autoInstallIdeExtension`](#autoinstallideextension) | 允许 `/ide` 从外部终端安装 [IDE 扩展](https://code.claude.com/docs/zh-CN/vs-code.md#install-the-extension) | 全局配置设置 | 全局配置 |43| [`autoInstallIdeExtension`](#autoinstallideextension) | 允许 `/ide` 从外部终端安装 [IDE 扩展](https://code.claude.com/docs/zh-CN/vs-code.md#install-the-extension) | 全局配置设置 | 全局配置 |
44| [`autoMemoryDirectory`](#automemorydirectory) | 将[自动记忆](https://code.claude.com/docs/zh-CN/memory.md#auto-memory)存储在您选择的目录中 | 记忆与上下文 | 任意文件 |44| [`autoMemoryDirectory`](#automemorydirectory) | 将[自动记忆](https://code.claude.com/docs/zh-CN/memory.md#auto-memory)存储在您选择的目录中 | 记忆与上下文 | 任意文件 |
45| [`autoMemoryEnabled`](#automemoryenabled) | 关闭或开启[自动记忆](https://code.claude.com/docs/zh-CN/memory.md#auto-memory) | 记忆与上下文 | 任意文件 |45| [`autoMemoryEnabled`](#automemoryenabled) | 关闭或开启[自动记忆](https://code.claude.com/docs/zh-CN/memory.md#auto-memory) | 记忆与上下文 | 任意文件 |
46| [`autoMode`](#automode) | 为[自动模式](https://code.claude.com/docs/zh-CN/permission-modes.md#eliminate-prompts-with-auto-mode)分类器添加您自己的允许和拒绝规则 | 权限设置 | 用户或托管 |46| [`autoMode`](#automode) | 向[自动模式](https://code.claude.com/docs/zh-CN/permission-modes.md#eliminate-prompts-with-auto-mode)分类器添加您自己的允许和拒绝规则 | 权限设置 | 用户或托管 |
47| [`autoMode.classifyAllShell`](#automode-classifyallshell) | 将每条 shell 命令都交给[自动模式分类器](https://code.claude.com/docs/zh-CN/permission-modes.md#what-the-classifier-blocks-by-default)审查,即使是匹配了窄范围允许规则的命令 | 权限设置 | 用户或托管 |47| [`autoMode.classifyAllShell`](#automode-classifyallshell) | 将每条 shell 命令都交给[自动模式分类器](https://code.claude.com/docs/zh-CN/permission-modes.md#what-the-classifier-blocks-by-default)处理,即使是被窄范围允许规则匹配的命令 | 权限设置 | 用户或托管 |
48| [`autoScrollEnabled`](#autoscrollenabled) | 在全屏渲染中[跟随新输出](https://code.claude.com/docs/zh-CN/fullscreen.md#auto-follow)滚动到底部 | 界面与终端 | 任意文件 |48| [`autoScrollEnabled`](#autoscrollenabled) | 在全屏渲染中[跟随新输出](https://code.claude.com/docs/zh-CN/fullscreen.md#auto-follow)滚动到底部 | 界面与终端 | 任意文件 |
49| [`autoUpdatesChannel`](#autoupdateschannel) | 跟随 stable [发布渠道](https://code.claude.com/docs/zh-CN/setup.md#configure-release-channel)而不是 latest | 更新与版本 | 任意文件 |49| [`autoUpdatesChannel`](#autoupdateschannel) | 跟随 stable [发布渠道](https://code.claude.com/docs/zh-CN/setup.md#configure-release-channel)而非 latest | 更新与版本 | 任意文件 |
50| [`availableModels`](#availablemodels) | [限制用户可以选择的模型](https://code.claude.com/docs/zh-CN/model-config.md#restrict-model-selection) | 模型与回复 | 任意文件 |50| [`availableModels`](#availablemodels) | [限制用户可以选择的模型](https://code.claude.com/docs/zh-CN/model-config.md#restrict-model-selection) | 模型与回复 | 任意文件 |
51| [`availableModelsMatch`](#availablemodelsmatch) | 使 `availableModels` 中的每个模型 ID 条目[仅允许其指定的版本](https://code.claude.com/docs/zh-CN/model-config.md#block-specific-models-or-versions) | 模型与回复 | 托管 |51| [`availableModelsMatch`](#availablemodelsmatch) | 使每个 `availableModels` 模型 ID 条目[仅允许其指定的版本](https://code.claude.com/docs/zh-CN/model-config.md#block-specific-models-or-versions) | 模型与回复 | 托管 |
52| [`awaySummaryEnabled`](#awaysummaryenabled) | 关闭您返回终端时显示的[会话回顾](https://code.claude.com/docs/zh-CN/interactive-mode.md#session-recap) | 远程、桌面与通知 | 任意文件 |52| [`awaySummaryEnabled`](#awaysummaryenabled) | 关闭您返回终端时显示的[会话回顾](https://code.claude.com/docs/zh-CN/interactive-mode.md#session-recap) | 远程、桌面与通知 | 任意文件 |
53| [`awsAuthRefresh`](#awsauthrefresh) | 使用您自己的命令刷新 `.aws` 中已过期的 [Bedrock 凭据](https://code.claude.com/docs/zh-CN/amazon-bedrock.md#advanced-credential-configuration) | 身份验证与提供商 | 任意文件 |53| [`awsAuthRefresh`](#awsauthrefresh) | 使用您自己的命令刷新 `.aws` 中已过期的 [Bedrock 凭据](https://code.claude.com/docs/zh-CN/amazon-bedrock.md#advanced-credential-configuration) | 身份验证与提供商 | 任意文件 |
54| [`awsCredentialExport`](#awscredentialexport) | 通过您自己的命令以 JSON 形式提供 [Bedrock 凭据](https://code.claude.com/docs/zh-CN/amazon-bedrock.md#advanced-credential-configuration) | 身份验证与提供商 | 任意文件 |54| [`awsCredentialExport`](#awscredentialexport) | 通过您自己的命令以 JSON 形式提供 [Bedrock 凭据](https://code.claude.com/docs/zh-CN/amazon-bedrock.md#advanced-credential-configuration) | 身份验证与提供商 | 任意文件 |
55| [`axScreenReader`](#axscreenreader) | 渲染[适合屏幕阅读器的输出](https://code.claude.com/docs/zh-CN/accessibility.md) | 界面与终端 | 用户或托管 |55| [`axScreenReader`](#axscreenreader) | 渲染[适合屏幕阅读器的输出](https://code.claude.com/docs/zh-CN/accessibility.md) | 界面与终端 | 用户或托管 |
56| [`bashEditDiffEnabled`](#basheditdiffenabled) | 在所有权限模式下记录[在 Bash 命令运行期间发生更改的文件](https://code.claude.com/docs/zh-CN/hooks.md#bash) | 界面与终端 | 用户或托管 |56| [`bashEditDiffEnabled`](#basheditdiffenabled) | 在所有权限模式下记录 [Bash 命令运行期间更改的文件](https://code.claude.com/docs/zh-CN/hooks.md#bash) | 界面与终端 | 用户或托管 |
57| [`bashOutputMaxChars`](#bashoutputmaxchars) | 设置 Claude 以内联方式接收成功命令[输出](https://code.claude.com/docs/zh-CN/tools-reference.md#output-limits)的长度 | 记忆与上下文 | 任意文件 |57| [`bashOutputMaxChars`](#bashoutputmaxchars) | 设置 Claude 以内联方式接收的成功命令[输出](https://code.claude.com/docs/zh-CN/tools-reference.md#output-limits)量 | 记忆与上下文 | 任意文件 |
58| [`blockedMarketplaces`](#blockedmarketplaces) | 为您的组织屏蔽[插件市场](https://code.claude.com/docs/zh-CN/plugins/overview.md)来源 | 插件与 skill | 托管 |58| [`blockedMarketplaces`](#blockedmarketplaces) | 为您的组织屏蔽[插件市场](https://code.claude.com/docs/zh-CN/plugins/overview.md)来源 | 插件与 skill | 托管 |
59| [`browserExternalPageTools`](#browserexternalpagetools) | 在[桌面版](https://code.claude.com/docs/zh-CN/desktop.md) Browser 面板中禁止 Claude 的工具作用于外部页面 | 工具 | 托管 |59| [`browserExternalPageTools`](#browserexternalpagetools) | 在[桌面版](https://code.claude.com/docs/zh-CN/desktop.md) Browser 窗格中禁止 Claude 的工具作用于外部页面 | 工具 | 托管 |
60| [`channelsEnabled`](#channelsenabled) | 为您的组织允许[频道](https://code.claude.com/docs/zh-CN/channels.md#enable-channels-for-your-organization) | 插件与 skill | 托管 |60| [`channelsEnabled`](#channelsenabled) | 为您的组织允许使用[频道](https://code.claude.com/docs/zh-CN/channels.md#enable-channels-for-your-organization) | 插件与 skill | 托管 |
61| [`claudeInChromeDefaultEnabled`](#claudeinchromedefaultenabled) | 在交互式 CLI 和 VS Code 扩展中,会话启动时开启 [Chrome 集成](https://code.claude.com/docs/zh-CN/chrome.md) | 全局配置设置 | 全局配置 |61| [`claudeInChromeDefaultEnabled`](#claudeinchromedefaultenabled) | 在交互式 CLI 和 VS Code 扩展中,于会话启动时开启 [Chrome 集成](https://code.claude.com/docs/zh-CN/chrome.md) | 全局配置设置 | 全局配置 |
62| [`claudeMd`](#claudemd) | 通过托管设置注入组织范围的 [CLAUDE.md](https://code.claude.com/docs/zh-CN/memory.md#deploy-organization-wide-claude-md) 指令 | 记忆与上下文 | 托管 |62| [`claudeMd`](#claudemd) | 从托管设置注入组织范围的 [CLAUDE.md](https://code.claude.com/docs/zh-CN/memory.md#deploy-organization-wide-claude-md) 指令 | 记忆与上下文 | 托管 |
63| [`claudeMdExcludes`](#claudemdexcludes) | 在加载记忆时跳过特定的 [CLAUDE.md](https://code.claude.com/docs/zh-CN/memory.md#exclude-specific-claude-md-files) 文件 | 记忆与上下文 | 任意文件 |63| [`claudeMdExcludes`](#claudemdexcludes) | 加载记忆时跳过特定的 [CLAUDE.md](https://code.claude.com/docs/zh-CN/memory.md#exclude-specific-claude-md-files) 文件 | 记忆与上下文 | 任意文件 |
64| [`cleanupPeriodDays`](#cleanupperioddays) | 选择 Claude Code 在删除[会话记录](https://code.claude.com/docs/zh-CN/data-usage.md#data-retention)之前保留多少天 | 隐私与遥测 | 任意文件 |64| [`cleanupPeriodDays`](#cleanupperioddays) | 选择 Claude Code 在删除[会话记录](https://code.claude.com/docs/zh-CN/data-usage.md#data-retention)前保留多少天 | 隐私与遥测 | 任意文件 |
65| [`companyAnnouncements`](#companyannouncements) | 在启动时显示您组织的公告 | 界面与终端 | 任意文件 |65| [`companyAnnouncements`](#companyannouncements) | 在启动时显示您组织的公告 | 界面与终端 | 任意文件 |
66| [`copyFullResponse`](#copyfullresponse) | 让 [`/copy`](https://code.claude.com/docs/zh-CN/commands) 直接复制完整回复而不显示选择器 | 全局配置设置 | 全局配置 |66| [`copyFullResponse`](#copyfullresponse) | 让 [`/copy`](https://code.claude.com/docs/zh-CN/commands) 直接复制完整回复而不显示选择器 | 全局配置设置 | 全局配置 |
67| [`copyOnSelect`](#copyonselect) | 关闭在[全屏渲染](https://code.claude.com/docs/zh-CN/fullscreen.md#use-the-mouse)和 Agent 视图中自动复制鼠标所选文本的功能 | 全局配置设置 | 全局配置 |67| [`copyOnSelect`](#copyonselect) | 在[全屏渲染](https://code.claude.com/docs/zh-CN/fullscreen.md#use-the-mouse)和 Agent 视图中,关闭对鼠标所选文本的自动复制 | 全局配置设置 | 全局配置 |
68| [`crossSessionInbound`](#crosssessioninbound) | 选择 Claude Code 是投递[来自您其他会话的消息](https://code.claude.com/docs/zh-CN/cross-session-messaging.md#control-inbound-messages)、仅显示通知而不投递,还是拒绝这些消息 | Agent、会话与 worktree | 任意文件 |68| [`crossSessionInbound`](#crosssessioninbound) | 选择 Claude Code 是投递[来自您其他会话的消息](https://code.claude.com/docs/zh-CN/cross-session-messaging.md#control-inbound-messages)、仅显示通知而不投递,还是拒绝这些消息 | Agent、会话与 worktree | 任意文件 |
69| [`defaultShell`](#defaultshell) | 选择由 Bash 还是 PowerShell 运行您以 [`!` 前缀](https://code.claude.com/docs/zh-CN/interactive-mode#shell-mode-with-prefix)输入的 shell 命令 | 界面与终端 | 任意文件 |69| [`defaultShell`](#defaultshell) | 选择由 Bash 还是 PowerShell 运行您以 [`!` 前缀](https://code.claude.com/docs/zh-CN/interactive-mode#shell-mode-with-prefix)输入的 shell 命令 | 界面与终端 | 任意文件 |
70| [`defaultToAgentsView`](#defaulttoagentsview) | 在不带参数运行 `claude` 时打开 [Agent 视图](https://code.claude.com/docs/zh-CN/agent-view.md)而不是新对话 | 全局配置设置 | 全局配置 |70| [`defaultToAgentsView`](#defaulttoagentsview) | 在不带参数运行 `claude` 时打开 [Agent 视图](https://code.claude.com/docs/zh-CN/agent-view.md)而非新对话 | 全局配置设置 | 全局配置 |
71| [`deniedMcpServers`](#deniedmcpservers) | 按 URL、命令或名称屏蔽特定的 [MCP 服务器](https://code.claude.com/docs/zh-CN/mcp.md) | MCP | 任意文件 |71| [`deniedMcpServers`](#deniedmcpservers) | 按 URL、命令或名称屏蔽特定 [MCP 服务器](https://code.claude.com/docs/zh-CN/mcp.md) | MCP | 任意文件 |
72| [`deniedModels`](#deniedmodels) | [屏蔽特定模型](https://code.claude.com/docs/zh-CN/model-config.md#block-specific-models-or-versions),即使 `availableModels` 允许了这些模型 | 模型与回复 | 托管 |72| [`deniedModels`](#deniedmodels) | [屏蔽特定模型](https://code.claude.com/docs/zh-CN/model-config.md#block-specific-models-or-versions),即使 `availableModels` 允许它们 | 模型与回复 | 托管 |
73| [`desktopSessionCleanupPeriodDays`](#desktopsessioncleanupperioddays) | 为 [Claude Desktop 和 Cowork 会话记录](https://code.claude.com/docs/zh-CN/claude-directory.md#cleaned-up-automatically)设置以天为单位的保留期限 | 隐私与遥测 | 用户或托管 |73| [`desktopSessionCleanupPeriodDays`](#desktopsessioncleanupperioddays) | 为 [Claude Desktop 和 Cowork 会话记录](https://code.claude.com/docs/zh-CN/claude-directory.md#cleaned-up-automatically)设置以天为单位的保留期限 | 隐私与遥测 | 用户或托管 |
74| [`dialogExpiry`](#dialogexpiry) | 设置 Claude Code 在取消转发的对话框之前,等待 [Remote Control](https://code.claude.com/docs/zh-CN/remote-control.md) 或 SDK 宿主应答的时长 | 界面与终端 | 用户或托管 |74| [`dialogExpiry`](#dialogexpiry) | 设置 Claude Code 在取消转发的对话框之前,等待 [Remote Control](https://code.claude.com/docs/zh-CN/remote-control.md) 或 SDK 宿主应答的时长 | 界面与终端 | 用户或托管 |
75| [`diffTool`](#difftool) | 选择 Claude 提议的文件更改是在 [VS Code](https://code.claude.com/docs/zh-CN/vs-code.md) 或 [JetBrains](https://code.claude.com/docs/zh-CN/jetbrains.md#features) 的 diff 查看器中打开,还是保留在终端中 | 全局配置设置 | 全局配置 |75| [`diffTool`](#difftool) | 选择 Claude 建议的文件更改是在 [VS Code](https://code.claude.com/docs/zh-CN/vs-code.md) 或 [JetBrains](https://code.claude.com/docs/zh-CN/jetbrains.md#features) 的 diff 查看器中打开,还是保留在终端中 | 全局配置设置 | 全局配置 |
76| [`disableAgentView`](#disableagentview) | 关闭后台 Agent 和 [Agent 视图](https://code.claude.com/docs/zh-CN/agent-view.md) | Agent、会话与 worktree | 任意文件 |76| [`disableAgentView`](#disableagentview) | 关闭后台 Agent 和 [Agent 视图](https://code.claude.com/docs/zh-CN/agent-view.md) | Agent、会话与 worktree | 任意文件 |
77| [`disableAllHooks`](#disableallhooks) | 一次性关闭 [hook](https://code.claude.com/docs/zh-CN/hooks.md)、自定义[状态栏](https://code.claude.com/docs/zh-CN/statusline.md)和自定义 [`@` 文件建议](https://code.claude.com/docs/zh-CN/interactive-mode#quick-commands)命令 | hook 与自动化 | 任意文件 |77| [`disableAllHooks`](#disableallhooks) | 一次性关闭 [hook](https://code.claude.com/docs/zh-CN/hooks.md)、自定义[状态栏](https://code.claude.com/docs/zh-CN/statusline.md)以及自定义 [`@` 文件建议](https://code.claude.com/docs/zh-CN/interactive-mode#quick-commands)命令 | hook 与自动化 | 任意文件 |
78| [`disableArtifact`](#disableartifact) | 已弃用;请使用 `enableArtifact` 关闭 [Artifact 工具](https://code.claude.com/docs/zh-CN/artifacts.md) | 远程、桌面与通知 | 任意文件 |78| [`disableArtifact`](#disableartifact) | 已弃用;请使用 `enableArtifact` 关闭 [Artifact 工具](https://code.claude.com/docs/zh-CN/artifacts.md) | 远程、桌面与通知 | 任意文件 |
79| [`disableAutoMode`](#disableautomode) | 从权限模式循环中移除[自动模式](https://code.claude.com/docs/zh-CN/permission-modes.md#eliminate-prompts-with-auto-mode) | 权限设置 | 任意文件 |79| [`disableAutoMode`](#disableautomode) | 从权限模式循环中移除[自动模式](https://code.claude.com/docs/zh-CN/permission-modes.md#eliminate-prompts-with-auto-mode) | 权限设置 | 任意文件 |
80| [`disableBrowserExternalNavigation`](#disablebrowserexternalnavigation) | 将[桌面版](https://code.claude.com/docs/zh-CN/desktop.md) Browser 面板限制为仅供用户和 Claude 访问 localhost | 工具 | 托管 |80| [`disableBrowserExternalNavigation`](#disablebrowserexternalnavigation) | 将[桌面版](https://code.claude.com/docs/zh-CN/desktop.md) Browser 窗格对用户和 Claude 均限制为 localhost | 工具 | 托管 |
81| [`disableBundledSkills`](#disablebundledskills) | 关闭 Claude Code 随附的 [skill](https://code.claude.com/docs/zh-CN/skills.md#bundled-skills) 和[工作流](https://code.claude.com/docs/zh-CN/workflows.md) | 插件与 skill | 任意文件 |81| [`disableBundledSkills`](#disablebundledskills) | 关闭 Claude Code 随附的 [skill](https://code.claude.com/docs/zh-CN/skills.md#bundled-skills) 和[工作流](https://code.claude.com/docs/zh-CN/workflows.md) | 插件与 skill | 任意文件 |
82| [`disableClaudeAiConnectors`](#disableclaudeaiconnectors) | 关闭 [claude.ai 连接器](https://code.claude.com/docs/zh-CN/mcp.md#disable-claude-ai-connectors),使 Claude Code 不再获取它们 | MCP | 任意文件 |82| [`disableClaudeAiConnectors`](#disableclaudeaiconnectors) | 关闭 [claude.ai 连接器](https://code.claude.com/docs/zh-CN/mcp.md#disable-claude-ai-connectors),使 Claude Code 不再获取它们 | MCP | 任意文件 |
83| [`disableCommandPluginSources`](#disablecommandpluginsources) | 屏蔽通过运行市场声明的命令进行安装的[插件](https://code.claude.com/docs/zh-CN/plugins/overview.md) | 插件与 skill | 托管 |83| [`disableCommandPluginSources`](#disablecommandpluginsources) | 屏蔽通过运行市场声明的命令进行安装的[插件](https://code.claude.com/docs/zh-CN/plugins/overview.md) | 插件与 skill | 托管 |
84| [`disableDeepLinkRegistration`](#disabledeeplinkregistration) | 阻止 Claude Code 注册 [`claude-cli://` 处理程序](https://code.claude.com/docs/zh-CN/deep-links) | 远程、桌面与通知 | 任意文件 |84| [`disableDeepLinkRegistration`](#disabledeeplinkregistration) | 阻止 Claude Code 注册 [`claude-cli://` 处理程序](https://code.claude.com/docs/zh-CN/deep-links) | 远程、桌面与通知 | 任意文件 |
85| [`disableDesktopLocalSessions`](#disabledesktoplocalsessions) | 关闭在设备本机上运行的 [Desktop Code 会话](https://code.claude.com/docs/zh-CN/desktop.md#local-sessions-on-managed-devices),仅保留到其他主机的 SSH 和云端会话 | 远程、桌面与通知 | 托管 |85| [`disableDesktopLocalSessions`](#disabledesktoplocalsessions) | 关闭在设备上运行的 [Desktop Code 会话](https://code.claude.com/docs/zh-CN/desktop.md#local-sessions-on-managed-devices),仅保留通过 SSH 连接其他主机和云端 | 远程、桌面与通知 | 托管 |
86| [`disabledMcpjsonServers`](#disabledmcpjsonservers) | 拒绝项目 [`.mcp.json`](https://code.claude.com/docs/zh-CN/mcp#project-scope) 中的特定服务器 | MCP | 任意文件 |86| [`disabledMcpjsonServers`](#disabledmcpjsonservers) | 拒绝项目 [`.mcp.json`](https://code.claude.com/docs/zh-CN/mcp#project-scope) 中的特定服务器 | MCP | 任意文件 |
87| [`disableMobileSimulatorTools`](#disablemobilesimulatortools) | 在[桌面版](https://code.claude.com/docs/zh-CN/desktop.md) iOS Simulator 面板中屏蔽 Claude 的工具 | 工具 | 托管 |87| [`disableMobileSimulatorTools`](#disablemobilesimulatortools) | 在[桌面版](https://code.claude.com/docs/zh-CN/desktop.md) iOS Simulator 窗格中屏蔽 Claude 的工具 | 工具 | 托管 |
88| [`disableRemoteControl`](#disableremotecontrol) | 在所有可启动 [Remote Control](https://code.claude.com/docs/zh-CN/remote-control.md) 的位置将其关闭 | 远程、桌面与通知 | 任意文件 |88| [`disableRemoteControl`](#disableremotecontrol) | 在所有可启动 [Remote Control](https://code.claude.com/docs/zh-CN/remote-control.md) 的地方将其关闭 | 远程、桌面与通知 | 任意文件 |
89| [`disableRemotePreviewScripts`](#disableremotepreviewscripts) | 在 SSH 和 WSL 会话中关闭[桌面版](https://code.claude.com/docs/zh-CN/desktop.md#preview-html-files-in-ssh-and-wsl-sessions)应用 HTML 预览中的脚本 | 远程、桌面与通知 | 托管 |89| [`disableRemotePreviewScripts`](#disableremotepreviewscripts) | 在[桌面](https://code.claude.com/docs/zh-CN/desktop.md#preview-html-files-in-ssh-and-wsl-sessions)应用的 SSH 和 WSL 会话中,关闭 Browser 窗格 HTML 预览中的脚本 | 远程、桌面与通知 | 托管 |
90| [`disableSideloadFlags`](#disablesideloadflags) | 拒绝用于旁加载[插件](https://code.claude.com/docs/zh-CN/plugins/overview.md)、[子代理](https://code.claude.com/docs/zh-CN/sub-agents.md)和 [MCP 服务器](https://code.claude.com/docs/zh-CN/mcp.md)的 CLI 标志 | 企业与托管设置 | 托管 |90| [`disableSideloadFlags`](#disablesideloadflags) | 拒绝用于旁加载[插件](https://code.claude.com/docs/zh-CN/plugins/overview.md)、[子代理](https://code.claude.com/docs/zh-CN/sub-agents.md)和 [MCP 服务器](https://code.claude.com/docs/zh-CN/mcp.md)的 CLI 标志 | 企业与托管设置 | 托管 |
91| [`disableSkillShellExecution`](#disableskillshellexecution) | 阻止 [skill](https://code.claude.com/docs/zh-CN/skills.md) 和自定义命令运行内联 shell | 插件与 skill | 任意文件 |91| [`disableSkillShellExecution`](#disableskillshellexecution) | 阻止 [skill](https://code.claude.com/docs/zh-CN/skills.md) 和自定义命令运行内联 shell | 插件与 skill | 任意文件 |
92| [`disableWorkflows`](#disableworkflows) | 为所有人关闭[动态工作流](https://code.claude.com/docs/zh-CN/workflows.md);若仅针对自己,请使用 `enableWorkflows` | hook 与自动化 | 任意文件 |92| [`disableWorkflows`](#disableworkflows) | 为所有人关闭[动态工作流](https://code.claude.com/docs/zh-CN/workflows.md);如仅针对您自己,请使用 `enableWorkflows` | hook 与自动化 | 任意文件 |
93| [`editorMode`](#editormode) | 在输入框中使用 [vim 键绑定](https://code.claude.com/docs/zh-CN/interactive-mode.md#vim-editor-mode) | 界面与终端 | 任意文件 |93| [`editorMode`](#editormode) | 在输入框中使用 [vim 键绑定](https://code.claude.com/docs/zh-CN/interactive-mode.md#vim-editor-mode) | 界面与终端 | 任意文件 |
94| [`effortLevel`](#effortlevel) | 为没有已保存级别的模型设置默认的 [effort 级别](https://code.claude.com/docs/zh-CN/model-config.md#adjust-effort-level) | 模型与回复 | 任意文件 |94| [`effortLevel`](#effortlevel) | 为没有自己已保存级别的模型设置默认 [effort 级别](https://code.claude.com/docs/zh-CN/model-config.md#adjust-effort-level) | 模型与回复 | 任意文件 |
95| [`emojiCompletionEnabled`](#emojicompletionenabled) | 关闭输入框中的 [`:shortcode:` emoji 建议和替换](https://code.claude.com/docs/zh-CN/interactive-mode#emoji-shortcodes) | 界面与终端 | 任意文件 |95| [`emojiCompletionEnabled`](#emojicompletionenabled) | 关闭输入框中的 [`:shortcode:` 表情建议与替换](https://code.claude.com/docs/zh-CN/interactive-mode#emoji-shortcodes) | 界面与终端 | 任意文件 |
96| [`enableAllProjectMcpServers`](#enableallprojectmcpservers) | 无需确认提示即批准项目 [`.mcp.json`](https://code.claude.com/docs/zh-CN/mcp#project-server-approvals-and-workspace-trust) 文件中的所有服务器 | MCP | 任意文件 |96| [`enableAllProjectMcpServers`](#enableallprojectmcpservers) | 无需提示即批准项目 [`.mcp.json`](https://code.claude.com/docs/zh-CN/mcp#project-server-approvals-and-workspace-trust) 文件中的所有服务器 | MCP | 任意文件 |
97| [`enableArtifact`](#enableartifact) | 在任意文件中设为 `false` 即可关闭 [Artifact 工具](https://code.claude.com/docs/zh-CN/artifacts.md);任何文件都无法再将其重新开启 | 远程、桌面与通知 | 任意文件 |97| [`enableArtifact`](#enableartifact) | 在任意文件中设为 `false` 即可关闭 [Artifact 工具](https://code.claude.com/docs/zh-CN/artifacts.md);任何文件都无法将其重新开启 | 远程、桌面与通知 | 任意文件 |
98| [`enabledMcpjsonServers`](#enabledmcpjsonservers) | 批准项目 [`.mcp.json`](https://code.claude.com/docs/zh-CN/mcp#project-server-approvals-and-workspace-trust) 中的特定服务器 | MCP | 任意文件 |98| [`enabledMcpjsonServers`](#enabledmcpjsonservers) | 批准项目 [`.mcp.json`](https://code.claude.com/docs/zh-CN/mcp#project-server-approvals-and-workspace-trust) 中的特定服务器 | MCP | 任意文件 |
99| [`enabledPlugins`](#enabledplugins) | 按作用域开启或关闭单个[插件](https://code.claude.com/docs/zh-CN/plugins/overview.md) | 插件与 skill | 任意文件 |99| [`enabledPlugins`](#enabledplugins) | 按作用域开启或关闭单个[插件](https://code.claude.com/docs/zh-CN/plugins/overview.md) | 插件与 skill | 任意文件 |
100| [`enableWorkflows`](#enableworkflows) | 相对于您套餐的默认值开启或关闭[动态工作流](https://code.claude.com/docs/zh-CN/workflows.md) | hook 与自动化 | 任意文件 |100| [`enableWorkflows`](#enableworkflows) | 相对于您套餐的默认值开启或关闭[动态工作流](https://code.claude.com/docs/zh-CN/workflows.md) | hook 与自动化 | 任意文件 |
101| [`enforceAvailableModels`](#enforceavailablemodels) | 将 [`/model` 的 Default 选项](https://code.claude.com/docs/zh-CN/model-config#enforce-the-allowlist-for-the-default-model)限制在您的 `availableModels` 允许列表之内 | 模型与回复 | 任意文件 |101| [`enforceAvailableModels`](#enforceavailablemodels) | 使 [`/model` 的 Default 选项](https://code.claude.com/docs/zh-CN/model-config#enforce-the-allowlist-for-the-default-model)保持在您的 `availableModels` 允许列表范围内 | 模型与回复 | 任意文件 |
102| [`env`](#env) | 为每个会话及其子进程设置[环境变量](https://code.claude.com/docs/zh-CN/env-vars.md#in-settings-files) | 记忆与上下文 | 任意文件 |102| [`env`](#env) | 为每个会话及其子进程设置[环境变量](https://code.claude.com/docs/zh-CN/env-vars.md#in-settings-files) | 记忆与上下文 | 任意文件 |
103| [`externalEditorContext`](#externaleditorcontext) | 按 [Ctrl+G](https://code.claude.com/docs/zh-CN/interactive-mode.md#general-controls) 进行编辑时,将 Claude 的上一条回复以注释形式显示 | 全局配置设置 | 全局配置 |103| [`externalEditorContext`](#externaleditorcontext) | 在您按 [Ctrl+G](https://code.claude.com/docs/zh-CN/interactive-mode.md#general-controls) 进行编辑时,以注释形式显示 Claude 的上一条回复 | 全局配置设置 | 全局配置 |
104| [`extraKnownMarketplaces`](#extraknownmarketplaces) | 为仓库或组织注册[市场](https://code.claude.com/docs/zh-CN/plugins/overview.md) | 插件与 skill | 任意文件 |104| [`extraKnownMarketplaces`](#extraknownmarketplaces) | 为仓库或组织注册[市场](https://code.claude.com/docs/zh-CN/plugins/overview.md) | 插件与 skill | 任意文件 |
105| [`fallbackModel`](#fallbackmodel) | 指定主模型过载时使用的[备用模型](https://code.claude.com/docs/zh-CN/model-config.md#fallback-model-chains) | 模型与回复 | 任意文件 |105| [`fallbackModel`](#fallbackmodel) | 指定主模型过载时使用的[备用模型](https://code.claude.com/docs/zh-CN/model-config.md#fallback-model-chains) | 模型与回复 | 任意文件 |
106| [`fastMode`](#fastmode) | 在可用的会话中开启[快速模式](https://code.claude.com/docs/zh-CN/fast-mode.md) | 模型与回复 | 任意文件 |106| [`fastMode`](#fastmode) | 在可用的会话中开启[快速模式](https://code.claude.com/docs/zh-CN/fast-mode.md) | 模型与回复 | 任意文件 |
107| [`fastModePerSessionOptIn`](#fastmodepersessionoptin) | 要求用户在每个会话中手动开启[快速模式](https://code.claude.com/docs/zh-CN/fast-mode.md) | 模型与回复 | 任意文件 |107| [`fastModePerSessionOptIn`](#fastmodepersessionoptin) | 要求用户在每个会话中自行开启[快速模式](https://code.claude.com/docs/zh-CN/fast-mode.md) | 模型与回复 | 任意文件 |
108| [`feedbackDrafts`](#feedbackdrafts) | 控制 Claude 是否将[反馈草稿](https://code.claude.com/docs/zh-CN/tools-reference.md#sendfeedback-tool-behavior)排队供您审阅 | 隐私与遥测 | 用户或托管 |108| [`feedbackDrafts`](#feedbackdrafts) | 控制 Claude 是否将[反馈草稿](https://code.claude.com/docs/zh-CN/tools-reference.md#sendfeedback-tool-behavior)排队供您审阅 | 隐私与遥测 | 用户或托管 |
109| [`feedbackSurveyRate`](#feedbacksurveyrate) | 更改[会话质量调查](https://code.claude.com/docs/zh-CN/data-usage.md#session-quality-surveys)的出现频率 | 隐私与遥测 | 任意文件 |109| [`feedbackSurveyRate`](#feedbacksurveyrate) | 更改[会话质量调查](https://code.claude.com/docs/zh-CN/data-usage.md#session-quality-surveys)的出现频率 | 隐私与遥测 | 任意文件 |
110| [`fileCheckpointingEnabled`](#filecheckpointingenabled) | 关闭或开启 [`/rewind`](https://code.claude.com/docs/zh-CN/checkpointing) 所恢复的文件快照 | 记忆与上下文 | 任意文件 |110| [`fileCheckpointingEnabled`](#filecheckpointingenabled) | 关闭或开启 [`/rewind`](https://code.claude.com/docs/zh-CN/checkpointing) 所恢复的文件快照 | 记忆与上下文 | 任意文件 |
111| [`fileSuggestion`](#filesuggestion) | 通过您自己的命令提供 [`@` 文件自动补全](https://code.claude.com/docs/zh-CN/interactive-mode#quick-commands) | 界面与终端 | 任意文件 |111| [`fileSuggestion`](#filesuggestion) | 通过您自己的命令提供 [`@` 文件自动补全](https://code.claude.com/docs/zh-CN/interactive-mode#quick-commands) | 界面与终端 | 任意文件 |
112| [`footerLinksRegexes`](#footerlinksregexes) | 将输出中的 issue 或审查 ID 转换为输入框下方的[可点击链接](https://code.claude.com/docs/zh-CN/statusline.md#clickable-links) | 界面与终端 | 用户或托管 |112| [`footerLinksRegexes`](#footerlinksregexes) | 将输出中的问题或审查 ID 转换为输入框下方的[可点击链接](https://code.claude.com/docs/zh-CN/statusline.md#clickable-links) | 界面与终端 | 用户或托管 |
113| [`forceLoginGatewayUrl`](#forcelogingatewayurl) | 设置登录界面连接的[网关 URL](https://code.claude.com/docs/zh-CN/claude-apps-gateway#set-the-gateway-url) | 身份验证与提供商 | 用户或托管 |113| [`forceLoginGatewayUrl`](#forcelogingatewayurl) | 设置登录界面所连接的[网关 URL](https://code.claude.com/docs/zh-CN/claude-apps-gateway#set-the-gateway-url) | 身份验证与提供商 | 用户或托管 |
114| [`forceLoginMethod`](#forceloginmethod) | 将[登录限制](https://code.claude.com/docs/zh-CN/authentication.md#restrict-login-to-your-organization)为 claude.ai、Claude Console 或[云网关](https://code.claude.com/docs/zh-CN/claude-apps-gateway) | 身份验证与提供商 | 任意文件 |114| [`forceLoginMethod`](#forceloginmethod) | 将[登录限制](https://code.claude.com/docs/zh-CN/authentication.md#restrict-login-to-your-organization)为 claude.ai、Claude Console 或[云网关](https://code.claude.com/docs/zh-CN/claude-apps-gateway) | 身份验证与提供商 | 任意文件 |
115| [`forceLoginOrgUUID`](#forceloginorguuid) | [将 claude.ai 登录限定到您的组织](https://code.claude.com/docs/zh-CN/authentication.md#restrict-login-to-your-organization);仅托管设置会强制执行此设置 | 身份验证与提供商 | 任意文件 |115| [`forceLoginOrgUUID`](#forceloginorguuid) | [将 claude.ai 登录固定到您的组织](https://code.claude.com/docs/zh-CN/authentication.md#restrict-login-to-your-organization);仅托管设置会强制执行 | 身份验证与提供商 | 任意文件 |
116| [`forceRemoteSettingsRefresh`](#forceremotesettingsrefresh) | 阻塞启动,直到成功获取最新的[服务器托管设置](https://code.claude.com/docs/zh-CN/server-managed-settings.md)为止 | 企业与托管设置 | 托管 |116| [`forceRemoteSettingsRefresh`](#forceremotesettingsrefresh) | 在重新获取[服务器托管设置](https://code.claude.com/docs/zh-CN/server-managed-settings.md)之前阻止启动 | 企业与托管设置 | 托管 |
117| [`gatewayInternalNetworks`](#gatewayinternalnetworks) | 允许 `/login` 访问位于您组织内部使用的公共 IPv4 地址空间上的[云网关](https://code.claude.com/docs/zh-CN/claude-apps-gateway#allow-a-gateway-on-public-address-space-you-own) | 身份验证与提供商 | 托管 |117| [`gatewayInternalNetworks`](#gatewayinternalnetworks) | 允许 `/login` 访问位于您组织内部使用的公共 IPv4 地址空间上的[云网关](https://code.claude.com/docs/zh-CN/claude-apps-gateway#allow-a-gateway-on-public-address-space-you-own) | 身份验证与提供商 | 托管 |
118| [`gcpAuthRefresh`](#gcpauthrefresh) | 使用您自己的命令刷新 [Google Cloud 凭据](https://code.claude.com/docs/zh-CN/google-vertex-ai.md#advanced-credential-configuration) | 身份验证与提供商 | 任意文件 |118| [`gcpAuthRefresh`](#gcpauthrefresh) | 使用您自己的命令刷新 [Google Cloud 凭据](https://code.claude.com/docs/zh-CN/google-vertex-ai.md#advanced-credential-configuration) | 身份验证与提供商 | 任意文件 |
119| [`hooks`](#hooks) | 在 Claude Code 生命周期的各个节点以 [hook](https://code.claude.com/docs/zh-CN/hooks.md) 形式运行您自己的命令 | hook 与自动化 | 任意文件 |119| [`hooks`](#hooks) | 在 Claude Code 生命周期的各个节点以 [hook](https://code.claude.com/docs/zh-CN/hooks.md) 形式运行您自己的命令 | hook 与自动化 | 任意文件 |
120| [`httpHookAllowedEnvVars`](#httphookallowedenvvars) | 限制 [HTTP hook](https://code.claude.com/docs/zh-CN/hooks.md) 可以放入请求头的环境变量 | hook 与自动化 | 任意文件 |120| [`httpHookAllowedEnvVars`](#httphookallowedenvvars) | 限制 [HTTP hook](https://code.claude.com/docs/zh-CN/hooks.md) 可放入请求头中的环境变量 | hook 与自动化 | 任意文件 |
121| [`idleCompaction`](#idlecompaction) | 阻止 Claude Code 压缩您已离开的较长对话 | 记忆与上下文 | 任意文件 |121| [`idleCompaction`](#idlecompaction) | 阻止 Claude Code 压缩您已离开的长对话 | 记忆与上下文 | 任意文件 |
122| [`includeCoAuthoredBy`](#includecoauthoredby) | 已弃用;请使用 `attribution` 隐藏或更改提交和 PR 署名 | Git 与署名 | 任意文件 |122| [`includeCoAuthoredBy`](#includecoauthoredby) | 已弃用;请使用 `attribution` 隐藏或更改提交和 PR 署名 | Git 与署名 | 任意文件 |
123| [`includeGitInstructions`](#includegitinstructions) | 从 Claude 的上下文中移除内置的提交和 PR 指令 | Git 与署名 | 任意文件 |123| [`includeGitInstructions`](#includegitinstructions) | 从 Claude 的上下文中移除内置的提交和 PR 指令 | Git 与署名 | 任意文件 |
124| [`inputNeededNotifEnabled`](#inputneedednotifenabled) | 在 Claude 等待您操作时收到[推送通知](https://code.claude.com/docs/zh-CN/remote-control.md#mobile-push-notifications) | 远程、桌面与通知 | 任意文件 |124| [`inputNeededNotifEnabled`](#inputneedednotifenabled) | 当 Claude 等待您操作时接收[推送通知](https://code.claude.com/docs/zh-CN/remote-control.md#mobile-push-notifications) | 远程、桌面与通知 | 任意文件 |
125| [`isolatePeerMachines`](#isolatepeermachines) | 在 Claude [向您在另一台机器上的会话发送消息](https://code.claude.com/docs/zh-CN/cross-session-messaging.md#require-approval-for-cross-machine-messages)之前先询问您 | Agent、会话与 worktree | 任意文件 |125| [`isolatePeerMachines`](#isolatepeermachines) | 在 Claude [向您在另一台机器上的会话发送消息](https://code.claude.com/docs/zh-CN/cross-session-messaging.md#require-approval-for-cross-machine-messages)之前先询问您 | Agent、会话与 worktree | 任意文件 |
126| [`keybindingFlavor`](#keybindingflavor) | 已弃用且不再生效;单词编辑快捷键始终[遵循 readline 约定](https://code.claude.com/docs/zh-CN/interactive-mode.md#make-ctrl-w-delete-back-to-whitespace) | 界面与终端 | 任意文件 |126| [`keybindingFlavor`](#keybindingflavor) | 已弃用且不再生效;单词编辑快捷键始终[遵循 readline 惯例](https://code.claude.com/docs/zh-CN/interactive-mode.md#make-ctrl-w-delete-back-to-whitespace) | 界面与终端 | 任意文件 |
127| [`language`](#language) | 让 Claude 使用英语以外的语言回复 | 模型与回复 | 任意文件 |127| [`language`](#language) | 让 Claude 使用英语以外的语言回复 | 模型与回复 | 任意文件 |
128| [`leftArrowOpensAgents`](#leftarrowopensagents) | 关闭用于[将会话转入后台并打开 Agent 视图](https://code.claude.com/docs/zh-CN/agent-view.md#switch-sessions-without-leaving-the-terminal)的 `←` 快捷键 | 全局配置设置 | 全局配置 |128| [`leftArrowOpensAgents`](#leftarrowopensagents) | 关闭用于[将会话转入后台并打开 Agent 视图](https://code.claude.com/docs/zh-CN/agent-view.md#switch-sessions-without-leaving-the-terminal)的 `←` 快捷键 | 全局配置设置 | 全局配置 |
129| [`managedMcpServers`](#managedmcpservers) | 在用户自行添加的服务器之外,为每位用户提供远程 [MCP 服务器](https://code.claude.com/docs/zh-CN/managed-mcp.md#provide-servers-through-managed-settings) | MCP | 托管 |129| [`managedMcpServers`](#managedmcpservers) | 在用户自行添加的服务器之外,为每位用户提供远程 [MCP 服务器](https://code.claude.com/docs/zh-CN/managed-mcp.md#provide-servers-through-managed-settings) | MCP | 托管 |
130| [`managedSourcesBehavior`](#managedsourcesbehavior) | 组合您部署的所有[托管来源](https://code.claude.com/docs/zh-CN/managed-settings.md#how-claude-code-combines-managed-sources),而不是仅使用优先级最高的一个 | 企业与托管设置 | 托管 |130| [`managedSourcesBehavior`](#managedsourcesbehavior) | 组合您部署的所有[托管来源](https://code.claude.com/docs/zh-CN/managed-settings.md#how-claude-code-combines-managed-sources),而非仅使用优先级最高的那一个 | 企业与托管设置 | 托管 |
131| [`maxEffortLevel`](#maxeffortlevel) | 在所有提供商上为所有模型或单个模型设置 [effort 级别](https://code.claude.com/docs/zh-CN/model-config.md#adjust-effort-level)上限 | 模型与回复 | 任意文件 |131| [`maxEffortLevel`](#maxeffortlevel) | 在所有提供商上,为所有模型或按模型设定 [effort 级别](https://code.claude.com/docs/zh-CN/model-config.md#adjust-effort-level)上限 | 模型与回复 | 任意文件 |
132| [`maxProseWidth`](#maxprosewidth) | 在宽终端中限制 Claude 回复中正文文本的最大宽度 | 界面与终端 | 任意文件 |132| [`maxProseWidth`](#maxprosewidth) | 在宽终端中限制 Claude 回复正文的最大宽度 | 界面与终端 | 任意文件 |
133| [`minimumVersion`](#minimumversion) | 阻止[自动更新](https://code.claude.com/docs/zh-CN/setup.md#pin-a-minimum-version)安装低于某一版本的任何版本 | 更新与版本 | 任意文件 |133| [`minimumVersion`](#minimumversion) | 防止[自动更新](https://code.claude.com/docs/zh-CN/setup.md#pin-a-minimum-version)安装低于某一版本的任何版本 | 更新与版本 | 任意文件 |
134| [`model`](#model) | 更改 Claude Code 启动时使用的[模型](https://code.claude.com/docs/zh-CN/model-config.md#set-a-default-model-for-new-sessions) | 模型与回复 | 任意文件 |134| [`model`](#model) | 更改 Claude Code 启动时使用的[模型](https://code.claude.com/docs/zh-CN/model-config.md#set-a-default-model-for-new-sessions) | 模型与回复 | 任意文件 |
135| [`modelOverrides`](#modeloverrides) | 将[模型 ID 映射](https://code.claude.com/docs/zh-CN/model-config.md#override-model-ids-per-version)到您的提供商的 ID,例如 Bedrock ARN | 模型与回复 | 任意文件 |135| [`modelOverrides`](#modeloverrides) | 将[模型 ID 映射](https://code.claude.com/docs/zh-CN/model-config.md#override-model-ids-per-version)到您提供商的 ID,例如 Bedrock ARN | 模型与回复 | 任意文件 |
136| [`modelPicker`](#modelpicker) | 选择 [`/model` 选择器](https://code.claude.com/docs/zh-CN/model-config#available-models)列出哪些模型,并使用您自己的顺序和标签 | 模型与回复 | 用户或托管 |136| [`modelPicker`](#modelpicker) | 选择 [`/model` 选择器](https://code.claude.com/docs/zh-CN/model-config#available-models)列出哪些模型,并使用您自己的顺序和标签 | 模型与回复 | 用户或托管 |
137| [`modelPricing`](#modelpricing) | 按您组织的合同费率而非标价报告花费 | 模型与回复 | 托管 |137| [`modelPricing`](#modelpricing) | 按您组织的合同费率而非标价报告支出 | 模型与回复 | 托管 |
138| [`modelSettings`](#modelsettings) | 按模型保存 [effort 级别](https://code.claude.com/docs/zh-CN/model-config.md#adjust-effort-level)或[自动压缩窗口](https://code.claude.com/docs/zh-CN/model-config.md#set-the-auto-compact-window),或为某个模型设置 effort 上限 | 模型与回复 | 任意文件 |138| [`modelSettings`](#modelsettings) | 按模型保存 [effort 级别](https://code.claude.com/docs/zh-CN/model-config.md#adjust-effort-level)或[自动压缩窗口](https://code.claude.com/docs/zh-CN/model-config.md#set-the-auto-compact-window),或为某个模型设定 effort 上限 | 模型与回复 | 任意文件 |
139| [`otelHeadersHelper`](#otelheadershelper) | 使用您自己的命令生成轮换的 [OpenTelemetry](https://code.claude.com/docs/zh-CN/monitoring-usage.md#dynamic-headers) 请求头 | 身份验证与提供商 | 任意文件 |139| [`otelHeadersHelper`](#otelheadershelper) | 使用您自己的命令生成轮换的 [OpenTelemetry](https://code.claude.com/docs/zh-CN/monitoring-usage.md#dynamic-headers) 请求头 | 身份验证与提供商 | 任意文件 |
140| [`outputStyle`](#outputstyle) | 通过[输出样式](https://code.claude.com/docs/zh-CN/output-styles.md)更改 Claude 的角色、语气和输出格式 | 模型与回复 | 任意文件 |140| [`outputStyle`](#outputstyle) | 通过[输出样式](https://code.claude.com/docs/zh-CN/output-styles.md)更改 Claude 的角色、语气和输出格式 | 模型与回复 | 任意文件 |
141| [`parentSettingsBehavior`](#parentsettingsbehavior) | 在部署[托管设置](https://code.claude.com/docs/zh-CN/managed-settings.md)时,应用或丢弃 [SDK 或 IDE 宿主](https://code.claude.com/docs/zh-CN/managed-settings.md#let-an-embedding-host-add-policy)传入的限制 | 企业与托管设置 | 托管 |141| [`parentSettingsBehavior`](#parentsettingsbehavior) | 在您部署[托管设置](https://code.claude.com/docs/zh-CN/managed-settings.md)时,应用或丢弃 [SDK 或 IDE 宿主](https://code.claude.com/docs/zh-CN/managed-settings.md#let-an-embedding-host-add-policy)传入的限制 | 企业与托管设置 | 托管 |
142| [`permissionExplainerEnabled`](#permissionexplainerenabled) | 已在 v2.1.257 中移除,shell 权限提示上的 `Ctrl+E` 命令说明也一并移除 | 全局配置设置 | 全局配置 |142| [`permissionExplainerEnabled`](#permissionexplainerenabled) | 已在 v2.1.257 中移除,同时移除的还有 shell 权限提示中的 `Ctrl+E` 命令说明 | 全局配置设置 | 全局配置 |
143| [`permissions`](#permissions) | 设置允许、询问和拒绝规则以及默认的[权限模式](https://code.claude.com/docs/zh-CN/permission-modes.md) | 权限设置 | 任意文件 |143| [`permissions`](#permissions) | 设置允许、询问和拒绝规则以及默认[权限模式](https://code.claude.com/docs/zh-CN/permission-modes.md) | 权限设置 | 任意文件 |
144| [`permissions.additionalDirectories`](#permissions-additionaldirectories) | 授予 Claude 访问[当前目录之外的目录](https://code.claude.com/docs/zh-CN/permissions.md#working-directories)中文件的能力 | 权限设置 | 任意文件 |144| [`permissions.additionalDirectories`](#permissions-additionaldirectories) | 允许 Claude 访问[当前目录以外的目录](https://code.claude.com/docs/zh-CN/permissions.md#working-directories)中的文件 | 权限设置 | 任意文件 |
145| [`permissions.allow`](#permissions-allow) | 无需确认提示即批准所列的[工具使用](https://code.claude.com/docs/zh-CN/permissions.md#permission-rule-syntax) | 权限设置 | 任意文件 |145| [`permissions.allow`](#permissions-allow) | 无需提示即批准所列的[工具使用](https://code.claude.com/docs/zh-CN/permissions.md#permission-rule-syntax) | 权限设置 | 任意文件 |
146| [`permissions.ask`](#permissions-ask) | 在所列的[工具使用](https://code.claude.com/docs/zh-CN/permissions.md#permission-rule-syntax)之前始终进行提示 | 权限设置 | 任意文件 |146| [`permissions.ask`](#permissions-ask) | 在所列的[工具使用](https://code.claude.com/docs/zh-CN/permissions.md#permission-rule-syntax)之前进行提示 | 权限设置 | 任意文件 |
147| [`permissions.blockReadsOutsideWorkingDirectories`](#permissions-blockreadsoutsideworkingdirectories) | 使文件工具在所有权限模式下拒绝读取[工作目录](https://code.claude.com/docs/zh-CN/permissions.md#working-directories)之外的内容 | 权限设置 | 任意文件 |147| [`permissions.blockReadsOutsideWorkingDirectories`](#permissions-blockreadsoutsideworkingdirectories) | 在所有权限模式下,使文件工具拒绝读取[工作目录](https://code.claude.com/docs/zh-CN/permissions.md#working-directories)以外的内容 | 权限设置 | 任意文件 |
148| [`permissions.blockWritesOutsideWorkingDirectories`](#permissions-blockwritesoutsideworkingdirectories) | 使 `Write`、`Edit` 和 `NotebookEdit` 工具在所有权限模式下拒绝[工作目录](https://code.claude.com/docs/zh-CN/permissions.md#working-directories)之外的路径,[Claude Code 自身的部分文件](#what-the-write-block-refuses-and-what-stays-writable)除外 | 权限设置 | 任意文件 |148| [`permissions.blockWritesOutsideWorkingDirectories`](#permissions-blockwritesoutsideworkingdirectories) | 在所有权限模式下,使 `Write`、`Edit` 和 `NotebookEdit` 工具拒绝[工作目录](https://code.claude.com/docs/zh-CN/permissions.md#working-directories)以外的路径,[Claude Code 自身的部分文件](#what-the-write-block-refuses-and-what-stays-writable)除外 | 权限设置 | 任意文件 |
149| [`permissions.defaultMode`](#permissions-defaultmode) | 为新会话设置默认的[权限模式](https://code.claude.com/docs/zh-CN/permission-modes.md#which-mode-a-session-starts-in) | 权限设置 | 任意文件 |149| [`permissions.defaultMode`](#permissions-defaultmode) | 为新会话设置默认[权限模式](https://code.claude.com/docs/zh-CN/permission-modes.md#which-mode-a-session-starts-in) | 权限设置 | 任意文件 |
150| [`permissions.deny`](#permissions-deny) | 阻止所列的[工具使用](https://code.claude.com/docs/zh-CN/permissions.md#permission-rule-syntax),包括读取包含机密的文件 | 权限设置 | 任意文件 |150| [`permissions.deny`](#permissions-deny) | 屏蔽所列的[工具使用](https://code.claude.com/docs/zh-CN/permissions.md#permission-rule-syntax),包括读取存放机密的文件 | 权限设置 | 任意文件 |
151| [`permissions.denyInsteadOfPrompting`](#permissions-denyinsteadofprompting) | 拒绝原本需要等待[权限提示](https://code.claude.com/docs/zh-CN/permissions.md#permission-system)的工具调用,使无人值守的会话能够继续工作 | 权限设置 | 用户或托管 |151| [`permissions.denyInsteadOfPrompting`](#permissions-denyinsteadofprompting) | 拒绝需要等待[权限提示](https://code.claude.com/docs/zh-CN/permissions.md#permission-system)的工具调用,使无人值守的会话能够继续工作 | 权限设置 | 用户或托管 |
152| [`permissions.disableBypassPermissionsMode`](#permissions-disablebypasspermissionsmode) | 阻止任何人进入 [bypassPermissions 模式](https://code.claude.com/docs/zh-CN/permission-modes.md#skip-all-checks-with-bypasspermissions-mode) | 权限设置 | 任意文件 |152| [`permissions.disableBypassPermissionsMode`](#permissions-disablebypasspermissionsmode) | 阻止任何人进入 [bypassPermissions 模式](https://code.claude.com/docs/zh-CN/permission-modes.md#skip-all-checks-with-bypasspermissions-mode) | 权限设置 | 任意文件 |
153| [`plansDirectory`](#plansdirectory) | 选择[计划模式](https://code.claude.com/docs/zh-CN/permission-modes.md#analyze-before-you-edit-with-plan-mode)写入计划文件的位置 | 记忆与上下文 | 任意文件 |153| [`plansDirectory`](#plansdirectory) | 选择[计划模式](https://code.claude.com/docs/zh-CN/permission-modes.md#analyze-before-you-edit-with-plan-mode)写入计划文件的位置 | 记忆与上下文 | 任意文件 |
154| [`pluginConfigs`](#pluginconfigs) | 存储您在[插件](https://code.claude.com/docs/zh-CN/plugins/overview.md)配置对话框中给出的答案 | 插件与 skill | 用户或托管 |154| [`pluginConfigs`](#pluginconfigs) | 存储您在[插件](https://code.claude.com/docs/zh-CN/plugins/overview.md)配置对话框中给出的答案 | 插件与 skill | 用户或托管 |
155| [`pluginSuggestionMarketplaces`](#pluginsuggestionmarketplaces) | 选择哪些[市场](https://code.claude.com/docs/zh-CN/plugins/org.md#restrict-what-users-can-install)可以在 `/plugin` 中显示插件安装建议 | 插件与 skill | 托管 |155| [`pluginSuggestionMarketplaces`](#pluginsuggestionmarketplaces) | 选择哪些[市场](https://code.claude.com/docs/zh-CN/plugins/org.md#restrict-what-users-can-install)可以在 `/plugin` 中显示插件安装建议 | 插件与 skill | 托管 |
156| [`pluginTrustMessage`](#plugintrustmessage) | 在[插件](https://code.claude.com/docs/zh-CN/plugins/overview.md)信任警告中添加您自己的文字 | 插件与 skill | 托管 |156| [`pluginTrustMessage`](#plugintrustmessage) | 向[插件](https://code.claude.com/docs/zh-CN/plugins/overview.md)信任警告中添加您自己的文本 | 插件与 skill | 托管 |
157| [`policyHelper`](#policyhelper) | 在启动时运行一个计算[托管设置](https://code.claude.com/docs/zh-CN/managed-settings.md#compute-the-policy-with-a-helper-program)的可执行文件 | 企业与托管设置 | 托管 |157| [`policyHelper`](#policyhelper) | 在启动时运行一个计算[托管设置](https://code.claude.com/docs/zh-CN/managed-settings.md#compute-the-policy-with-a-helper-program)的可执行文件 | 企业与托管设置 | 托管 |
158| [`policyHelper.path`](#policyhelper-path) | 指定 Claude Code 运行的[辅助可执行文件](https://code.claude.com/docs/zh-CN/managed-settings.md#compute-the-policy-with-a-helper-program) | 企业与托管设置 | 托管 |158| [`policyHelper.path`](#policyhelper-path) | 指定 Claude Code 运行的[辅助可执行文件](https://code.claude.com/docs/zh-CN/managed-settings.md#compute-the-policy-with-a-helper-program) | 企业与托管设置 | 托管 |
159| [`policyHelper.refreshIntervalMs`](#policyhelper-refreshintervalms) | 在后台按时间间隔重新运行[辅助程序](https://code.claude.com/docs/zh-CN/managed-settings.md#compute-the-policy-with-a-helper-program) | 企业与托管设置 | 托管 |159| [`policyHelper.refreshIntervalMs`](#policyhelper-refreshintervalms) | 按一定间隔在后台重新运行[辅助程序](https://code.claude.com/docs/zh-CN/managed-settings.md#compute-the-policy-with-a-helper-program) | 企业与托管设置 | 托管 |
160| [`policyHelper.timeoutMs`](#policyhelper-timeoutms) | 设置 Claude Code 等待[辅助程序](https://code.claude.com/docs/zh-CN/managed-settings.md#compute-the-policy-with-a-helper-program)的时长 | 企业与托管设置 | 托管 |160| [`policyHelper.timeoutMs`](#policyhelper-timeoutms) | 设置 Claude Code 等待[辅助程序](https://code.claude.com/docs/zh-CN/managed-settings.md#compute-the-policy-with-a-helper-program)的时长 | 企业与托管设置 | 托管 |
161| [`preferredNotifChannel`](#preferrednotifchannel) | 为任务完成选择[终端响铃或桌面通知](https://code.claude.com/docs/zh-CN/terminal-config.md#get-a-terminal-bell-or-notification) | 远程、桌面与通知 | 任意文件 |161| [`preferredNotifChannel`](#preferrednotifchannel) | 为任务完成选择[终端响铃或桌面通知](https://code.claude.com/docs/zh-CN/terminal-config.md#get-a-terminal-bell-or-notification) | 远程、桌面与通知 | 任意文件 |
162| [`prefersReducedMotion`](#prefersreducedmotion) | [减少或关闭](https://code.claude.com/docs/zh-CN/accessibility.md#accessibility-settings)加载指示器、闪烁微光和闪屏动画 | 界面与终端 | 任意文件 |162| [`prefersReducedMotion`](#prefersreducedmotion) | [减少或关闭](https://code.claude.com/docs/zh-CN/accessibility.md#accessibility-settings)加载指示器、微光和闪烁动画 | 界面与终端 | 任意文件 |
163| [`prependPlugins`](#prependplugins) | 在用户安装的每个 mod 之前运行您组织的 [mod](https://code.claude.com/docs/zh-CN/plugins/mods/admin.md) | 插件与 skill | 用户或托管 |163| [`prependPlugins`](#prependplugins) | 在用户安装的每个 mod 之前运行您组织的 [mod](https://code.claude.com/docs/zh-CN/plugins/mods/admin.md) | 插件与 skill | 用户或托管 |
164| [`processWrapper`](#processwrapper) | 在 macOS 和 Linux 上通过[企业启动器](https://code.claude.com/docs/zh-CN/corporate-launcher.md)运行 Claude Code 的后台进程 | Agent、会话与 worktree | 用户或托管 |164| [`processWrapper`](#processwrapper) | 在 macOS 和 Linux 上通过[企业启动器](https://code.claude.com/docs/zh-CN/corporate-launcher.md)运行 Claude Code 的后台进程 | Agent、会话与 worktree | 用户或托管 |
165| [`promptCacheTtl`](#promptcachettl) | 选择主对话的[提示缓存生命周期](https://code.claude.com/docs/zh-CN/prompt-caching.md#cache-lifetime) | 模型与回复 | 任意文件 |165| [`promptCacheTtl`](#promptcachettl) | 为主对话选择[提示缓存生命周期](https://code.claude.com/docs/zh-CN/prompt-caching.md#cache-lifetime) | 模型与回复 | 任意文件 |
166| [`promptSuggestionEnabled`](#promptsuggestionenabled) | 隐藏输入框中灰色显示的[提示词建议](https://code.claude.com/docs/zh-CN/interactive-mode.md#prompt-suggestions) | 界面与终端 | 任意文件 |166| [`promptSuggestionEnabled`](#promptsuggestionenabled) | 隐藏输入框中灰色显示的[提示词建议](https://code.claude.com/docs/zh-CN/interactive-mode.md#prompt-suggestions) | 界面与终端 | 任意文件 |
167| [`prStatusFooterEnabled`](#prstatusfooterenabled) | 关闭输入框页脚中的 [PR 审查状态](https://code.claude.com/docs/zh-CN/interactive-mode.md#pr-review-status)徽标及其背后的 Pull Request 检查 | 全局配置设置 | 全局配置 |167| [`prStatusFooterEnabled`](#prstatusfooterenabled) | 关闭提示栏底部的 [PR 审查状态](https://code.claude.com/docs/zh-CN/interactive-mode.md#pr-review-status)徽标及其背后的 Pull Request 检查 | 全局配置设置 | 全局配置 |
168| [`prUrlTemplate`](#prurltemplate) | 将 PR 链接指向内部代码审查工具而不是 github.com | Git 与署名 | 任意文件 |168| [`prUrlTemplate`](#prurltemplate) | 将 PR 链接指向内部代码审查工具而非 github.com | Git 与署名 | 任意文件 |
169| [`remote.defaultEnvironmentId`](#remote-defaultenvironmentid) | 为 `claude --cloud` 选择默认的[云环境](https://code.claude.com/docs/zh-CN/cloud-environments.md);自托管的 `ccpool_` ID 仅从用户设置、托管设置和 `--settings` 中读取 | 远程、桌面与通知 | 任意文件 |169| [`remote.defaultEnvironmentId`](#remote-defaultenvironmentid) | 为 `claude --cloud` 选择默认[云环境](https://code.claude.com/docs/zh-CN/cloud-environments.md);自托管的 `ccpool_` ID 仅从用户设置、托管设置和 `--settings` 中读取 | 远程、桌面与通知 | 任意文件 |
170| [`remoteControlAtStartup`](#remotecontrolatstartup) | 在会话启动时自动连接 [Remote Control](https://code.claude.com/docs/zh-CN/remote-control.md#enable-remote-control-for-all-sessions) | 远程、桌面与通知 | 任意文件 |170| [`remoteControlAtStartup`](#remotecontrolatstartup) | 在会话启动时自动连接 [Remote Control](https://code.claude.com/docs/zh-CN/remote-control.md#enable-remote-control-for-all-sessions) | 远程、桌面与通知 | 任意文件 |
171| [`requiredMaximumVersion`](#requiredmaximumversion) | 当版本高于您组织允许的版本时[拒绝启动](https://code.claude.com/docs/zh-CN/setup.md#pin-a-minimum-version) | 更新与版本 | 托管 |171| [`requiredMaximumVersion`](#requiredmaximumversion) | 在版本高于您组织允许的版本时[拒绝启动](https://code.claude.com/docs/zh-CN/setup.md#pin-a-minimum-version) | 更新与版本 | 托管 |
172| [`requiredMinimumVersion`](#requiredminimumversion) | 当版本低于您组织要求的版本时[拒绝启动](https://code.claude.com/docs/zh-CN/setup.md#pin-a-minimum-version) | 更新与版本 | 托管 |172| [`requiredMinimumVersion`](#requiredminimumversion) | 在版本低于您组织要求的版本时[拒绝启动](https://code.claude.com/docs/zh-CN/setup.md#pin-a-minimum-version) | 更新与版本 | 托管 |
173| [`respectGitignore`](#respectgitignore) | 将被 gitignore 忽略的文件排除在 [`@` 文件选择器](https://code.claude.com/docs/zh-CN/interactive-mode#quick-commands)之外 | 界面与终端 | 任意文件 |173| [`respectGitignore`](#respectgitignore) | 将被 gitignore 的文件排除在 [`@` 文件选择器](https://code.claude.com/docs/zh-CN/interactive-mode#quick-commands)之外 | 界面与终端 | 任意文件 |
174| [`respondToBashCommands`](#respondtobashcommands) | 阻止 Claude 在 [`!` shell 命令](https://code.claude.com/docs/zh-CN/interactive-mode#shell-mode-with-prefix)运行后作出回复 | 界面与终端 | 任意文件 |174| [`respondToBashCommands`](#respondtobashcommands) | 阻止 Claude 在 [`!` shell 命令](https://code.claude.com/docs/zh-CN/interactive-mode#shell-mode-with-prefix)运行后作出回复 | 界面与终端 | 任意文件 |
175| [`sandbox`](#sandbox) | 在 macOS、Linux 和 WSL2 上[将 Bash 命令与您的文件系统和网络隔离](https://code.claude.com/docs/zh-CN/sandboxing.md) | 沙箱设置 | 任意文件 |175| [`sandbox`](#sandbox) | 在 macOS、Linux 和 WSL2 上[将 Bash 命令与您的文件系统和网络隔离](https://code.claude.com/docs/zh-CN/sandboxing.md) | 沙箱设置 | 任意文件 |
176| [`sandbox.allowAppleEvents`](#sandbox-allowappleevents) | 允许[沙箱](https://code.claude.com/docs/zh-CN/sandboxing.md)中的命令在 macOS 上发送 Apple Events | 沙箱设置 | 用户或托管 |176| [`sandbox.allowAppleEvents`](#sandbox-allowappleevents) | 允许[沙箱中的](https://code.claude.com/docs/zh-CN/sandboxing.md)命令在 macOS 上发送 Apple Events | 沙箱设置 | 用户或托管 |
177| [`sandbox.allowNestedUserNamespaces`](#sandbox-allownestedusernamespaces) | 允许[沙箱](https://code.claude.com/docs/zh-CN/sandboxing.md#chromium-or-rootless-podman-fails-inside-the-sandbox-on-linux)中的命令在 Linux 和 WSL2 上创建用户命名空间 | 沙箱设置 | 用户或托管 |177| [`sandbox.allowNestedUserNamespaces`](#sandbox-allownestedusernamespaces) | 允许[沙箱中的](https://code.claude.com/docs/zh-CN/sandboxing.md#chromium-or-rootless-podman-fails-inside-the-sandbox-on-linux)命令在 Linux 和 WSL2 上创建用户命名空间 | 沙箱设置 | 用户或托管 |
178| [`sandbox.allowUnsandboxedCommands`](#sandbox-allowunsandboxedcommands) | 允许 Claude 在[沙箱](https://code.claude.com/docs/zh-CN/sandboxing.md#the-unsandboxed-retry-escape-hatch)之外重试被阻止的命令,或禁止这样做 | 沙箱设置 | 任意文件 |178| [`sandbox.allowUnsandboxedCommands`](#sandbox-allowunsandboxedcommands) | 允许 Claude 在[沙箱](https://code.claude.com/docs/zh-CN/sandboxing.md#the-unsandboxed-retry-escape-hatch)外重试被阻止的命令,或禁止这样做 | 沙箱设置 | 任意文件 |
179| [`sandbox.autoAllowBashIfSandboxed`](#sandbox-autoallowbashifsandboxed) | 无需权限提示即可运行[沙箱](https://code.claude.com/docs/zh-CN/sandboxing.md#auto-allow-mode)中的命令 | 沙箱设置 | 任意文件 |179| [`sandbox.autoAllowBashIfSandboxed`](#sandbox-autoallowbashifsandboxed) | 无需权限提示即运行[沙箱中的](https://code.claude.com/docs/zh-CN/sandboxing.md#auto-allow-mode)命令 | 沙箱设置 | 任意文件 |
180| [`sandbox.bwrapPath`](#sandbox-bwrappath) | 将[沙箱](https://code.claude.com/docs/zh-CN/sandboxing.md)指向 `PATH` 之外的 bubblewrap 二进制文件 | 沙箱设置 | 托管 |180| [`sandbox.bwrapPath`](#sandbox-bwrappath) | 将[沙箱](https://code.claude.com/docs/zh-CN/sandboxing.md)指向 `PATH` 以外的 bubblewrap 二进制文件 | 沙箱设置 | 托管 |
181| [`sandbox.credentials`](#sandbox-credentials) | 在[沙箱](https://code.claude.com/docs/zh-CN/sandboxing.md#protect-credentials)中隐藏或掩码凭据文件和变量 | 沙箱设置 | 任意文件 |181| [`sandbox.credentials`](#sandbox-credentials) | 在[沙箱](https://code.claude.com/docs/zh-CN/sandboxing.md#protect-credentials)内隐藏或掩码处理凭据文件和变量 | 沙箱设置 | 任意文件 |
182| [`sandbox.credentials.allowPlaintextInject`](#sandbox-credentials-allowplaintextinject) | 允许[已掩码的凭据](https://code.claude.com/docs/zh-CN/sandboxing.md#mask-credentials)在受信任的测试网络上发送到纯 HTTP 服务 | 沙箱设置 | 用户或托管 |182| [`sandbox.credentials.allowPlaintextInject`](#sandbox-credentials-allowplaintextinject) | 在受信任的测试网络上,允许[已掩码的凭据](https://code.claude.com/docs/zh-CN/sandboxing.md#mask-credentials)发送到纯 HTTP 服务 | 沙箱设置 | 用户或托管 |
183| [`sandbox.credentials.awsPairs`](#sandbox-credentials-awspairs) | 将自定义命名的 AWS 密钥变量关联为一个凭据以进行[重新签名](https://code.claude.com/docs/zh-CN/sandboxing.md#re-sign-aws-requests) | 沙箱设置 | 用户或托管 |183| [`sandbox.credentials.awsPairs`](#sandbox-credentials-awspairs) | 将自定义名称的 AWS 密钥变量关联为一个凭据,用于[重新签名](https://code.claude.com/docs/zh-CN/sandboxing.md#re-sign-aws-requests) | 沙箱设置 | 用户或托管 |
184| [`sandbox.credentials.envVars`](#sandbox-credentials-envvars) | 在[沙箱](https://code.claude.com/docs/zh-CN/sandboxing.md#mask-environment-variables)中取消设置或掩码某个环境变量 | 沙箱设置 | 任意文件 |184| [`sandbox.credentials.envVars`](#sandbox-credentials-envvars) | 在[沙箱](https://code.claude.com/docs/zh-CN/sandboxing.md#mask-environment-variables)内取消设置或掩码处理环境变量 | 沙箱设置 | 任意文件 |
185| [`sandbox.credentials.files`](#sandbox-credentials-files) | 在[沙箱](https://code.claude.com/docs/zh-CN/sandboxing.md#mask-credential-files)中阻止或掩码对凭据文件的读取 | 沙箱设置 | 任意文件 |185| [`sandbox.credentials.files`](#sandbox-credentials-files) | 在[沙箱](https://code.claude.com/docs/zh-CN/sandboxing.md#mask-credential-files)内阻止读取凭据文件或对其进行掩码处理 | 沙箱设置 | 任意文件 |
186| [`sandbox.credentials.sigv4`](#sandbox-credentials-sigv4) | 选择流式、预签名或 [SigV4A AWS 请求](https://code.claude.com/docs/zh-CN/sandboxing.md#re-sign-aws-requests)是失败还是直接放行 | 沙箱设置 | 用户或托管 |186| [`sandbox.credentials.sigv4`](#sandbox-credentials-sigv4) | 选择流式、预签名或 [SigV4A AWS 请求](https://code.claude.com/docs/zh-CN/sandboxing.md#re-sign-aws-requests)是失败还是直接放行 | 沙箱设置 | 用户或托管 |
187| [`sandbox.enabled`](#sandbox-enabled) | 在 macOS、Linux 和 WSL2 上开启 [Bash 沙箱隔离](https://code.claude.com/docs/zh-CN/sandboxing.md#get-started) | 沙箱设置 | 任意文件 |187| [`sandbox.enabled`](#sandbox-enabled) | 在 macOS、Linux 和 WSL2 上开启 [Bash 沙箱隔离](https://code.claude.com/docs/zh-CN/sandboxing.md#get-started) | 沙箱设置 | 任意文件 |
188| [`sandbox.enableWeakerNestedSandbox`](#sandbox-enableweakernestedsandbox) | 在非特权容器内运行 Linux [沙箱](https://code.claude.com/docs/zh-CN/sandboxing.md) | 沙箱设置 | 任意文件 |188| [`sandbox.enableWeakerNestedSandbox`](#sandbox-enableweakernestedsandbox) | 在非特权容器内运行 Linux [沙箱](https://code.claude.com/docs/zh-CN/sandboxing.md) | 沙箱设置 | 任意文件 |
189| [`sandbox.enableWeakerNetworkIsolation`](#sandbox-enableweakernetworkisolation) | 允许 `gh`、`gcloud` 和 `terraform` 在 macOS 上的[沙箱](https://code.claude.com/docs/zh-CN/sandboxing.md#go-based-clis-fail-tls-verification-on-macos)中于 MITM 代理之后验证 TLS | 沙箱设置 | 任意文件 |189| [`sandbox.enableWeakerNetworkIsolation`](#sandbox-enableweakernetworkisolation) | 在 macOS 上,允许 `gh`、`gcloud` 和 `terraform` 在[沙箱](https://code.claude.com/docs/zh-CN/sandboxing.md#go-based-clis-fail-tls-verification-on-macos)内通过 MITM 代理验证 TLS | 沙箱设置 | 任意文件 |
190| [`sandbox.excludedCommands`](#sandbox-excludedcommands) | 指定 Claude Code 可以在[沙箱](https://code.claude.com/docs/zh-CN/sandboxing.md)之外运行的命令 | 沙箱设置 | 任意文件 |190| [`sandbox.excludedCommands`](#sandbox-excludedcommands) | 指定 Claude Code 可以在[沙箱](https://code.claude.com/docs/zh-CN/sandboxing.md)外运行的命令 | 沙箱设置 | 任意文件 |
191| [`sandbox.failIfUnavailable`](#sandbox-failifunavailable) | 当[沙箱](https://code.claude.com/docs/zh-CN/sandboxing.md)无法启动时拒绝启动,而不是在无沙箱的情况下运行;在 Anthropic 托管的环境中除外 | 沙箱设置 | 任意文件 |191| [`sandbox.failIfUnavailable`](#sandbox-failifunavailable) | 当[沙箱](https://code.claude.com/docs/zh-CN/sandboxing.md)无法启动时拒绝启动,而不是在无沙箱的情况下运行;在 Anthropic 托管的环境中除外 | 沙箱设置 | 任意文件 |
192| [`sandbox.filesystem`](#sandbox-filesystem) | 控制[沙箱](https://code.claude.com/docs/zh-CN/sandboxing.md#filesystem-isolation)中的命令可以读取和写入哪些路径 | 沙箱设置 | 任意文件 |192| [`sandbox.filesystem`](#sandbox-filesystem) | 控制[沙箱中的](https://code.claude.com/docs/zh-CN/sandboxing.md#filesystem-isolation)命令可以读写哪些路径 | 沙箱设置 | 任意文件 |
193| [`sandbox.filesystem.allowManagedReadPathsOnly`](#sandbox-filesystem-allowmanagedreadpathsonly) | 阻止开发者重新开放[您的组织已屏蔽的读取路径](https://code.claude.com/docs/zh-CN/sandboxing.md#keep-developers-from-widening-the-policy) | 沙箱设置 | 托管 |193| [`sandbox.filesystem.allowManagedReadPathsOnly`](#sandbox-filesystem-allowmanagedreadpathsonly) | 阻止开发者重新开放[您的组织已屏蔽的读取路径](https://code.claude.com/docs/zh-CN/sandboxing.md#keep-developers-from-widening-the-policy) | 沙箱设置 | 托管 |
194| [`sandbox.filesystem.allowRead`](#sandbox-filesystem-allowread) | 在 [`denyRead`](#sandbox-filesystem-denyread) 屏蔽的区域内重新开放读取 | 沙箱设置 | 任意文件 |194| [`sandbox.filesystem.allowRead`](#sandbox-filesystem-allowread) | 在 [`denyRead`](#sandbox-filesystem-denyread) 屏蔽的区域内重新开放读取 | 沙箱设置 | 任意文件 |
195| [`sandbox.filesystem.allowWrite`](#sandbox-filesystem-allowwrite) | 添加[沙箱](https://code.claude.com/docs/zh-CN/sandboxing.md)中的命令可以写入的路径 | 沙箱设置 | 任意文件 |195| [`sandbox.filesystem.allowWrite`](#sandbox-filesystem-allowwrite) | 添加[沙箱中的](https://code.claude.com/docs/zh-CN/sandboxing.md)命令可以写入的路径 | 沙箱设置 | 任意文件 |
196| [`sandbox.filesystem.denyRead`](#sandbox-filesystem-denyread) | 阻止[沙箱](https://code.claude.com/docs/zh-CN/sandboxing.md)中的命令读取特定路径 | 沙箱设置 | 任意文件 |196| [`sandbox.filesystem.denyRead`](#sandbox-filesystem-denyread) | 阻止[沙箱中的](https://code.claude.com/docs/zh-CN/sandboxing.md)命令读取特定路径 | 沙箱设置 | 任意文件 |
197| [`sandbox.filesystem.denyWrite`](#sandbox-filesystem-denywrite) | 阻止[沙箱](https://code.claude.com/docs/zh-CN/sandboxing.md)中的命令写入特定路径 | 沙箱设置 | 任意文件 |197| [`sandbox.filesystem.denyWrite`](#sandbox-filesystem-denywrite) | 阻止[沙箱中的](https://code.claude.com/docs/zh-CN/sandboxing.md)命令写入特定路径 | 沙箱设置 | 任意文件 |
198| [`sandbox.filesystem.disabled`](#sandbox-filesystem-disabled) | [关闭文件系统隔离](https://code.claude.com/docs/zh-CN/sandboxing.md#disable-filesystem-isolation),同时保留网络隔离 | 沙箱设置 | 用户或托管 |198| [`sandbox.filesystem.disabled`](#sandbox-filesystem-disabled) | [关闭文件系统隔离](https://code.claude.com/docs/zh-CN/sandboxing.md#disable-filesystem-isolation),同时保留网络隔离 | 沙箱设置 | 用户或托管 |
199| [`sandbox.ignoreViolations`](#sandbox-ignoreviolations) | 对命令预期会探测的路径静默违规报告 | 沙箱设置 | 任意文件 |199| [`sandbox.ignoreViolations`](#sandbox-ignoreviolations) | 对命令预期会探测的路径不再报告违规 | 沙箱设置 | 任意文件 |
200| [`sandbox.network`](#sandbox-network) | 控制[沙箱](https://code.claude.com/docs/zh-CN/sandboxing.md#network-isolation)中的命令可以访问哪些主机、端口和套接字 | 沙箱设置 | 任意文件 |200| [`sandbox.network`](#sandbox-network) | 控制[沙箱中的](https://code.claude.com/docs/zh-CN/sandboxing.md#network-isolation)命令可以访问哪些主机、端口和套接字 | 沙箱设置 | 任意文件 |
201| [`sandbox.network.allowAllUnixSockets`](#sandbox-network-allowallunixsockets) | 允许[沙箱](https://code.claude.com/docs/zh-CN/sandboxing.md)中的命令连接到所有 Unix 套接字 | 沙箱设置 | 任意文件 |201| [`sandbox.network.allowAllUnixSockets`](#sandbox-network-allowallunixsockets) | 允许[沙箱中的](https://code.claude.com/docs/zh-CN/sandboxing.md)命令连接到所有 Unix 套接字 | 沙箱设置 | 任意文件 |
202| [`sandbox.network.allowedDomains`](#sandbox-network-alloweddomains) | 预先允许域名,使[沙箱](https://code.claude.com/docs/zh-CN/sandboxing.md)中的命令访问这些域名时不再提示 | 沙箱设置 | 任意文件 |202| [`sandbox.network.allowedDomains`](#sandbox-network-alloweddomains) | 预先允许域名,使[沙箱中的](https://code.claude.com/docs/zh-CN/sandboxing.md)命令无需为其提示 | 沙箱设置 | 任意文件 |
203| [`sandbox.network.allowLocalBinding`](#sandbox-network-allowlocalbinding) | 允许[沙箱](https://code.claude.com/docs/zh-CN/sandboxing.md)中的命令在 macOS 上监听网络端口并连接到 localhost | 沙箱设置 | 任意文件 |203| [`sandbox.network.allowLocalBinding`](#sandbox-network-allowlocalbinding) | 在 macOS 上允许[沙箱中的](https://code.claude.com/docs/zh-CN/sandboxing.md)命令监听网络端口并连接到 localhost | 沙箱设置 | 任意文件 |
204| [`sandbox.network.allowMachLookup`](#sandbox-network-allowmachlookup) | 允许 macOS 上[沙箱](https://code.claude.com/docs/zh-CN/sandboxing.md)中的工具(如 iOS Simulator 或 Playwright)访问其 XPC 服务 | 沙箱设置 | 任意文件 |204| [`sandbox.network.allowMachLookup`](#sandbox-network-allowmachlookup) | 允许 macOS 上[沙箱中的](https://code.claude.com/docs/zh-CN/sandboxing.md)工具(例如 iOS Simulator 或 Playwright)访问其 XPC 服务 | 沙箱设置 | 任意文件 |
205| [`sandbox.network.allowManagedDomainsOnly`](#sandbox-network-allowmanageddomainsonly) | 将网络允许列表锁定为[托管设置](https://code.claude.com/docs/zh-CN/sandboxing.md#keep-developers-from-widening-the-policy) | 沙箱设置 | 托管 |205| [`sandbox.network.allowManagedDomainsOnly`](#sandbox-network-allowmanageddomainsonly) | 将网络允许列表锁定为[托管设置](https://code.claude.com/docs/zh-CN/sandboxing.md#keep-developers-from-widening-the-policy) | 沙箱设置 | 托管 |
206| [`sandbox.network.allowUnixSockets`](#sandbox-network-allowunixsockets) | 列出[沙箱](https://code.claude.com/docs/zh-CN/sandboxing.md)中的命令在 macOS 上可以使用的 Unix 套接字路径 | 沙箱设置 | 任意文件 |206| [`sandbox.network.allowUnixSockets`](#sandbox-network-allowunixsockets) | 列出 macOS 上[沙箱中的](https://code.claude.com/docs/zh-CN/sandboxing.md)命令可以使用的 Unix 套接字路径 | 沙箱设置 | 任意文件 |
207| [`sandbox.network.deniedDomains`](#sandbox-network-denieddomains) | 为[沙箱](https://code.claude.com/docs/zh-CN/sandboxing.md)中的命令屏蔽域名,即使这些域名位于允许的通配符范围内 | 沙箱设置 | 任意文件 |207| [`sandbox.network.deniedDomains`](#sandbox-network-denieddomains) | 为[沙箱中的](https://code.claude.com/docs/zh-CN/sandboxing.md)命令屏蔽域名,即使其位于允许的通配符范围内 | 沙箱设置 | 任意文件 |
208| [`sandbox.network.httpProxyPort`](#sandbox-network-httpproxyport) | 通过您自己的代理路由[沙箱](https://code.claude.com/docs/zh-CN/sandboxing.md#custom-proxy-configuration)的 HTTP 流量 | 沙箱设置 | 任意文件 |208| [`sandbox.network.httpProxyPort`](#sandbox-network-httpproxyport) | 通过您自己的代理路由[沙箱](https://code.claude.com/docs/zh-CN/sandboxing.md#custom-proxy-configuration) HTTP 流量 | 沙箱设置 | 任意文件 |
209| [`sandbox.network.socksProxyPort`](#sandbox-network-socksproxyport) | 通过您自己的代理路由[沙箱](https://code.claude.com/docs/zh-CN/sandboxing.md#custom-proxy-configuration)的 SOCKS 流量 | 沙箱设置 | 任意文件 |209| [`sandbox.network.socksProxyPort`](#sandbox-network-socksproxyport) | 通过您自己的代理路由[沙箱](https://code.claude.com/docs/zh-CN/sandboxing.md#custom-proxy-configuration) SOCKS 流量 | 沙箱设置 | 任意文件 |
210| [`sandbox.network.strictAllowlist`](#sandbox-network-strictallowlist) | 直接拒绝[允许列表](https://code.claude.com/docs/zh-CN/sandboxing.md#network-isolation)之外的主机,而不是进行提示 | 沙箱设置 | 用户或托管 |210| [`sandbox.network.strictAllowlist`](#sandbox-network-strictallowlist) | 直接拒绝[允许列表](https://code.claude.com/docs/zh-CN/sandboxing.md#network-isolation)以外的主机,而不是进行提示 | 沙箱设置 | 用户或托管 |
211| [`sandbox.network.tlsTerminate`](#sandbox-network-tlsterminate) | 让[沙箱](https://code.claude.com/docs/zh-CN/sandboxing.md#network-isolation)代理终止 TLS,以便读取 HTTPS 请求 | 沙箱设置 | 用户或托管 |211| [`sandbox.network.tlsTerminate`](#sandbox-network-tlsterminate) | 让[沙箱](https://code.claude.com/docs/zh-CN/sandboxing.md#network-isolation)代理终止 TLS,以便读取 HTTPS 请求 | 沙箱设置 | 用户或托管 |
212| [`sandbox.ripgrep`](#sandbox-ripgrep) | 在[沙箱](https://code.claude.com/docs/zh-CN/sandboxing.md)中使用您自己的 ripgrep 二进制文件 | 沙箱设置 | 用户或托管 |212| [`sandbox.ripgrep`](#sandbox-ripgrep) | 在[沙箱](https://code.claude.com/docs/zh-CN/sandboxing.md)内使用您自己的 ripgrep 二进制文件 | 沙箱设置 | 用户或托管 |
213| [`sandbox.socatPath`](#sandbox-socatpath) | 将[沙箱](https://code.claude.com/docs/zh-CN/sandboxing.md)代理指向 `PATH` 之外的 `socat` 二进制文件 | 沙箱设置 | 托管 |213| [`sandbox.socatPath`](#sandbox-socatpath) | 将[沙箱](https://code.claude.com/docs/zh-CN/sandboxing.md)代理指向 `PATH` 以外的 `socat` 二进制文件 | 沙箱设置 | 托管 |
214| [`showClearContextOnPlanAccept`](#showclearcontextonplanaccept) | 在[计划接受界面](https://code.claude.com/docs/zh-CN/permission-modes.md#review-and-approve-a-plan)上显示“清除上下文”选项 | 界面与终端 | 任意文件 |214| [`showClearContextOnPlanAccept`](#showclearcontextonplanaccept) | 在[计划接受界面](https://code.claude.com/docs/zh-CN/permission-modes.md#review-and-approve-a-plan)上显示“清除上下文”选项 | 界面与终端 | 任意文件 |
215| [`showThinkingSummaries`](#showthinkingsummaries) | 查看 Claude [思考](https://code.claude.com/docs/zh-CN/model-config.md#extended-thinking)过程的摘要,而不是折叠的占位内容 | 模型与回复 | 任意文件 |215| [`showThinkingSummaries`](#showthinkingsummaries) | 查看 Claude [思考](https://code.claude.com/docs/zh-CN/model-config.md#extended-thinking)的摘要,而非折叠的占位内容 | 模型与回复 | 任意文件 |
216| [`showTurnDuration`](#showturnduration) | 隐藏每条回复后显示的“Cooked for”时长 | 界面与终端 | 任意文件 |216| [`showTurnDuration`](#showturnduration) | 隐藏每条回复后显示的“Cooked for”时长 | 界面与终端 | 任意文件 |
217| [`skillListingBudgetFraction`](#skilllistingbudgetfraction) | 为 [skill 列表](https://code.claude.com/docs/zh-CN/skills.md#skill-descriptions-are-cut-short)预留更多或更少的上下文 | 记忆与上下文 | 任意文件 |217| [`skillListingBudgetFraction`](#skilllistingbudgetfraction) | 为 [skill 列表](https://code.claude.com/docs/zh-CN/skills.md#skill-descriptions-are-cut-short)预留更多或更少的上下文 | 记忆与上下文 | 任意文件 |
218| [`skillListingMaxDescChars`](#skilllistingmaxdescchars) | 限制 [skill 列表](https://code.claude.com/docs/zh-CN/skills.md#skill-descriptions-are-cut-short)中每个 skill 描述的长度 | 记忆与上下文 | 任意文件 |218| [`skillListingMaxDescChars`](#skilllistingmaxdescchars) | 限制 [skill 列表](https://code.claude.com/docs/zh-CN/skills.md#skill-descriptions-are-cut-short)中每个 skill 描述的长度 | 记忆与上下文 | 任意文件 |
219| [`skillOverrides`](#skilloverrides) | 无需编辑 SKILL.md 即可[隐藏或折叠某个 skill](https://code.claude.com/docs/zh-CN/skills.md#override-skill-visibility-from-settings) | 插件与 skill | 任意文件 |219| [`skillOverrides`](#skilloverrides) | 无需编辑 SKILL.md 即可[隐藏或折叠 skill](https://code.claude.com/docs/zh-CN/skills.md#override-skill-visibility-from-settings) | 插件与 skill | 任意文件 |
220| [`skipAutoPermissionPrompt`](#skipautopermissionprompt) | 跳过您首次自行进入(而非通过内置默认值进入)[自动模式](https://code.claude.com/docs/zh-CN/permission-modes.md#eliminate-prompts-with-auto-mode)时 Claude Code 显示的一次性提示 | 权限设置 | 用户或托管 |220| [`skipAutoPermissionPrompt`](#skipautopermissionprompt) | 跳过您首次自行进入(而非通过内置默认值进入)[自动模式](https://code.claude.com/docs/zh-CN/permission-modes.md#eliminate-prompts-with-auto-mode)时 Claude Code 显示的一次性通知 | 权限设置 | 用户或托管 |
221| [`skipDangerousModePermissionPrompt`](#skipdangerousmodepermissionprompt) | 跳过进入 [bypassPermissions 模式](https://code.claude.com/docs/zh-CN/permission-modes.md#skip-all-checks-with-bypasspermissions-mode)之前的确认对话框 | 权限设置 | 用户、本地或托管 |221| [`skipDangerousModePermissionPrompt`](#skipdangerousmodepermissionprompt) | 跳过进入 [bypassPermissions 模式](https://code.claude.com/docs/zh-CN/permission-modes.md#skip-all-checks-with-bypasspermissions-mode)前的确认对话框 | 权限设置 | 用户、本地或托管 |
222| [`skipWebFetchPreflight`](#skipwebfetchpreflight) | 在无法访问 Anthropic 时跳过 [WebFetch 主机名检查](https://code.claude.com/docs/zh-CN/tools-reference.md#webfetch-tool-behavior) | 隐私与遥测 | 任意文件 |222| [`skipWebFetchPreflight`](#skipwebfetchpreflight) | 在无法访问 Anthropic 时跳过 [WebFetch 主机名检查](https://code.claude.com/docs/zh-CN/tools-reference.md#webfetch-tool-behavior) | 隐私与遥测 | 任意文件 |
223| [`spellcheck`](#spellcheck) | 使用您安装的[拼写检查器](https://code.claude.com/docs/zh-CN/interactive-mode.md#check-spelling-as-you-type)为输入框中拼写错误的单词添加下划线 | 界面与终端 | 用户或托管 |223| [`spellcheck`](#spellcheck) | 使用您安装的[拼写检查器](https://code.claude.com/docs/zh-CN/interactive-mode.md#check-spelling-as-you-type)为输入框中拼写错误的单词添加下划线 | 界面与终端 | 用户或托管 |
224| [`spinnerTipsEnabled`](#spinnertipsenabled) | 隐藏 Claude 工作时加载指示器中的提示 | 界面与终端 | 任意文件 |224| [`spinnerTipsEnabled`](#spinnertipsenabled) | 在 Claude 工作时隐藏加载指示器中的提示 | 界面与终端 | 任意文件 |
225| [`spinnerTipsOverride`](#spinnertipsoverride) | 向加载指示器的轮播中添加您自己的提示,或替换内置提示 | 界面与终端 | 任意文件 |225| [`spinnerTipsOverride`](#spinnertipsoverride) | 将您自己的提示添加到加载指示器的轮播中,或替换内置提示 | 界面与终端 | 任意文件 |
226| [`spinnerVerbs`](#spinnerverbs) | 添加或替换轮次运行期间显示的动词 | 界面与终端 | 任意文件 |226| [`spinnerVerbs`](#spinnerverbs) | 添加或替换轮次运行时显示的动词 | 界面与终端 | 任意文件 |
227| [`sshConfigs`](#sshconfigs) | 向 Desktop 环境选择器添加 [SSH 连接](https://code.claude.com/docs/zh-CN/desktop.md#pre-configure-ssh-connections-for-your-team) | 远程、桌面与通知 | 用户或托管 |227| [`sshConfigs`](#sshconfigs) | 向 Desktop 环境选择器添加 [SSH 连接](https://code.claude.com/docs/zh-CN/desktop.md#pre-configure-ssh-connections-for-your-team) | 远程、桌面与通知 | 用户或托管 |
228| [`sshHostAllowlist`](#sshhostallowlist) | 限制 [Desktop SSH 会话](https://code.claude.com/docs/zh-CN/desktop.md#restrict-which-ssh-hosts-users-can-connect-to)可以访问的主机 | 远程、桌面与通知 | 托管 |228| [`sshHostAllowlist`](#sshhostallowlist) | 限制 [Desktop SSH 会话](https://code.claude.com/docs/zh-CN/desktop.md#restrict-which-ssh-hosts-users-can-connect-to)可以访问的主机 | 远程、桌面与通知 | 托管 |
229| [`sshHostCommands`](#sshhostcommands) | 向 Desktop 环境选择器添加[主机由命令提供的 SSH 连接](https://code.claude.com/docs/zh-CN/desktop.md#create-an-ssh-connection-from-a-command) | 远程、桌面与通知 | 用户或托管 |229| [`sshHostCommands`](#sshhostcommands) | 向 Desktop 环境选择器添加[主机由命令提供的 SSH 连接](https://code.claude.com/docs/zh-CN/desktop.md#create-an-ssh-connection-from-a-command) | 远程、桌面与通知 | 用户或托管 |
230| [`statusLine`](#statusline) | 运行您自己的命令,在输入框下方渲染[状态栏](https://code.claude.com/docs/zh-CN/statusline.md) | 界面与终端 | 任意文件 |230| [`statusLine`](#statusline) | 运行您自己的命令,在提示栏下方渲染[状态栏](https://code.claude.com/docs/zh-CN/statusline.md) | 界面与终端 | 任意文件 |
231| [`strictKnownMarketplaces`](#strictknownmarketplaces) | 通过允许列表限定用户可以添加并从中安装的[市场](https://code.claude.com/docs/zh-CN/plugins/overview.md)来源 | 插件与 skill | 托管 |231| [`strictKnownMarketplaces`](#strictknownmarketplaces) | 设置用户可以添加和从中安装的[市场](https://code.claude.com/docs/zh-CN/plugins/overview.md)来源的允许列表 | 插件与 skill | 托管 |
232| [`strictPluginOnlyCustomization`](#strictpluginonlycustomization) | 屏蔽来自用户和项目来源的 [skill](https://code.claude.com/docs/zh-CN/skills.md)、[Agent](https://code.claude.com/docs/zh-CN/sub-agents.md)、[hook](https://code.claude.com/docs/zh-CN/hooks.md) 和 [MCP 服务器](https://code.claude.com/docs/zh-CN/mcp.md) | 插件与 skill | 托管 |232| [`strictPluginOnlyCustomization`](#strictpluginonlycustomization) | 屏蔽来自用户和项目来源的 [skill](https://code.claude.com/docs/zh-CN/skills.md)、[Agent](https://code.claude.com/docs/zh-CN/sub-agents.md)、[hook](https://code.claude.com/docs/zh-CN/hooks.md) 和 [MCP 服务器](https://code.claude.com/docs/zh-CN/mcp.md) | 插件与 skill | 托管 |
233| [`strictPluginOnlyCustomization.agents`](#strictpluginonlycustomization-agents) | 屏蔽来自用户和项目来源的 [Agent](https://code.claude.com/docs/zh-CN/sub-agents.md) | 插件与 skill | 托管 |233| [`strictPluginOnlyCustomization.agents`](#strictpluginonlycustomization-agents) | 屏蔽来自用户和项目来源的 [Agent](https://code.claude.com/docs/zh-CN/sub-agents.md) | 插件与 skill | 托管 |
234| [`strictPluginOnlyCustomization.hooks`](#strictpluginonlycustomization-hooks) | 屏蔽来自用户和项目来源的 [hook](https://code.claude.com/docs/zh-CN/hooks.md) | 插件与 skill | 托管 |234| [`strictPluginOnlyCustomization.hooks`](#strictpluginonlycustomization-hooks) | 屏蔽来自用户和项目来源的 [hook](https://code.claude.com/docs/zh-CN/hooks.md) | 插件与 skill | 托管 |
235| [`strictPluginOnlyCustomization.mcp`](#strictpluginonlycustomization-mcp) | 屏蔽来自用户和项目来源的 [MCP 服务器](https://code.claude.com/docs/zh-CN/mcp.md) | 插件与 skill | 托管 |235| [`strictPluginOnlyCustomization.mcp`](#strictpluginonlycustomization-mcp) | 屏蔽来自用户和项目来源的 [MCP 服务器](https://code.claude.com/docs/zh-CN/mcp.md) | 插件与 skill | 托管 |
236| [`strictPluginOnlyCustomization.skills`](#strictpluginonlycustomization-skills) | 屏蔽来自用户和项目来源的 [skill](https://code.claude.com/docs/zh-CN/skills.md) | 插件与 skill | 托管 |236| [`strictPluginOnlyCustomization.skills`](#strictpluginonlycustomization-skills) | 屏蔽来自用户和项目来源的 [skill](https://code.claude.com/docs/zh-CN/skills.md) | 插件与 skill | 托管 |
237| [`subagentPromptCacheTtl`](#subagentpromptcachettl) | 为子代理和主对话之外的其他请求选择[提示缓存生命周期](https://code.claude.com/docs/zh-CN/prompt-caching.md#cache-lifetime) | 模型与回复 | 任意文件 |237| [`subagentPromptCacheTtl`](#subagentpromptcachettl) | 为子代理及主对话之外的其他请求选择[提示缓存生命周期](https://code.claude.com/docs/zh-CN/prompt-caching.md#cache-lifetime) | 模型与回复 | 任意文件 |
238| [`switchModelsOnFlag`](#switchmodelsonflag) | 当[安全分类器](https://code.claude.com/docs/zh-CN/model-config.md#ask-before-switching)标记某个请求时,自动切换模型或暂停 | 模型与回复 | 任意文件 |238| [`switchModelsOnFlag`](#switchmodelsonflag) | 当[安全分类器](https://code.claude.com/docs/zh-CN/model-config.md#ask-before-switching)标记某个请求时,自动切换模型或暂停 | 模型与回复 | 任意文件 |
239| [`syncClaudeAiPlugins`](#syncclaudeaiplugins) | 停止加载[在您的 claude.ai 账户上启用的插件](https://code.claude.com/docs/zh-CN/plugins/loading.md#synced-plugins),并停止下载新插件 | 插件与 skill | 用户、本地或托管 |239| [`syncClaudeAiPlugins`](#syncclaudeaiplugins) | 停止加载[您的 claude.ai 账户上已启用的插件](https://code.claude.com/docs/zh-CN/plugins/loading.md#synced-plugins),并停止下载新插件 | 插件与 skill | 用户、本地或托管 |
240| [`syncClaudeAiSkills`](#syncclaudeaiskills) | 停止加载[在您的 claude.ai 账户上启用的 skill](https://code.claude.com/docs/zh-CN/skills.md#how-synced-skills-behave),并停止下载新 skill | 插件与 skill | 用户、本地或托管 |240| [`syncClaudeAiSkills`](#syncclaudeaiskills) | 停止加载[您的 claude.ai 账户上已启用的 skill](https://code.claude.com/docs/zh-CN/skills.md#how-synced-skills-behave),并停止下载新 skill | 插件与 skill | 用户、本地或托管 |
241| [`syntaxHighlightingDisabled`](#syntaxhighlightingdisabled) | 关闭 diff 和代码块中的语法高亮 | 界面与终端 | 任意文件 |241| [`syntaxHighlightingDisabled`](#syntaxhighlightingdisabled) | 关闭 diff 和代码块中的语法高亮 | 界面与终端 | 任意文件 |
242| [`taskOutputMaxChars`](#taskoutputmaxchars) | 已在 v2.1.277 中移除,其所控制大小的 `TaskOutput` 工具也一并移除 | 记忆与上下文 | 任意文件 |242| [`taskOutputMaxChars`](#taskoutputmaxchars) | 已在 v2.1.277 中移除,同时移除的还有它所限制大小的 `TaskOutput` 工具 | 记忆与上下文 | 任意文件 |
243| [`teammateDefaultModel`](#teammatedefaultmodel) | 已在 v2.1.234 中移除;有关 Claude Code 如何为队友选择模型,请参阅[指定队友和模型](https://code.claude.com/docs/zh-CN/agent-teams.md#specify-teammates-and-models) | 全局配置设置 | 全局配置 |243| [`teammateDefaultModel`](#teammatedefaultmodel) | 已在 v2.1.234 中移除;有关 Claude Code 如何为队友选择模型,请参阅[指定队友和模型](https://code.claude.com/docs/zh-CN/agent-teams.md#specify-teammates-and-models) | 全局配置设置 | 全局配置 |
244| [`teammateMode`](#teammatemode) | 选择 [agent team 队友的显示方式](https://code.claude.com/docs/zh-CN/agent-teams.md#choose-a-display-mode) | Agent、会话与 worktree | 任意文件 |244| [`teammateMode`](#teammatemode) | 选择 [agent team 队友的显示方式](https://code.claude.com/docs/zh-CN/agent-teams.md#choose-a-display-mode) | Agent、会话与 worktree | 任意文件 |
245| [`terminalProgressBarEnabled`](#terminalprogressbarenabled) | 在支持终端进度条的终端中将其隐藏 | 界面与终端 | 任意文件 |245| [`terminalProgressBarEnabled`](#terminalprogressbarenabled) | 在支持的终端中隐藏终端进度条 | 界面与终端 | 任意文件 |
246| [`terminalTitleFromRename`](#terminaltitlefromrename) | 阻止 [`/rename`](https://code.claude.com/docs/zh-CN/sessions#name-your-sessions) 和 `--name` 更改终端标签页标题 | 界面与终端 | 任意文件 |246| [`terminalTitleFromRename`](#terminaltitlefromrename) | 阻止 [`/rename`](https://code.claude.com/docs/zh-CN/sessions#name-your-sessions) 和 `--name` 更改终端标签页标题 | 界面与终端 | 任意文件 |
247| [`theme`](#theme) | 选择界面的[颜色主题](https://code.claude.com/docs/zh-CN/terminal-config.md#match-the-color-theme),内置或自定义均可 | 界面与终端 | 任意文件 |247| [`theme`](#theme) | 选择界面的[颜色主题](https://code.claude.com/docs/zh-CN/terminal-config.md#match-the-color-theme),内置或自定义均可 | 界面与终端 | 任意文件 |
248| [`timeFormat`](#timeformat) | 以 12 小时制或 24 小时制、UTC 或 strftime 模式显示界面中的时间 | 界面与终端 | 任意文件 |248| [`timeFormat`](#timeformat) | 以 12 小时制或 24 小时制、以 UTC 或使用 strftime 格式显示界面中的时间 | 界面与终端 | 任意文件 |
249| [`timeZone`](#timezone) | 以系统时区之外的时区显示界面中的时间 | 界面与终端 | 任意文件 |249| [`timeZone`](#timezone) | 以不同于系统时区的时区显示界面中的时间 | 界面与终端 | 任意文件 |
250| [`tui`](#tui) | 选择[全屏](https://code.claude.com/docs/zh-CN/fullscreen.md)或经典终端渲染器 | 界面与终端 | 任意文件 |250| [`tui`](#tui) | 选择[全屏](https://code.claude.com/docs/zh-CN/fullscreen.md)或经典终端渲染器 | 界面与终端 | 任意文件 |
251| [`ultracode`](#ultracode) | 让 Claude 无需要求即可为每个实质性任务规划[工作流](https://code.claude.com/docs/zh-CN/workflows.md#let-claude-decide-with-ultracode) | 模型与回复 | 任意文件 |251| [`ultracode`](#ultracode) | 让 Claude 无需请求即为每个实质性任务规划[工作流](https://code.claude.com/docs/zh-CN/workflows.md#let-claude-decide-with-ultracode) | 模型与回复 | 任意文件 |
252| [`useAutoModeDuringPlan`](#useautomodeduringplan) | 允许[自动模式](https://code.claude.com/docs/zh-CN/permission-modes.md#eliminate-prompts-with-auto-mode)分类器在[计划模式](https://code.claude.com/docs/zh-CN/permission-modes.md#analyze-before-you-edit-with-plan-mode)中审查 shell 命令;设为 `false` 则改为显示提示 | 权限设置 | 用户、本地或托管 |252| [`useAutoModeDuringPlan`](#useautomodeduringplan) | 允许[自动模式](https://code.claude.com/docs/zh-CN/permission-modes.md#eliminate-prompts-with-auto-mode)分类器在[计划模式](https://code.claude.com/docs/zh-CN/permission-modes.md#analyze-before-you-edit-with-plan-mode)中审查 shell 命令;设为 `false` 则改为显示提示 | 权限设置 | 用户、本地或托管 |
253| [`verbose`](#verbose) | 显示[完整的工具输出](https://code.claude.com/docs/zh-CN/cli-reference.md#cli-flags)而不是截断的摘要;两者都设置时 `viewMode` 优先 | 界面与终端 | 任意文件 |253| [`verbose`](#verbose) | 显示[完整工具输出](https://code.claude.com/docs/zh-CN/cli-reference.md#cli-flags)而非截断的摘要;两者都设置时 `viewMode` 优先 | 界面与终端 | 任意文件 |
254| [`viewMode`](#viewmode) | 让每个会话都以[默认、详细或专注视图](https://code.claude.com/docs/zh-CN/cli-reference.md#cli-flags)启动 | 界面与终端 | 任意文件 |254| [`viewMode`](#viewmode) | 以 [default、verbose 或 focus 视图](https://code.claude.com/docs/zh-CN/cli-reference.md#cli-flags)启动每个会话 | 界面与终端 | 任意文件 |
255| [`vimInsertModeRemaps`](#viminsertmoderemaps) | 将双键 [INSERT 模式序列](https://code.claude.com/docs/zh-CN/interactive-mode.md#remap-insert-mode-key-sequences)(如 `jj`)映射为 Escape | 界面与终端 | 用户或托管 |255| [`vimInsertModeRemaps`](#viminsertmoderemaps) | 将双键 [INSERT 模式序列](https://code.claude.com/docs/zh-CN/interactive-mode.md#remap-insert-mode-key-sequences)(例如 `jj`)映射为 Escape | 界面与终端 | 用户或托管 |
256| [`voice`](#voice) | 开启[语音听写](https://code.claude.com/docs/zh-CN/voice-dictation.md)并选择按住或轻按模式 | 界面与终端 | 任意文件 |256| [`voice`](#voice) | 开启[语音听写](https://code.claude.com/docs/zh-CN/voice-dictation.md)并选择按住或轻按模式 | 界面与终端 | 任意文件 |
257| [`voiceEnabled`](#voiceenabled) | 使用旧版的单键形式开启[语音听写](https://code.claude.com/docs/zh-CN/voice-dictation.md) | 界面与终端 | 任意文件 |257| [`voiceEnabled`](#voiceenabled) | 以较旧的单键形式开启[语音听写](https://code.claude.com/docs/zh-CN/voice-dictation.md) | 界面与终端 | 任意文件 |
258| [`wheelScrollAccelerationEnabled`](#wheelscrollaccelerationenabled) | 在全屏渲染中关闭[鼠标滚轮加速](https://code.claude.com/docs/zh-CN/fullscreen.md#mouse-wheel-scrolling) | 界面与终端 | 任意文件 |258| [`wheelScrollAccelerationEnabled`](#wheelscrollaccelerationenabled) | 在全屏渲染中关闭[鼠标滚轮加速](https://code.claude.com/docs/zh-CN/fullscreen.md#mouse-wheel-scrolling) | 界面与终端 | 任意文件 |
259| [`workflowKeywordTriggerEnabled`](#workflowkeywordtriggerenabled) | 允许提示词中的 `ultracode` 一词启动[工作流](https://code.claude.com/docs/zh-CN/workflows.md);设为 `false` 则输入该词时不会启动工作流 | hook 与自动化 | 任意文件 |259| [`workflowKeywordTriggerEnabled`](#workflowkeywordtriggerenabled) | 允许提示词中的 `ultracode` 一词启动[工作流](https://code.claude.com/docs/zh-CN/workflows.md);设为 `false` 则可输入该词而不启动工作流 | hook 与自动化 | 任意文件 |
260| [`workflowSizeGuideline`](#workflowsizeguideline) | 设置 Claude 在[动态工作流](https://code.claude.com/docs/zh-CN/workflows.md)中的目标 Agent 数量 | hook 与自动化 | 任意文件 |260| [`workflowSizeGuideline`](#workflowsizeguideline) | 设置 Claude 在[动态工作流](https://code.claude.com/docs/zh-CN/workflows.md)中目标使用的 Agent 数量 | hook 与自动化 | 任意文件 |
261| [`worktree`](#worktree) | 配置 Claude Code 创建 git [worktree](https://code.claude.com/docs/zh-CN/worktrees.md) 的方式 | Agent、会话与 worktree | 任意文件 |261| [`worktree`](#worktree) | 配置 Claude Code 创建 git [worktree](https://code.claude.com/docs/zh-CN/worktrees.md) 的方式 | Agent、会话与 worktree | 任意文件 |
262| [`worktree.baseRef`](#worktree-baseref) | 从远程默认分支或本地 HEAD 创建新 [worktree](https://code.claude.com/docs/zh-CN/worktrees.md) 的分支 | Agent、会话与 worktree | 任意文件 |262| [`worktree.baseRef`](#worktree-baseref) | 从远程默认分支或您的本地 HEAD 创建新 [worktree](https://code.claude.com/docs/zh-CN/worktrees.md) 的分支 | Agent、会话与 worktree | 任意文件 |
263| [`worktree.bgIsolation`](#worktree-bgisolation) | 允许后台会话在不使用 [worktree](https://code.claude.com/docs/zh-CN/worktrees.md) 的情况下编辑工作副本 | Agent、会话与 worktree | 任意文件 |263| [`worktree.bgIsolation`](#worktree-bgisolation) | 允许后台会话在不使用 [worktree](https://code.claude.com/docs/zh-CN/worktrees.md) 的情况下编辑工作副本 | Agent、会话与 worktree | 任意文件 |
264| [`worktree.location`](#worktree-location) | 选择 [Desktop SSH 会话](https://code.claude.com/docs/zh-CN/desktop.md#ssh-sessions)在远程机器上创建 worktree 的位置 | Agent、会话与 worktree | 用户 |264| [`worktree.location`](#worktree-location) | 选择 [Desktop SSH 会话](https://code.claude.com/docs/zh-CN/desktop.md#ssh-sessions)在远程机器上创建 worktree 的位置 | Agent、会话与 worktree | 用户 |
265| [`worktree.sparsePaths`](#worktree-sparsepaths) | 在每个 [worktree](https://code.claude.com/docs/zh-CN/worktrees.md) 中仅检出您需要的目录 | Agent、会话与 worktree | 任意文件 |265| [`worktree.sparsePaths`](#worktree-sparsepaths) | 在每个 [worktree](https://code.claude.com/docs/zh-CN/worktrees.md) 中仅检出您需要的目录 | Agent、会话与 worktree | 任意文件 |
670* **类型**:将模型名称映射到对象的对象,该对象可包含以下任意字段:670* **类型**:将模型名称映射到对象的对象,该对象可包含以下任意字段:
671 * `effortLevel`:`"low"`、`"medium"`、`"high"` 或 `"xhigh"` 之一671 * `effortLevel`:`"low"`、`"medium"`、`"high"` 或 `"xhigh"` 之一
672 * [`maxEffortLevel`](#maxeffortlevel):该模型可以运行的最高 effort 级别672 * [`maxEffortLevel`](#maxeffortlevel):该模型可以运行的最高 effort 级别
673 * `autoCompactWindow`:从 `100000` 到 `1000000` 的 token 数,或表示为该模型调优的窗口的 `"auto"`。[`/autocompact`](https://code.claude.com/docs/zh-CN/model-config#set-the-auto-compact-window) 会保存到此处。对于该模型,此值优先于同一设置文件中的顶层 [`autoCompactWindow`](#autocompactwindow)。需要 Claude Code v2.1.288 或更高版本673 * `autoCompactWindow`:`100000` 或更大的 token 数,或表示为该模型调优的窗口的 `"auto"`。[`/autocompact`](https://code.claude.com/docs/zh-CN/model-config#set-the-auto-compact-window) 会保存到此处。对于该模型,此值优先于同一设置文件中的顶层 [`autoCompactWindow`](#autocompactwindow)。需要 Claude Code v2.1.288 或更高版本
674* **默认值**:未设置674* **默认值**:未设置
675 675
676Claude Code 会将每个条目写在模型的规范名称下(例如 `claude-opus-5-5`),并将该模型的别名、带日期后缀的 ID、`[1m]` ID 以及可识别的提供商特定 ID 匹配到同一个条目。676Claude Code 会将每个条目写在模型的规范名称下(例如 `claude-opus-5-5`),并将该模型的别名、带日期后缀的 ID、`[1m]` ID 以及可识别的提供商特定 ID 匹配到同一个条目。
980 980
981列出即使在原本会批准它们的权限模式(例如 `acceptEdits` 或 `bypassPermissions`)下,也会提示您确认的工具使用。在 `dontAsk` 模式下,Claude Code 会拒绝匹配的工具使用,而不是发出提示。981列出即使在原本会批准它们的权限模式(例如 `acceptEdits` 或 `bypassPermissions`)下,也会提示您确认的工具使用。在 `dontAsk` 模式下,Claude Code 会拒绝匹配的工具使用,而不是发出提示。
982 982
983如果 [`PermissionRequest` hook](https://code.claude.com/docs/zh-CN/hooks#permissionrequest) 或 [mod](https://code.claude.com/docs/zh-CN/plugins/mods/overview.md#what-a-mod-can-reach) 允许,匹配的工具使用仍可在未经您批准的情况下运行。启用[沙箱自动允许](https://code.claude.com/docs/zh-CN/permissions.md#how-permissions-interact-with-sandboxing)时,沙箱中的命令可以跳过不带说明符的 `Bash` ask 规则。
984
983* **作用域**:[`Any file`](#scopes)985* **作用域**:[`Any file`](#scopes)
984* **类型**:权限规则字符串数组986* **类型**:权限规则字符串数组
985* **默认值**:未设置987* **默认值**:未设置
1886| `decode` | 字符串 `"jwt"` | 使用内置模式(或在设置了 `extract` 时使用它)查找文件中的 JSON Web Token(JWT),验证每个候选项,并将其替换为结构有效的伪造令牌,使沙箱内解码该令牌的代码继续正常工作。当没有候选项通过验证时,由 `onExtractNoMatch` 决定结果。需要 v2.1.224 或更高版本 |1888| `decode` | 字符串 `"jwt"` | 使用内置模式(或在设置了 `extract` 时使用它)查找文件中的 JSON Web Token(JWT),验证每个候选项,并将其替换为结构有效的伪造令牌,使沙箱内解码该令牌的代码继续正常工作。当没有候选项通过验证时,由 `onExtractNoMatch` 决定结果。需要 v2.1.224 或更高版本 |
1887| `maskClaims` | 字符串数组,至少包含一个声明名称;需要 `decode` | 仅掩码每个已验证 JWT 中指定的顶层负载声明,并围绕修改后的负载重建令牌,使其他声明保持可读。当没有指定的声明匹配时,由 `onExtractNoMatch` 决定结果。需要 v2.1.224 或更高版本 |1889| `maskClaims` | 字符串数组,至少包含一个声明名称;需要 `decode` | 仅掩码每个已验证 JWT 中指定的顶层负载声明,并围绕修改后的负载重建令牌,使其他声明保持可读。当没有指定的声明匹配时,由 `onExtractNoMatch` 决定结果。需要 v2.1.224 或更高版本 |
1888| `maskDuplicates` | 布尔值,默认为 `false` | 同时替换文件中其他位置出现的每个被掩码值的逐字副本,例如粘贴到注释中的密钥。Claude Code 按原始子字符串匹配,因此请仅将其用于较长的高熵密钥。仅在设置了 `extract` 或 `decode` 时才会参考此字段。需要 v2.1.221 或更高版本 |1890| `maskDuplicates` | 布尔值,默认为 `false` | 同时替换文件中其他位置出现的每个被掩码值的逐字副本,例如粘贴到注释中的密钥。Claude Code 按原始子字符串匹配,因此请仅将其用于较长的高熵密钥。仅在设置了 `extract` 或 `decode` 时才会参考此字段。需要 v2.1.221 或更高版本 |
1889| `injectHosts` | 字符串数组,每项都是 [`sandbox.network.allowedDomains`](#sandbox-network-alloweddomains) 也允许的主机 | 收窄沙箱代理替换真实值的主机范围。未设置时,代理会在发往 `sandbox.network.allowedDomains` 中每个主机的请求中进行替换。需要 v2.1.221 或更高版本 |1891| `injectHosts` | 字符串数组,每项都是 [`sandbox.network.allowedDomains`](#sandbox-network-alloweddomains) 也允许的主机 | 收窄沙箱代理替换为真实值的主机范围。未设置时,代理会在发往 `sandbox.network.allowedDomains` 中每个主机的请求中进行替换。需要 v2.1.221 或更高版本 |
1890 1892
1891以下配置仅掩码 `gh` 主机文件中的 `oauth_token` 值,替换该值在文件中的所有其他副本,在模式未匹配任何内容时使文件不可读,并仅在发往 `api.github.com` 的请求中替换为真实令牌:1893以下配置仅掩码 `gh` 主机文件中的 `oauth_token` 值,替换该值在文件中的所有其他副本,在模式未匹配任何内容时使文件不可读,并仅在发往 `api.github.com` 的请求中替换为真实令牌:
1892 1894
2338设置上下文窗口填充到多满时 Claude Code 会[自动压缩](https://code.claude.com/docs/zh-CN/context-window.md#when-your-context-fills-up)。2340设置上下文窗口填充到多满时 Claude Code 会[自动压缩](https://code.claude.com/docs/zh-CN/context-window.md#when-your-context-fills-up)。
2339 2341
2340* **作用域**:[`Any file`](#scopes)2342* **作用域**:[`Any file`](#scopes)
2341* **类型**:token 数量,范围为 `100000` 到 `1000000`。Claude Code 会将该值限制在您所用模型的上下文窗口以内;[模型概览](https://platform.claude.com/docs/en/about-claude/models/overview)列出了每个模型的上下文窗口2343* **类型**:token 数量,至少为 `100000`。Claude Code 会将该值限制在您所用模型的上下文窗口以内;[模型概览](https://platform.claude.com/docs/en/about-claude/models/overview)列出了每个模型的上下文窗口
2342* **默认值**:未设置,此时 Claude Code 会选择针对您的模型调优的窗口2344* **默认值**:未设置,此时 Claude Code 会选择针对您的模型调优的窗口
2343* **单会话覆盖**:[`--autocompact`](https://code.claude.com/docs/zh-CN/cli-reference#cli-flags) 在单个会话中优先于此键,而 [`CLAUDE_CODE_AUTO_COMPACT_WINDOW`](https://code.claude.com/docs/zh-CN/env-vars) 优先于这两者,除非 Claude Code [忽略该变量的值](https://code.claude.com/docs/zh-CN/model-config.md#claude_code_auto_compact_window-values)2345* **单会话覆盖**:[`--autocompact`](https://code.claude.com/docs/zh-CN/cli-reference#cli-flags) 在单个会话中优先于此键,而 [`CLAUDE_CODE_AUTO_COMPACT_WINDOW`](https://code.claude.com/docs/zh-CN/env-vars) 优先于这两者,除非 Claude Code [忽略该变量的值](https://code.claude.com/docs/zh-CN/model-config.md#claude_code_auto_compact_window-values)
2344 2346
2481 * 内容变量 `OTEL_LOG_USER_PROMPTS`、`OTEL_LOG_ASSISTANT_RESPONSES`、`OTEL_LOG_TOOL_CONTENT` 和 `OTEL_LOG_TOOL_DETAILS`2483 * 内容变量 `OTEL_LOG_USER_PROMPTS`、`OTEL_LOG_ASSISTANT_RESPONSES`、`OTEL_LOG_TOOL_CONTENT` 和 `OTEL_LOG_TOOL_DETAILS`
2482 * 名称以 `_ENDPOINT`、`_HEADERS`、`_PROTOCOL`、`_CERTIFICATE`、`_CLIENT_KEY` 或 `_INSECURE` 结尾的 `OTEL_EXPORTER_OTLP_*` 变量,包括通用形式和按信号区分的形式,例如 `OTEL_EXPORTER_OTLP_ENDPOINT` 和 `OTEL_EXPORTER_OTLP_METRICS_HEADERS`2484 * 名称以 `_ENDPOINT`、`_HEADERS`、`_PROTOCOL`、`_CERTIFICATE`、`_CLIENT_KEY` 或 `_INSECURE` 结尾的 `OTEL_EXPORTER_OTLP_*` 变量,包括通用形式和按信号区分的形式,例如 `OTEL_EXPORTER_OTLP_ENDPOINT` 和 `OTEL_EXPORTER_OTLP_METRICS_HEADERS`
2483 * `OTEL_EXPORTER_PROMETHEUS_HOST` 和 `OTEL_EXPORTER_PROMETHEUS_PORT`2485 * `OTEL_EXPORTER_PROMETHEUS_HOST` 和 `OTEL_EXPORTER_PROMETHEUS_PORT`
2486 * `OTEL_RESOURCE_INCLUDE_HOST`,用于[添加计算机的名称和 ID](https://code.claude.com/docs/zh-CN/monitoring-usage.md#identify-the-machine-a-session-ran-on)
2484 2487
2485 只有以下值仍会从项目设置和本地设置中生效,因为它们用于关闭某项功能:三个导出器选择变量的 `none`,以及 `OTEL_LOG_USER_PROMPTS`、`OTEL_LOG_TOOL_CONTENT` 和 `OTEL_LOG_TOOL_DETAILS` 的关闭值(例如 `0`)。此类值会覆盖您用户设置中的同名变量,但不会覆盖由启动 Claude Code 的环境、`--settings` 文件或托管设置所设置的变量。2488 只有以下值仍会从项目设置和本地设置中生效,因为它们用于关闭某项功能:三个导出器选择变量的 `none`,以及 `OTEL_LOG_USER_PROMPTS`、`OTEL_LOG_TOOL_CONTENT` 和 `OTEL_LOG_TOOL_DETAILS` 的关闭值(例如 `0`)。此类值会覆盖您用户设置中的同名变量,但不会覆盖由启动 Claude Code 的环境、`--settings` 文件或托管设置所设置的变量。
2486 2489
2501* [`CLAUDE_CODE_PROJECT_DIR_NAME`](https://code.claude.com/docs/zh-CN/sessions#name-the-project-directory-yourself) 仅由 Claude Code 从启动环境中读取,在所有文件中都会被忽略;需要 v2.1.234 或更高版本。2504* [`CLAUDE_CODE_PROJECT_DIR_NAME`](https://code.claude.com/docs/zh-CN/sessions#name-the-project-directory-yourself) 仅由 Claude Code 从启动环境中读取,在所有文件中都会被忽略;需要 v2.1.234 或更高版本。
2502* [`CLAUDE_CODE_RESTRICTED`](https://code.claude.com/docs/zh-CN/env-vars#variables) 仅由 Claude Code 从启动环境中读取,在所有文件中都会被忽略。2505* [`CLAUDE_CODE_RESTRICTED`](https://code.claude.com/docs/zh-CN/env-vars#variables) 仅由 Claude Code 从启动环境中读取,在所有文件中都会被忽略。
2503* [`CLAUDE_CODE_DISABLE_POWERSHELL_CMD_RM_DENY`](https://code.claude.com/docs/zh-CN/env-vars#variables) 仅由 Claude Code 从启动环境中读取,在所有文件中都会被忽略。该变量需要 Claude Code v2.1.283 或更高版本。2506* [`CLAUDE_CODE_DISABLE_POWERSHELL_CMD_RM_DENY`](https://code.claude.com/docs/zh-CN/env-vars#variables) 仅由 Claude Code 从启动环境中读取,在所有文件中都会被忽略。该变量需要 Claude Code v2.1.283 或更高版本。
2504* [`CLAUDE_CODE_DISABLE_DANGEROUS_RM_TIMEOUT`、`CLAUDE_CODE_DISABLE_SUBSTITUTION_RM_PROMPT`、`CLAUDE_CODE_DISABLE_INLINE_SHELL_RM_PROMPT` 和 `CLAUDE_CODE_DISABLE_MOUNTED_DRIVE_RM_PROMPT`](https://code.claude.com/docs/zh-CN/env-vars#variables) 仅由 Claude Code 从启动环境中读取,在所有文件中都会被忽略。2507* [`CLAUDE_CODE_DISABLE_DANGEROUS_RM_TIMEOUT`、`CLAUDE_CODE_DISABLE_SUBSTITUTION_RM_PROMPT`、`CLAUDE_CODE_DISABLE_INLINE_SHELL_RM_PROMPT`、`CLAUDE_CODE_STRICT_INLINE_SHELL_RM_PROMPT`、`CLAUDE_CODE_DISABLE_MOUNTED_DRIVE_RM_PROMPT` 和 `CLAUDE_CODE_DISABLE_ULTRAREVIEW_TRUST_CHECK`](https://code.claude.com/docs/zh-CN/env-vars#variables) 仅由 Claude Code 从启动环境中读取,在所有文件中都会被忽略。
2505* [`CLAUDE_CODE_EVEN_MORE_DANGEROUSLY_SKIP_PERMISSIONS`](https://code.claude.com/docs/zh-CN/env-vars#variables) 仅由 Claude Code 从启动环境中读取,在所有文件中都会被忽略。2508* [`CLAUDE_CODE_EVEN_MORE_DANGEROUSLY_SKIP_PERMISSIONS`](https://code.claude.com/docs/zh-CN/env-vars#variables) 仅由 Claude Code 从启动环境中读取,在所有文件中都会被忽略。
2506* [`CLAUDE_CODE_WARN_DISK_FREE_GIB` 和 `CLAUDE_CODE_WARN_MEMORY_FREE_GIB`](https://code.claude.com/docs/zh-CN/env-vars#variables) 仅由 Claude Code 从启动环境中读取,在所有文件中都会被忽略。这些变量需要 Claude Code v2.1.304 或更高版本。2509* [`CLAUDE_CODE_WARN_DISK_FREE_GIB` 和 `CLAUDE_CODE_WARN_MEMORY_FREE_GIB`](https://code.claude.com/docs/zh-CN/env-vars#variables) 仅由 Claude Code 从启动环境中读取,在所有文件中都会被忽略。这些变量需要 Claude Code v2.1.304 或更高版本。
2507 2510
4043 4046
4044| 来源 | 示例条目 | 字段 |4047| 来源 | 示例条目 | 字段 |
4045| :- | :- | :- |4048| :- | :- | :- |
4046| `github` | `{ "source": "github", "repo": "acme-corp/plugins", "ref": "main", "path": "marketplace" }` | `repo` 必填;`ref` 为分支、标签或提交 SHA;`path` 为子目录 |4049| `github` | `{ "source": "github", "repo": "acme-corp/plugins", "ref": "main", "path": ".claude-plugin/marketplace.json" }` | `repo` 必填;`ref` 为分支、标签或提交 SHA;`path` 为仓库中[市场文件的路径](https://code.claude.com/docs/zh-CN/plugins/marketplace-reference.md#fields-by-type) |
4047| `git` | `{ "source": "git", "url": "https://gitlab.example.com/tools/plugins.git", "ref": "production" }` | `url` 必填;`ref` 和 `path` 与 `github` 相同 |4050| `git` | `{ "source": "git", "url": "https://gitlab.example.com/tools/plugins.git", "ref": "production" }` | `url` 必填;`ref` 和 `path` 与 `github` 相同 |
4048| `url` | `{ "source": "url", "url": "https://plugins.example.com/marketplace.json", "headers": { "Authorization": "Bearer ${TOKEN}" } }` | `url` 必填;`headers` 添加用于身份验证访问的 HTTP 标头 |4051| `url` | `{ "source": "url", "url": "https://plugins.example.com/marketplace.json", "headers": { "Authorization": "Bearer ${TOKEN}" } }` | `url` 必填;`headers` 添加用于身份验证访问的 HTTP 标头 |
4049| `file` | `{ "source": "file", "path": "/opt/acme-corp/plugins/marketplace.json" }` | `path` 必填,为 `marketplace.json` 文件的绝对路径 |4052| `file` | `{ "source": "file", "path": "/opt/acme-corp/plugins/marketplace.json" }` | `path` 必填,为 `marketplace.json` 文件的绝对路径 |
4101例如,Claude Code 将以下每一对视为两个不同的来源:4104例如,Claude Code 将以下每一对视为两个不同的来源:
4102 4105
4103* `{ "source": "github", "repo": "acme-corp/plugins" }` 和 `{ "source": "github", "repo": "acme-corp/plugins", "ref": "main" }`4106* `{ "source": "github", "repo": "acme-corp/plugins" }` 和 `{ "source": "github", "repo": "acme-corp/plugins", "ref": "main" }`
4104* `{ "source": "github", "repo": "acme-corp/plugins", "path": "marketplace" }` 和 `{ "source": "github", "repo": "acme-corp/plugins" }`4107* `{ "source": "github", "repo": "acme-corp/plugins", "path": ".claude-plugin/marketplace.json" }` 和 `{ "source": "github", "repo": "acme-corp/plugins" }`
4105 4108
4106#### 仅允许官方市场4109#### 仅允许官方市场
4107 4110
4973 4976
4974### `disableRemoteControl`4977### `disableRemoteControl`
4975 4978
4976关闭 [Remote Control](https://code.claude.com/docs/zh-CN/remote-control.md):Claude Code 随后会拒绝 `claude remote-control`、`--remote-control` 标志、自动启动以及会话内开关,并报告其已被您组织的策略禁用。将其放在[托管设置](https://code.claude.com/docs/zh-CN/managed-settings.md)中,可实现按设备的 MDM 强制执行。4979关闭 [Remote Control](https://code.claude.com/docs/zh-CN/remote-control.md):Claude Code 随后会拒绝 `claude remote-control`、`--remote-control` 标志、自动启动以及会话内开关。将其放在[托管设置](https://code.claude.com/docs/zh-CN/managed-settings.md)中,可实现按设备的 MDM 强制执行。
4977 4980
4978* **作用域**:[`Any file`](#scopes)4981* **作用域**:[`Any file`](#scopes)
4979* **类型**:Boolean4982* **类型**:Boolean
4989 4992
4990### `disableRemotePreviewScripts`4993### `disableRemotePreviewScripts`
4991 4994
4992当用户在桌面应用中从 SSH 或 WSL 会话[预览 HTML 文件](https://code.claude.com/docs/zh-CN/desktop.md#preview-html-files-in-ssh-and-wsl-sessions)时,阻止脚本运行。Browser 窗格中的外部浏览不受影响。4995当用户从 SSH 或 WSL 会话在桌面应用的 Browser 窗格中[预览 HTML 文件](https://code.claude.com/docs/zh-CN/desktop.md#preview-html-files-in-ssh-and-wsl-sessions)时,阻止脚本运行。该窗格中的外部浏览不受影响。
4993 4996
4994桌面应用读取此设置项;终端 CLI 会忽略它。需要 Claude Desktop v5.1231.0 或更高版本。更早的版本会忽略此设置项:要在这些版本中阻止脚本运行,还需设置 [`disableBrowserExternalNavigation`](#disablebrowserexternalnavigation),它也会关闭外部浏览。4997桌面应用读取此设置项;终端 CLI 会忽略它。需要 Claude Desktop v5.1231.0 或更高版本。更早的版本会忽略此设置项:要在这些版本中阻止脚本运行,还需设置 [`disableBrowserExternalNavigation`](#disablebrowserexternalnavigation),它也会关闭外部浏览。
4995 4998
4996* **作用域**:[`Managed`](#scopes)。桌面应用不会从远程机器或 WSL 发行版读取此设置项。4999* **作用域**:[`Managed`](#scopes)。桌面应用不会从远程机器或 WSL 发行版读取此设置项。
4997* **类型**:Boolean;只有 JSON Boolean `true` 才会生效5000* **类型**:Boolean;仅 JSON Boolean `true` 生效
4998 * `true`:SSH 和 WSL 会话中的 HTML 预览不运行脚本5001 * `true`:在 SSH 和 WSL 会话中,Browser 窗格中的 HTML 预览不运行脚本
4999 * `false`:此设置项不会关闭脚本5002 * `false`:该键不会关闭脚本
5000* **默认值**:未设置,因此此设置项不起作用5003* **默认值**:未设置,因此此设置项不起作用
5001 5004
5002如果运行桌面应用的计算机未收到任何其他 Claude Code 托管设置,还需在您创建的托管设置中将 [`parentSettingsBehavior`](#parentsettingsbehavior) 设置为 `"merge"`。在 Windows 上,如果您创建托管设置文件,用户还会失去 WSL 会话,直到您[允许这些会话](https://code.claude.com/docs/zh-CN/admin-setup.md#wsl-sessions-in-claude-code-desktop)。[为您的组织关闭 SSH 和 WSL 预览中的脚本](https://code.claude.com/docs/zh-CN/desktop.md#turn-off-scripts-in-ssh-and-wsl-previews-for-your-organization)对这两点进行了说明,并介绍了在何处设置此设置项。5005如果运行桌面应用的计算机未收到任何其他 Claude Code 托管设置,还需在您创建的托管设置中将 [`parentSettingsBehavior`](#parentsettingsbehavior) 设置为 `"merge"`。在 Windows 上,如果您创建托管设置文件,用户还会失去 WSL 会话,直到您[允许这些会话](https://code.claude.com/docs/zh-CN/admin-setup.md#wsl-sessions-in-claude-code-desktop)。[为您的组织关闭 SSH 和 WSL 预览中的脚本](https://code.claude.com/docs/zh-CN/desktop.md#turn-off-scripts-in-ssh-and-wsl-previews-for-your-organization)对这两点进行了说明,并介绍了在何处设置此设置项。
5495 5498
5496### `disableBrowserExternalNavigation`5499### `disableBrowserExternalNavigation`
5497 5500
5498在桌面应用的 [Browser 窗格](https://code.claude.com/docs/zh-CN/desktop.md#browse-external-sites)中同时为人员和 Claude 关闭外部浏览。Localhost 开发服务器预览仍可正常使用。SSH 和 WSL 会话中的 HTML 预览仍会打开,但它们[不会运行脚本](https://code.claude.com/docs/zh-CN/desktop.md#turn-off-scripts-in-ssh-and-wsl-previews-for-your-organization)。桌面应用会读取此键;终端 CLI 会忽略它。5501在桌面应用的 [Browser 窗格](https://code.claude.com/docs/zh-CN/desktop.md#browse-external-sites)中同时为人员和 Claude 关闭外部浏览。Localhost 开发服务器预览仍可正常使用。Browser 窗格在 SSH 和 WSL 会话中的 HTML 预览仍会打开,但它们[不会运行脚本](https://code.claude.com/docs/zh-CN/desktop.md#turn-off-scripts-in-ssh-and-wsl-previews-for-your-organization)。桌面应用会读取此键;终端 CLI 会忽略它。
5499 5502
5500* **作用域**:[`Managed`](#scopes)5503* **作用域**:[`Managed`](#scopes)
5501* **类型**:布尔值;仅 JSON 布尔值 `true` 生效5504* **类型**:布尔值;仅 JSON 布尔值 `true` 生效
5925 5928
5926在每个交互式 CLI 会话启动时开启 [Chrome 集成](https://code.claude.com/docs/zh-CN/chrome.md),无需每次都传入 `--chrome`。如果您运行 [`claude remote-control`](https://code.claude.com/docs/zh-CN/remote-control),它为您的某个[项目](https://code.claude.com/docs/zh-CN/claude-projects.md)线程启动的会话也会遵循此键,`bypassPermissions` 模式除外。在 Claude Code v2.1.287 或更高版本中,此键也适用于 [VS Code 扩展](https://code.claude.com/docs/zh-CN/vs-code.md#automate-browser-tasks-with-chrome)中的会话:请参阅[默认启用 Chrome](https://code.claude.com/docs/zh-CN/chrome.md#enable-chrome-by-default)。5929在每个交互式 CLI 会话启动时开启 [Chrome 集成](https://code.claude.com/docs/zh-CN/chrome.md),无需每次都传入 `--chrome`。如果您运行 [`claude remote-control`](https://code.claude.com/docs/zh-CN/remote-control),它为您的某个[项目](https://code.claude.com/docs/zh-CN/claude-projects.md)线程启动的会话也会遵循此键,`bypassPermissions` 模式除外。在 Claude Code v2.1.287 或更高版本中,此键也适用于 [VS Code 扩展](https://code.claude.com/docs/zh-CN/vs-code.md#automate-browser-tasks-with-chrome)中的会话:请参阅[默认启用 Chrome](https://code.claude.com/docs/zh-CN/chrome.md#enable-chrome-by-default)。
5927 5930
5928运行 `/chrome` 并选择 **Enabled by default** 会自动设置此键,回应 [“Claude in Chrome extension detected” 对话框](https://code.claude.com/docs/zh-CN/chrome.md#answer-the-startup-dialog)也会设置此键。此项在 `/config` 中显示为 **Claude in Chrome enabled by default**。5931当您通过 `/chrome` 将 Chrome 设为默认开启,或回应 [“Claude in Chrome extension detected” 对话框](https://code.claude.com/docs/zh-CN/chrome.md#answer-the-startup-dialog)时,即会设置此键。此项在 `/config` 中显示为 **Claude in Chrome enabled by default**。
5929 5932
5930* **作用域**:[`Global config`](#scopes)5933* **作用域**:[`Global config`](#scopes)
5931* **类型**:Boolean5934* **类型**:Boolean