Repository navigation
Description
Description
Copilot CLI cannot complete its startup/model-discovery request to api.individual.githubcopilot.com on a managed corporate network. The TLS handshake is rejected with a fatal handshake_failure alert (TLS alert 40), which Windows Schannel surfaces as SEC_E_ILLEGAL_MESSAGE (0x80090326) / os error -2146893018.
The same error is surfaced by Paseo (an ACP host that launches copilot --acp), but it originates from the CLI's own HTTP client.
Environment
- OS: Windows 11 (x64)
- Copilot CLI:
1.0.114 - GitHub CLI:
2.105.0, authenticated (gh auth statusOK) - Host app: Paseo
0.16.2(only launchescopilot --acp; not the cause) - Network: managed corporate network with DNS filtering and VPN
Exact error
error sending request for url (https://api.individual.githubcopilot.com/meta):
client error (Connect): The message received was unexpected or badly formatted.
(os error -2146893018)
CLI log (~/.copilot/logs/...): ACP request failed {"method":"session/new","error":"... os error -2146893018 (-32603)"}
Diagnostics performed
- Clock / proxy ruled out. System time is correct and NTP-synced. No
HTTP_PROXY/HTTPS_PROXY/ALL_PROXYenv vars; WinHTTP is set to direct access. - DNS is filtered. System resolvers return
146.112.61.104(a Cisco/OpenDNS interception address) forapi.individual.githubcopilot.com. Public resolvers return the real chain:api.individual.githubcopilot.com→api.githubcopilot.com→glb-db52c2cf8be544.github.com→140.82.112.x. - Handshake fails even on the real IP. Pinning to the real GitHub address with
curl --resolve api.individual.githubcopilot.com:443:140.82.114.22still produces a fatal TLS alert:Node.js (schannel: next InitializeSecurityContext failed: SEC_E_ILLEGAL_MESSAGE (0x80090326) curl: (35) schannel: next InitializeSecurityContext failed ...https.get) independently reportsSSL alert number 40— so this is not curl/Schannel-specific. - Hostname-specific. Against the same IP, SNI
api.githubcopilot.comcompletes TLS 1.3 successfully (certCN=*.githubcopilot.com, verification OK) and/metareturns HTTP 400/404.github.comandapi.github.comreturn HTTP 200. - Proxy bypass does not help. Direct connection and connection through the local HTTP proxy both produce the identical TLS failure (proxy CONNECT succeeds, then TLS fails).
- Not an auth problem.
gh auth statusis valid and the CLI is signed in; failure occurs before any HTTP response.
Expected behavior
GET https://api.individual.githubcopilot.com/meta should complete TLS and return a response so the CLI can discover models.
Actual behavior
TLS handshake aborts with fatal alert 40 at Connect, so every copilot --acp session immediately errors.
Questions
- Is
api.individual.githubcopilot.comstill the correct endpoint for Individual plans, or has it moved toapi.githubcopilot.com/ a per-subscription endpoint? - Is there a supported override for the API base URL that works with the existing CLI OAuth sign-in? (
COPILOT_PROVIDER_BASE_URLappears intended for BYOK only — swapping inapi.githubcopilot.comwith the OAuth token returns400 Authorization header is badly formatted.) - Are there recommended settings for networks that filter or intercept this hostname?
Notes
- Related but different symptom: GitHub Copilot Chat fails with ETIMEDOUT when connecting to api.individual.githubcopilot.com microsoft/vscode#347892 (ETIMEDOUT, macOS).
- I have not installed MITM root CAs, disabled certificate validation, or edited the hosts file as workarounds.
- No credentials or tokens are included in this report.
Activity