Skip to main content

管理企业中的 GitHub Copilot 编码代理

允许企业成员使用 Copilot 编码智能体 并控制其可用的仓库范围。

谁可以使用此功能?

Enterprise owners

Copilot 编码智能体 可用于 GitHub Copilot Pro、GitHub Copilot Pro+、GitHub Copilot Business 和 GitHub Copilot Enterprise 计划。 该代理在 GitHub 上存储的所有仓库中均可用,但以下情况除外:由 托管用户帐户 拥有的仓库,以及已显式禁用该代理的仓库。
Sign up for Copilot

注意

For an introduction to Copilot coding agent, see About GitHub Copilot coding agent.

Prerequisites

Enabling Copilot coding agent for your Copilot subscribers

Copilot coding agent and use of third-party MCP servers are blocked by default for users to whom you have assigned a Copilot license. You can allow members to use these features from the AI Controls tab for your enterprise. See Managing policies and features for GitHub Copilot in your enterprise.

  • On the "Agents" page, click Copilot coding agent, then select Enabled everywhere or Let organizations decide.
  • On the "MCP" page, for the "MCP servers in Copilot" policy, select Enabled everywhere or Let organizations decide.

Next steps

  • If you selected Enabled everywhere, tell organization owners that Copilot coding agent is enabled for all members. By default, the agent will be available in all repositories, but it is possible to opt out some or all repositories.
  • If you selected Let organizations decide, discuss member enablement with organization owners.

For more information, see Adding GitHub Copilot coding agent to your organization.

Disabling Copilot coding agent in your repositories

Copilot policies, like the "Copilot coding agent" and "MCP servers on GitHub.com" policies described above, affect only the users you assign a Copilot license to.

If there are GitHub Copilot Pro+ users with access to your enterprise's repositories, they will be able to use Copilot coding agent and will not be restricted by your policies.

You can choose to stop anyone using the agent in some or all of your repositories using organization-level settings. For more information, see Adding GitHub Copilot coding agent to your organization.

Alternatively, you can disable the agent for all repositories owned by your enterprise.

  1. In the top-right corner of GitHub, click your profile picture.
  2. Depending on your environment, click Enterprise, or click Enterprises then click the enterprise you want to view.
  3. At the top of the page, click AI controls.
  4. In the "Installed Agents" section, click Copilot coding agent.
  5. In the "Copilot coding agent" section, next to "Block Copilot coding agent in all repositories owned by ENTERPRISE-NAME", click the toggle.