# 管理对 GitHub Copilot 云代理的访问权限

了解适用于 Copilot cloud agent 和 GitHub Copilot Enterprise 的 GitHub Copilot Business 策略，以及禁用特定存储库的代理。

> \[!NOTE]
> 关于Copilot cloud agent的介绍，请查看[关于 GitHub Copilot 云代理](/zh/copilot/concepts/agents/cloud-agent/about-cloud-agent)。

## 概述

Copilot cloud agent 是一种 AI 支持的软件开发代理，可以自主处理问题或开发人员请求。 它会创建草稿拉取请求以提出修复方案，并根据反馈对更改进行迭代。

如果您是GitHub Copilot Enterprise或GitHub Copilot Business订阅者，Copilot cloud agent默认为禁用状态，必须由管理员启用后才能使用。

如果您是Copilot Pro、Copilot Pro+或Copilot Max订阅者，则默认启用Copilot cloud agent。

启用后，可以在任何存储库中使用 Copilot cloud agent ，前提是管理员没有选择将存储库排除在外。

## Copilot cloud agent 和 Copilot Business 的 Copilot Enterprise 策略

对于 GitHub Copilot Business 和 GitHub Copilot Enterprise 订阅者，使用 Copilot cloud agent 能力由组织级别定义的策略设置控制。 请参阅“[将GitHub Copilot云代理添加到组织](/zh/copilot/how-tos/administer-copilot/manage-for-organization/add-copilot-cloud-agent)”。

如果该组织归企业所有，则可以在企业级别控制启用情况。 请参阅“[在企业中启用GitHub Copilot云代理](/zh/enterprise-cloud@latest/copilot/how-tos/administer-copilot/manage-for-enterprise/manage-agents/enable-copilot-cloud-agent)”。

## 从 Copilot cloud agent 中选择存储库

默认情况下，启用Copilot cloud agent的用户可以在所有存储库中使用此功能。

企业管理员和组织所有者（对于组织拥有的存储库）和用户（对于用户拥有的存储库）可以选择退出存储库，并阻止 Copilot cloud agent 在这些存储库中使用。

有关在组织拥有的某些或所有存储库中禁用 Copilot cloud agent 的信息，请参阅 [将GitHub Copilot云代理添加到组织](/zh/copilot/how-tos/administer-copilot/manage-for-organization/add-copilot-cloud-agent)。

有关在企业拥有的所有存储库中禁用 Copilot cloud agent 的信息，请参阅 [在您的企业中阻止智能体功能](/zh/copilot/how-tos/administer-copilot/manage-for-enterprise/manage-agents/block-agentic-features)。

有关在个人用户帐户拥有的存储库中禁用 Copilot cloud agent 的信息，请参阅 [以个人订阅者身份管理 GitHub Copilot 策略](/zh/copilot/how-tos/manage-your-account/manage-policies#disabling-or-enabling-copilot-cloud-agent-in-your-repositories)。

## 管理对 Automations 的访问权限

Automations 让用户按计划或响应事件自动运行 Copilot cloud agent 。 请参阅“[关于 Copilot 自动化](/zh/copilot/concepts/agents/cloud-agent/about-automations)”。

若要 automations 在存储库中可用，以下所有内容都必须为 true：

* 存储库必须是 **专用存储库或内部**存储库。
  Automations 在公共存储库中不可用。
* 必须为该存储库启用 Copilot cloud agent。 如果您拥有 Copilot Business 或 Copilot Enterprise，则管理员必须启用 Copilot cloud agent 策略。 请参阅“[管理对 GitHub Copilot 云代理的访问权限](/zh/copilot/concepts/agents/cloud-agent/access-management)”。
* 组织必须在存储库中同时允许 Copilot cloud agent 和 automations（二者默认均处于启用状态）。 请参阅“[将GitHub Copilot云代理添加到组织](/zh/copilot/how-tos/administer-copilot/manage-for-organization/add-copilot-cloud-agent)”。

Automations可用于GitHub Copilot Pro、GitHub Copilot Pro+、GitHub Copilot Max、GitHub Copilot Business和GitHub Copilot Enterprise计划。

除了 Copilot cloud agent 策略之外，组织还可以控制是否允许在存储库中使用 automations。
Automations 在启用的 Copilot cloud agent 存储库中默认启用。 有关详细信息，请参阅“[将GitHub Copilot云代理添加到组织](/zh/copilot/how-tos/administer-copilot/manage-for-organization/add-copilot-cloud-agent)”。

## 延伸阅读

* [GitHub Copilot云代理](/zh/copilot/how-tos/use-copilot-agents/cloud-agent)
* [配置开发环境](/zh/copilot/how-tos/copilot-on-github/customize-copilot/customize-cloud-agent/customize-the-agent-environment)
* [自定义或禁用GitHub Copilot的防火墙](/zh/copilot/how-tos/copilot-on-github/customize-copilot/customize-the-firewall)
* [为存储库配置 MCP 服务器](/zh/copilot/how-tos/copilot-on-github/customize-copilot/configure-mcp-servers)
* [在组织中试点GitHub Copilot云代理](/zh/copilot/tutorials/cloud-agent/pilot-cloud-agent)