GitHub Copilot for admins

How to block or disable GitHub Copilot for your organisation

Copilot now writes code, runs agent tasks in your repositories and calls MCP servers. Personal Copilot Free accounts can do much of the same outside your contract. Here is how to switch it off, or keep only the parts you approve.

Organisation policiesCopilot Free on the networkVS CodeVisual StudioJetBrainsMCP allowlist

Next step

AI Agent Blocklist: the other coding assistants, agents and MCP servers your developers reach for when Copilot is locked down

Extension IDs, package names, process names and domains, each with a risk grade, updated every day.

From $99 a month for one organisation See plans Ask a question

What "Copilot" covers today

Disabling Copilot used to mean turning off code completions. Today the name covers several surfaces, and each has its own switch. List what your developers use before you change anything.

SurfaceWhat it doesWhere you control it
Copilot in the IDECompletions, chat and agent mode in VS Code, Visual Studio, JetBrains IDEs, Xcode and EclipseOrganisation policies, seats, IDE policies
Copilot CLIAn agent in the terminal that reads and changes code and runs commandsA Copilot CLI policy in organisation and enterprise settings
Copilot in GitHubChat on the website and in GitHub MobilePolicies such as Copilot Chat in GitHub
Copilot cloud agentTakes an issue, works in a cloud sandbox and opens a pull requestOrganisation policies, repository settings, rulesets and firewall allowlists
MCP servers in CopilotExtra tools and data sources for chat and agentsThe MCP policy and registry settings under AI controls
Personal plansCopilot Free or a paid personal plan, signed in with any GitHub accountNetwork routing, IDE policies, Visual Studio templates

Where Copilot slips past your controls

Most surprises come from the gaps between these surfaces rather than from Copilot itself. These are the ones admins hit most often.

Personal accounts

A developer signs in to the IDE with a personal GitHub account and uses Copilot Free. Your policies, seats and data terms do not apply.

Agent mode

Agent mode in the IDE can edit many files and run terminal commands. Auto-approval settings decide whether a person checks each one.

MCP servers

Developers can add MCP servers to their editor. Each one brings tools and data access that nobody reviewed.

Cloud agent

The cloud agent writes to branches in your repositories. Branch protection decides whether its work can land unreviewed.

Exclusions are not walls

GitHub states that content exclusion is not a filesystem security boundary and may miss indirect access by agents.

Other assistants

Switch Copilot off and some developers install another AI extension or command-line agent the same afternoon.

Four levels of control, from light to total

Pick the level that matches your policy. Each level includes the ones above it.

1

Rein in features

Keep Copilot, but block suggestions matching public code, turn off agent mode or the CLI, and limit MCP servers to a registry.

2

Company accounts only

Allow your business or enterprise plan and block personal plans on the network and in Visual Studio.

3

Copilot off for the organisation

Remove seats, set policies to disabled at enterprise level, and block the extensions in your IDE policies.

4

No AI coding assistants at all

Do level 3 and block the other assistants and agents by extension ID, package, process and domain.

Organisation and enterprise policies, step by step

These steps use the paths in GitHub's documentation for organisation owners. GitHub renames sections from time to time, so check the current settings pages if a label differs.

  1. Open the Copilot settings. Go to your organisation, then Settings. In the sidebar under Code, planning, and automation, click Copilot.
  2. Review access. Decide who keeps a seat. Removing a member's seat stops their access through your organisation.
  3. Set feature policies. Under Policies, enable or disable features such as Copilot in the IDE, the CLI, chat on GitHub, the cloud agent and MCP servers in Copilot.
  4. Set models. Under Models, keep only the models your data terms cover.
  5. Block public code matches. Set Suggestions matching public code to Blocked.
  6. Enterprise owners: set the same policies at enterprise level. Where you choose a fixed value, organisations cannot loosen it; "Let organizations decide" hands the choice down.
A user licensed through several organisations in one enterprise usually gets the least restrictive policy. A user licensed through several enterprises usually gets the most restrictive. Enterprise-assigned users follow a separate setting for their default.

Block GitHub Copilot Free and personal plans on your network

GitHub routes each Copilot plan through its own host names. That lets you allow your company plan and block personal plans at the firewall or secure web gateway.

Block

*.individual.githubcopilot.com

Personal plans, including Copilot Free and paid individual plans.

Allow for Business

*.business.githubcopilot.com

If your organisation uses Copilot Business.

Allow for Enterprise

*.enterprise.githubcopilot.com

For Copilot Enterprise or the access billing model. Allow both if you have both plans.

ClientMinimum version for plan routing
Copilot Chat in VS Code0.17 or later
Copilot in JetBrains IDEs1.5.6.5692 or later
Visual Studio 202217.11 or later
Routing by plan is not supported on GHE.com data residency, where GitHub points to its own allowlist reference instead. If your gateway inspects TLS, note that GitHub says Copilot supports basic web proxy setups, but not proxies reached through an encrypted proxy address. Platform steps are in our Zscaler and firewall guides.

Disable Copilot in VS Code, Visual Studio and IntelliJ

IDE controls catch what account policies miss, especially personal sign-ins. Each IDE family has its own mechanism.

VS Code

  • Users: turn on chat.disableAIFeatures to hide built-in AI features and disable the Copilot extensions.
  • Fleet: AllowedExtensions policy to block the Copilot extensions, ChatAgentMode to switch off agent mode, ChatToolsAutoApprove and ChatToolsTerminalEnableAutoApprove to keep approvals on.
  • Deploy with the VSCode ADMX on Windows, the sample profile on macOS, or /etc/vscode/policy.json on Linux.

Visual Studio

  • Install the Visual Studio administrative templates.
  • Open Computer Configuration > Administrative Templates > Visual Studio > Copilot Settings.
  • 17.10 and later: disable Copilot for individual accounts or entirely. 17.13 and later: disable Copilot Free. 17.14.16 and later: Disable Agent Mode.
  • Deploy with Intune or Group Policy, then restart Visual Studio.

JetBrains IDEs

  • Users: Settings, then Plugins, find GitHub Copilot, then Disable or Uninstall.
  • Fleet: remove seats, block personal plans on the network, and manage allowed plugins with your IDE management tooling.
  • Older plugin versions do not support plan routing, so keep plugins current.
Stopping suggestions only? If the goal is fewer completions rather than a ban, users can snooze or switch off completions from the Copilot menu in the editor's status bar. That is a preference, not a control, so do not rely on it for policy.

GitHub Copilot MCP server security and the registry allowlist

MCP servers extend Copilot with tools that can read data and take actions. GitHub gives admins a policy to turn them off and a registry allowlist to limit them.

In GitHub settings

  • The MCP servers in Copilot policy switches MCP support on or off. Enterprise owners find it under AI controls, then MCP.
  • Set an MCP registry URL for your approved servers.
  • In Restrict MCP access to registry servers, choose Registry only. Only servers from the registry may run.
  • Registry only cannot be saved without a valid registry URL. The feature is in public preview.

In the IDE

  • VS Code enforcement of registry policies reached the stable release in public preview in November 2025.
  • Visual Studio 2026 blocks connections to servers that are not on the allowlist and shows an error.
  • VS Code also has device policies: ChatMCP, ChatAllowedMcpServers, ChatDeniedMcpServers and ChatAllowManagedMcpServersOnly.
  • Check each IDE's current support before you rely on it.
Why this matters: an agent that reads public content, such as an issue, while it also holds access to private repositories can be steered to move data between them. Give each agent only the MCP servers and tokens its task needs. Read MCP security risks and how to build an MCP allowlist.

Why GitHub Copilot blocks public code, and when you should

The public code filter is a licensing control, not a security one, but admins set it in the same place.

How it works

  • With the policy set to Blocked, Copilot checks each suggestion, with about 150 characters of surrounding code, against public code on GitHub.
  • Matches and near matches are hidden.
  • With Allowed, users can see details of matching code and links to the source repositories.
  • Seats assigned through your organisation inherit your setting.

Our advice

  • Set it to Blocked at the highest level you control.
  • Lock it at enterprise level so organisations cannot loosen it.
  • Users also ask about Copilot's content filters for offensive language. Those shape what Copilot says, not what it can access, so they are not part of your security controls.

GitHub Copilot coding agent security

The cloud agent works in GitHub's infrastructure, so the controls live in your repositories and organisation, not on laptops.

RiskControl documented by GitHubWhat to set
Agent reaches the internet freelyCloud sandboxes honour repository and organisation firewall allowlistsKeep the allowlist short
Agent work lands without reviewRulesets and branch protection can stop it creating or updating pull requestsRequired reviews on protected branches
Agent used on sensitive repositoriesRepository owners and admins can disable Copilot for particular repositoriesOff for repositories with regulated data
Agent writes insecure codeGitHub notes that output can contain vulnerabilitiesCode scanning and human review on every pull request
The same risks apply to every coding agent. See AI coding agent security risks and keeping agents away from secrets.

How to stop a GitHub Copilot subscription, and what that does not stop

Ending a subscription and ending use are different things. Free plans cost nothing, so they never show up in your bills.

SituationHow to stop itWhat still works afterwards
Seats paid by your organisationRemove seats in the organisation's Copilot settings, or turn Copilot off at enterprise levelPersonal plans the same people sign in with
A personal paid planThe account owner cancels it in their GitHub billing settings; check GitHub's current billing pagesCopilot Free on the same account
Copilot FreeNo subscription to cancel; block the personal plan hosts and use IDE policiesUnmanaged devices and networks you do not control
Other AI assistantsBlock them by extension ID, package, process and domainNothing on managed devices, once the rules are in place

Check that Copilot is really off

After the change, test from a developer's point of view. These checks take ten minutes on one managed laptop.

  1. Sign in with a personal account in VS Code and confirm Copilot cannot reach its personal plan hosts.
  2. Open Visual Studio and confirm the Copilot Settings policies show as applied after a restart.
  3. Try to install another AI extension and confirm the AllowedExtensions policy blocks it.
  4. Add an MCP server that is not in your registry and confirm it is refused in a supported IDE.
  5. Check network logs for remaining traffic to AI coding domains from developer subnets.

How the AI Agent Blocklist fits around Copilot

Many companies keep Copilot under their own plan and block everything else. Our files cover the "everything else" so a locked-down Copilot does not push developers to an unmanaged tool.

Other assistants in VS Code

  • anthropic.claude-code Claude Code
  • openai.chatgpt Codex
  • saoudrizwan.claude-dev Cline
  • kilocode.Kilo-Code Kilo Code

Four examples to set to false in AllowedExtensions. The file holds every coding agent extension we track.

What else the download covers

  • Command-line agents by package and process name
  • AI code editors by bundle ID and package ID
  • MCP server packages and domains
  • Coding agent domains for firewall and DNS

Keep Copilot on your terms and the rest off

The AI Agent Blocklist covers coding agents, AI editors, MCP servers, AI browsers and agent extensions, with a risk grade on every entry.

From $99 a month for one organisation. Download access is set up within one business day of your order.

  • VS Code, Open VSX and JetBrains extension IDs of coding agents
  • Package and process names for endpoint rules
  • Domains in plain, hosts, PAC and firewall list formats
  • CSV and JSON with all columns, updated every day

Ask us or order a plan

Tell us what you need to block and where your rules live. We reply within one business day.

  • Files for firewalls, DNS filters, secure web gateways, MDM and browser policies
  • Updated every day as new AI browsers, agents and extensions appear
  • Plans for one organisation, for MSPs and for product makers, or a hosted filter we run for you

We use your details only to answer you. No newsletters.

Questions about disabling Copilot

Can you disable GitHub Copilot for an organisation?
Yes. Organisation owners manage Copilot under Settings > Copilot, where they control seats, policies and models. Enterprise owners can disable features for every organisation. To stop personal Copilot plans as well, block the personal plan hosts on your network and use your IDE policies.
How do I block GitHub Copilot Free on the company network?
GitHub documents subscription-based network routing: add *.individual.githubcopilot.com to your firewall block list and allow only the business or enterprise hosts for your plan. Members need recent Copilot clients for the routing to work.
How do I disable GitHub Copilot in Visual Studio 2022?
Install the Visual Studio administrative templates and open Computer Configuration > Administrative Templates > Visual Studio > Copilot Settings in Group Policy or Intune. From version 17.10 you can disable Copilot for individual accounts or entirely, from 17.13 you can disable Copilot Free, and from 17.14.16 you can disable agent mode.
How do I disable GitHub Copilot in VS Code?
A user can turn on the chat.disableAIFeatures setting, which hides built-in AI features and disables the Copilot extensions. For a fleet, use VS Code policies such as AllowedExtensions and ChatAgentMode, deployed with Group Policy, a macOS profile or policy.json on Linux.
How do I disable GitHub Copilot in IntelliJ?
Open Settings, then Plugins, find GitHub Copilot and disable or uninstall it. For a whole organisation, remove Copilot seats, block personal plans on the network and manage allowed plugins through your IDE management.
Why does GitHub Copilot block suggestions matching public code?
When the policy is set to Blocked, Copilot checks each suggestion, with about 150 characters of surrounding code, against public code on GitHub and hides matches or near matches. Companies block them to reduce the chance of pasting code with licence obligations.
Can I restrict which MCP servers GitHub Copilot uses?
Yes, in public preview. Set an MCP registry URL in the enterprise or organisation settings and choose Registry only, so only servers from that registry may run in supported IDEs and Copilot CLI. You can also turn the MCP servers in Copilot policy off.
Is Copilot content exclusion a security control?
Not on its own. GitHub states that content exclusion is not a filesystem security boundary, may not cover indirect access by agents, is not guaranteed with third-party MCP servers, and does not apply to symlinks. Use it together with operating system permissions.

GitHub, GitHub Copilot and GitHub Mobile are trademarks of GitHub, Inc. Visual Studio, VS Code, Intune and Windows are trademarks of Microsoft Corporation. IntelliJ and JetBrains are trademarks of JetBrains s.r.o.

Xcode is a trademark of Apple Inc. Eclipse is a trademark of the Eclipse Foundation. Claude Code is a trademark of Anthropic, PBC. Codex is a trademark of OpenAI. Cline, Kilo Code and Zscaler are trademarks of their respective owners.

macOS is a trademark of Apple Inc. Cursor is a trademark of Anysphere, Inc. Open VSX is a trademark of the Eclipse Foundation. Linux is a registered trademark of Linus Torvalds.

Names are used only to identify the products discussed. AI Agent Blocklist is not affiliated with, sponsored or endorsed by these companies.