Skip to content

GitHub Copilot

When people say “Copilot”, they can mean two different products, and each one reaches the web in its own way. Copilot CLI has a built-in web_fetch tool that runs on the developer’s machine, asks for markdown through content negotiation and pages long documents in 20,000-character windows. It also has a web_search tool served by GitHub’s own MCP server, so searches never touch your site. The Copilot cloud agent runs in a GitHub-hosted sandbox behind a firewall whose default allowlist contains package registries and GitHub hosts but no ordinary documentation or marketing sites, which means a page outside that list is reachable only through web search or an admin’s custom rule. Copilot is closed source, and I couldn’t find its fetch User-Agent, JavaScript behaviour or robots.txt handling documented anywhere.

Copilot CLICopilot cloud agent
Fetch toolweb_fetch (since 0.0.374, January 2026)Bash curl and a built-in Playwright MCP server, inside the sandbox
Search toolweb_search via github-mcp-server/web_searchWeb search (announced October 2025), provider not named
Who issues the requestDeveloper machine, or the local sandbox proxyGitHub-hosted sandbox
User-AgentNot documentedNot documented; Playwright likely HeadlessChrome inferred
Accept header Prefers markdown via content negotiation Not documented
JS rendering Not documented Yes through Playwright MCP
Content conversion Markdown when the server offers it; conversion details not documented n/a
Size and truncation 10 MiB body limit, 20,000-character pages with start_index and max_length n/a
Caching Not documented Not documented
robots.txt Not documented Not documented
Permission model Every URL needs approval unless allowed by flag or settings Firewall with a recommended allowlist plus admin rules

Copilot CLI ships as the closed npm package @github/copilot, so everything we know about web_fetch comes from the public changelog and GitHub’s docs. The changelog introduces a “Built in web_fetch tool for fetching web content” in 0.0.374 (2026-01-02), and later entries describe it honouring the local sandbox proxy and the network.allowOutbound setting, which places the request on the developer’s machine documented.

If you read the changelog in order, you can watch the tool harden over 2026 documented:

  • 1.0.56 (2026-05-29): prefers markdown via HTTP content negotiation “for cleaner results from documentation sites”.
  • 1.0.60 (2026-06-05): blocks loopback, private and cloud-metadata addresses, and stops silently following redirects.
  • 1.0.76 (2026-07-29): follows redirects again but asks permission when the target is a different origin; works through mandatory HTTPS proxies.
  • 1.0.107: notes truncation when a page is cut at a 10 MiB limit.
  • 1.0.109 (2026-11-10): serves pages in windows capped at 20,000 characters, with start_index and max_length parameters for paging.

GitHub doesn’t publish the exact Accept string or the User-Agent. We tried a strings dump of the 1.0.119 macOS binary (@github/copilot-darwin-arm64), but it was unreadable because the bundle is compressed, so the UA remains unverified, and Copilot CLI wasn’t part of our Dec 2026 lab run either. Checkly’s content negotiation survey included Copilot among the agents it captured, but if you need the header today, I’d run the logging test below instead of relying on a string from an older build.

For long pages, the 20,000-character window is the number that matters most. A model that reads only the first window of a long reference page sees the top 20,000 characters unless it chooses to page with start_index, so key facts placed early survive best inferred.

Copilot CLI’s web_search is delivered by the built-in GitHub MCP server and is addressed in custom agent configs as github-mcp-server/web_search (changelog 1.0.100). In repositories hosted only on Azure DevOps, the GitHub MCP server “now exposes only the web_search tool” (1.0.60), which confirms search is a server-side GitHub capability and not a local scraper documented. GitHub doesn’t name the search engine behind it.

In practice, this works the same way as OpenCode’s and Claude Code’s search tools, because a Copilot search doesn’t send a request to your site. Your origin is contacted only if the model then calls web_fetch on a result. Both tools can be disabled with copilot --excluded-tools='web_fetch, web_search' (allowing tools) documented.

By default, Copilot CLI treats every URL as something the user has to approve. The rule covers web_fetch and a curated set of network shell commands such as curl and wget, approves http and https separately, and is controlled with --allow-url, --deny-url (deny wins), --allow-all-urls and --allow-all or --yolo, plus persistent allowedUrls and deniedUrls in settings (configure Copilot CLI) documented. That makes Copilot CLI one of the stricter local agents, since a developer who hasn’t pre-approved your domain sees a prompt before the first fetch.

The Copilot cloud agent (the coding agent that works on issues and opens pull requests) runs in a GitHub-hosted sandbox, and GitHub’s firewall documentation states that “By default, Copilot’s access to the internet is limited by a firewall” documented. The firewall applies to processes started by the agent’s Bash tool and to the built-in Playwright MCP server and its browsers. It doesn’t apply to other MCP servers or to Copilot setup steps, and blocked requests are reported in the pull request body or a comment, along with the blocked address and command.

Copilot: CLI and cloud agent reach the web differentlyDeveloper machineGitHub cloudAllowlisted hostsYour siteCopilot CLIweb_fetchGitHub MCP serverweb_searchCloud agent sandboxBash, Playwright MCPnpm, PyPI, cratesrecommended allowlistdocs.example.comnot on allowlist1 search query2 GET after approval3 allowed4 blocked by default
Copilot: CLI and cloud agent reach the web differentlyDeveloper machineGitHub cloudAllowlisted hostsYour siteCopilot CLIweb_fetchGitHub MCP serverweb_searchCloud agent sandboxBash, Playwright MCPnpm, PyPI, cratesrecommended allowlistdocs.example.comnot on allowlist1234
  1. Copilot CLI → GitHub MCP serversearch query
  2. Copilot CLI → docs.example.comGET after approval
  3. Cloud agent sandbox → npm, PyPI, cratesallowed
  4. Cloud agent sandbox → docs.example.comblocked by default
Copilot CLI fetches from the developer's IP after URL approval. The cloud agent's Bash and Playwright traffic passes a firewall that only allows registries and GitHub hosts by default; web search runs on GitHub's side.

Organisation and repository admins can disable the firewall, turn off the recommended allowlist, or add custom rules as domains (which include subdomains) or as URLs limited by scheme, host and path. GitHub’s own docs are honest about the limits here and warn that “Sophisticated attacks may bypass the firewall”. Web search in the cloud agent was announced on 2025-10-16 for Pro, Pro+, Business and Enterprise, with Business and Enterprise requiring the “Copilot can search the web” policy. The firewall is described as covering Bash and Playwright, not search, so search results probably aren’t filtered by it inferred.

What is on the recommended allowlist (summary of GitHub’s reference)

The allowlist reference groups the default hosts as follows: Azure infrastructure; certificate authority CRL and OCSP hosts (DigiCert, Sectigo, GlobalSign and others); container registries (ghcr.io, Docker Hub, quay.io, mcr.microsoft.com, gcr.io, public.ecr.aws); GitHub content and API hosts (*.githubusercontent.com, codeload.github.com, api.mcp.github.com); Actions artifact storage; and language ecosystems including .NET (nuget.org, dot.net), Dart (pub.dev), Go (go.dev, pkg.go.dev, proxy.golang.org), Haskell, Java (Maven Central, Gradle), Node (registry.npmjs.org, npmjs.com, nodejs.org, deno.land, bun.sh), Perl, PHP (packagist.org), Python (pypi.org, files.pythonhosted.org, Anaconda), Ruby (rubygems.org), Rust (crates.io, static.rust-lang.org), Swift, HashiCorp (registry.terraform.io), JSON Schema (json-schema.org, json.schemastore.org), Playwright browser downloads, and Linux distribution mirrors for Ubuntu, Debian, Fedora, CentOS, Alpine, Arch, SUSE and Red Hat, plus Kubernetes package hosts.

ActionSourceUser-AgentOther signals
CLI web_fetchDeveloper IP or their sandbox proxyNot documentedMarkdown-preferring Accept; one request per page window is possible if the model pages inferred
CLI web_search None None Your site is not contacted
Cloud agent Bash curl to a non-allowlisted site None None The request never leaves the sandbox; the PR shows a firewall warning
Cloud agent Playwright to an allowlisted hostGitHub-hosted sandboxLikely HeadlessChrome inferredFull browser load with sub-resources

For the cloud agent, the hosts that matter are the ones on the allowlist. A library documented only on a vanity domain is invisible to curl inside the sandbox, whereas a README on GitHub or a package page on npm, PyPI, crates.io, pkg.go.dev, NuGet or pub.dev is reachable by default. So putting complete usage docs in the package README and the repository does double duty for Copilot’s cloud agent, and there’s more on that in GitHub as a front door and package registries.

For Copilot CLI, the two levers you control are markdown content negotiation and front-loaded content, since the tool asks for markdown and windows pages at 20,000 characters. Search placement depends on whatever engine sits behind GitHub’s MCP server, and GitHub hasn’t named it. You can compare Copilot with other agents in the matrix and use the test catalog to measure it yourself.

  1. CLI fetch headers. Approve a logging endpoint with --allow-url and ask Copilot CLI to fetch it. Record UA, Accept, Accept-Language, Sec-Fetch-* and the source IP.
  2. Markdown negotiation. Serve different marker phrases for text/markdown and text/html. Expected: Copilot CLI quotes the markdown marker.
  3. JS rendering. Serve a page whose phrase is injected by JavaScript. We don’t know what to expect here, but a blank result would show there’s no rendering.
  4. Windowing. Put a marker after 25,000 characters. Expected: found only if the model pages with start_index.
  5. robots.txt. Disallow the probe path and watch for a robots.txt request before the page.
  6. Cloud agent firewall. Assign the cloud agent an issue that requires reading a page on your domain. Expected: a firewall warning in the PR, and no request in your logs.
  • The Copilot CLI fetch User-Agent, its JavaScript behaviour and its robots.txt behaviour are all undocumented, and test 1 and test 5 would settle the first and last.
  • GitHub hasn’t named the search engine behind github-mcp-server/web_search or behind cloud agent web search.
  • This research didn’t cover Copilot inside VS Code and other IDEs, and its fetch path there may differ from the CLI.

Last reviewed 2026-12-02 against Copilot CLI changelog through 1.0.119 and GitHub docs as of that date. This site is re-reviewed monthly; see maintenance.