Most Copilot policies, including "Enable Copilot cloud agent", only affect users who receive a Copilot license from your enterprise or organizations.
If you want to disable Copilot cloud agent in repositories completely, including for users who get access to Copilot from a personal plan or another enterprise, you can use the "Block Copilot cloud agent" policy.
Blocking Copilot cloud agent
Note
This enterprise-level policy is a blanket restriction. Organization owners can block Copilot cloud agent in specific repositories. See Adding GitHub Copilot cloud agent to your organization.
- Navigate to your enterprise. For example, from the Enterprises page on GitHub.com.
- At the top of the page, click AI controls.
- In the left sidebar, click Agents.
- Under "Available agents", click Copilot Cloud Agent.
- Next to Block Copilot cloud agent in all repositories owned by ENTERPRISE-NAME, click the toggle.