Repository navigation
Copilot should use the appropriate subscription-based routing within /model experience #346
Description
Activity
Thank you for raising this concern, @johnsockwell-tributetech! 🙇
I'm still trying to figure out what is going on here, but first I wanted to demonstrate what should be shown via the latest release:
$ npx -y @github/copilot@latest ┌── ──┐ │ ▄██████▄ │ Welcome to GitHub ▄█▀▀▀▀▀██▀▀▀▀▀█▄ █████┐ █████┐ █████┐ ██┐██┐ █████┐ ██████┐ ▐█ ▐▌ █▌ ██┌───┘██┌──██┐██┌─██┐██│██│ ██┌──██┐└─██┌─┘ ▐█▄ ▄██▄ ▄█▌ ██│ ██│ ██│█████┌┘██│██│ ██│ ██│ ██│ ▄▄███████▀▀███████▄▄ ██│ ██│ ██│██┌──┘ ██│██│ ██│ ██│ ██│ ████ ▄ ▄ ████ └█████┐└█████┌┘██│ ██│██████┐└█████┌┘ ██│ ████ █ █ ████ └────┘ └────┘ └─┘ └─┘└─────┘ └────┘ └─┘ ▀███▄ ▄███▀ │ CLI Version 0.0.343 ▀▀████████████▀▀ │ └── ──┘ Version 0.0.343 · Commit 5847051 Copilot can write, test and debug code right from your terminal. Describe a task to get started or enter ? for help. Copilot uses AI, check for mistakes. ● Logged in with gh as user: andyfeller ● Connected to GitHub MCP Server Select Model Choose the AI model to use for Copilot CLI. The selected model will be persisted and used for future sessions. ❯ 1. Claude Sonnet 4.5 (1x) (default) (current) 2. Claude Sonnet 4 (1x) 3. Claude Haiku 4.5 (0.33x) 4. GPT-5 (1x) 5. Cancel (Esc) Confirm with number keys or ↑↓ keys and Enter, Cancel with EscOutside of whether you see any useful information in
~/.copilot/logs, I'm gonna see if I can reproduce this or at least figure out why all options are coming up blank 🤔@johnsockwell-tributetech : I'd like to try increasing the log level using
--log-level allto see what is going on here. While I understand 3 of 4 supported models are enabled by policy, I wonder about the new Haiku model but also if there's something else going on here.I'm seeing the same thing.
My log with
--log-level allenabled looks like this. I'm using Fedora 42 with node 24 installed via nvm.2025-10-20T02:23:22.087Z [INFO] Starting Copilot CLI: 0.0.346 Commit: 74e4d22 2025-10-20T02:23:22.087Z [INFO] Node.js version: v24.10.0 2025-10-20T02:23:22.620Z [LOG] Using Copilot API endpoint: https://api.individual.githubcopilot.com/mcp/readonly 2025-10-20T02:23:22.622Z [LOG] Starting remote MCP client for github-mcp-server with url: https://api.individual.githubcopilot.com/mcp/readonly 2025-10-20T02:23:22.623Z [LOG] Creating MCP client for github-mcp-server... 2025-10-20T02:23:22.639Z [LOG] Connecting MCP client for github-mcp-server... 2025-10-20T02:23:22.743Z [DEBUG] Creating copilot-client for integration ID copilot-developer-cli with token authentication. User-agent: copilot/0.0.346 (linux v24.10.0) OpenAI/5.20.1 2025-10-20T02:23:23.301Z [LOG] MCP transport for github-mcp-server closed 2025-10-20T02:23:23.303Z [ERROR] Failed to start MCP client for remote server github-mcp-server: TypeError: fetch failed 2025-10-20T02:23:23.303Z [LOG] GitHub MCP server configured after authentication 2025-10-20T02:23:23.330Z [ERROR] Failed to list models: 421 : Misdirected RequestHave the same issue here since v.0.0.330
johnsockwell-tributetech commented
on Oct 20, 2025 AuthorMore actions@johnsockwell-tributetech : I'd like to try increasing the log level using
--log-level allto see what is going on here. While I understand 3 of 4 supported models are enabled by policy, I wonder about the new Haiku model but also if there's something else going on here.@andyfeller Below are logs captured using
npx -y @github/copilot@0.0.xxx --log-level allwith the three versions. I started each version & attempted the/modelcommand then exited.v0.0.330
2025-10-20T15:13:51.251Z [LOG] Starting MCP client for Docker_MCP_Toolkit with command: docker and args: mcp,gateway,run 2025-10-20T15:13:51.252Z [LOG] Starting MCP client for Docker_MCP_Toolkit with command: docker and args: mcp,gateway,run 2025-10-20T15:13:51.252Z [LOG] Creating MCP client for Docker_MCP_Toolkit... 2025-10-20T15:13:51.254Z [LOG] Connecting MCP client for Docker_MCP_Toolkit... 2025-10-20T15:13:51.380Z [LOG] [mcp server Docker_MCP_Toolkit stderr] - Reading configuration... - Reading registry from registry.yaml 2025-10-20T15:13:51.380Z [LOG] [mcp server Docker_MCP_Toolkit stderr] - Reading catalog from [docker-mcp.yaml] 2025-10-20T15:13:51.396Z [LOG] [mcp server Docker_MCP_Toolkit stderr] - Reading config from config.yaml 2025-10-20T15:13:51.396Z [LOG] [mcp server Docker_MCP_Toolkit stderr] - Reading tools from tools.yaml 2025-10-20T15:13:51.396Z [LOG] [mcp server Docker_MCP_Toolkit stderr] - Configuration read in 16.9365ms 2025-10-20T15:13:51.396Z [LOG] [mcp server Docker_MCP_Toolkit stderr] - Using images: - mcp/context7@sha256:1174e6a29634a83b2be93ac1fefabf63265f498c02c72201fe3464e687dd8836 2025-10-20T15:13:51.403Z [LOG] [mcp server Docker_MCP_Toolkit stderr] > Images pulled in 6.718ms - Those servers are enabled: context7 - Listing MCP tools... 2025-10-20T15:13:51.403Z [LOG] [mcp server Docker_MCP_Toolkit stderr] - Running mcp/context7 with [run --rm -i --init --security-opt no-new-privileges --cpus 1 --memory 2Gb --pull never -l docker-mcp=true -l docker-mcp-tool-type=mcp -l docker-mcp-name=context7 -l docker-mcp-transport=stdio -e MCP_TRANSPORT] 2025-10-20T15:13:51.756Z [LOG] [mcp server Docker_MCP_Toolkit stderr] > context7: (2 tools) 2025-10-20T15:13:51.828Z [LOG] [mcp server Docker_MCP_Toolkit stderr] > 2 tools listed in 425.090541ms 2025-10-20T15:13:51.829Z [LOG] [mcp server Docker_MCP_Toolkit stderr] - Watching for configuration updates... > Initialized in 449.088667ms > Start stdio server 2025-10-20T15:13:51.831Z [LOG] MCP client for Docker_MCP_Toolkit connected, took 577ms 2025-10-20T15:13:51.831Z [LOG] Started MCP client for Docker_MCP_Toolkit 2025-10-20T15:13:51.842Z [LOG] [mcp server Docker_MCP_Toolkit stderr] - Client initialized github-copilot-developer@1.0.0 2025-10-20T15:13:52.476Z [LOG] Using Copilot API endpoint: https://api.individual.githubcopilot.com/mcp/readonly 2025-10-20T15:13:52.476Z [LOG] Starting remote MCP client for github-mcp-server with url: https://api.individual.githubcopilot.com/mcp/readonly 2025-10-20T15:13:52.476Z [LOG] Creating MCP client for github-mcp-server... 2025-10-20T15:13:52.478Z [LOG] Connecting MCP client for github-mcp-server... 2025-10-20T15:13:52.904Z [LOG] MCP transport for github-mcp-server closed 2025-10-20T15:13:52.906Z [ERROR] Failed to start MCP client for remote server github-mcp-server: Error: Error POSTing to endpoint (HTTP 421): Misdirected Request 2025-10-20T15:13:52.906Z [LOG] GitHub MCP server configured after authenticationv0.0.331
2025-10-20T15:15:26.224Z [LOG] Starting MCP client for Docker_MCP_Toolkit with command: docker and args: mcp,gateway,run 2025-10-20T15:15:26.224Z [LOG] Starting MCP client for Docker_MCP_Toolkit with command: docker and args: mcp,gateway,run 2025-10-20T15:15:26.225Z [LOG] Creating MCP client for Docker_MCP_Toolkit... 2025-10-20T15:15:26.227Z [LOG] Connecting MCP client for Docker_MCP_Toolkit... 2025-10-20T15:15:26.417Z [LOG] [mcp server Docker_MCP_Toolkit stderr] - Reading configuration... - Reading registry from registry.yaml 2025-10-20T15:15:26.417Z [LOG] [mcp server Docker_MCP_Toolkit stderr] - Reading catalog from [docker-mcp.yaml] 2025-10-20T15:15:26.434Z [LOG] [mcp server Docker_MCP_Toolkit stderr] - Reading config from config.yaml 2025-10-20T15:15:26.434Z [LOG] [mcp server Docker_MCP_Toolkit stderr] - Reading tools from tools.yaml 2025-10-20T15:15:26.434Z [LOG] [mcp server Docker_MCP_Toolkit stderr] - Configuration read in 16.799958ms 2025-10-20T15:15:26.435Z [LOG] [mcp server Docker_MCP_Toolkit stderr] - Using images: - mcp/context7@sha256:1174e6a29634a83b2be93ac1fefabf63265f498c02c72201fe3464e687dd8836 2025-10-20T15:15:26.443Z [LOG] [mcp server Docker_MCP_Toolkit stderr] > Images pulled in 8.370875ms - Those servers are enabled: context7 - Listing MCP tools... 2025-10-20T15:15:26.444Z [LOG] [mcp server Docker_MCP_Toolkit stderr] - Running mcp/context7 with [run --rm -i --init --security-opt no-new-privileges --cpus 1 --memory 2Gb --pull never -l docker-mcp=true -l docker-mcp-tool-type=mcp -l docker-mcp-name=context7 -l docker-mcp-transport=stdio -e MCP_TRANSPORT] 2025-10-20T15:15:26.473Z [DEBUG] Creating copilot-client for integration ID copilot-developer-cli with token authentication. User-agent: copilot/0.0.331 (darwin v24.10.0) OpenAI/4.104.0 2025-10-20T15:15:26.635Z [LOG] [mcp server Docker_MCP_Toolkit stderr] > context7: (2 tools) 2025-10-20T15:15:26.663Z [ERROR] Failed to list models: Misdirected Request 2025-10-20T15:15:26.704Z [LOG] [mcp server Docker_MCP_Toolkit stderr] > 2 tools listed in 261.177541ms 2025-10-20T15:15:26.704Z [LOG] [mcp server Docker_MCP_Toolkit stderr] - Watching for configuration updates... > Initialized in 287.327167ms > Start stdio server 2025-10-20T15:15:26.706Z [LOG] MCP client for Docker_MCP_Toolkit connected, took 479ms 2025-10-20T15:15:26.706Z [LOG] Started MCP client for Docker_MCP_Toolkit 2025-10-20T15:15:26.713Z [LOG] [mcp server Docker_MCP_Toolkit stderr] - Client initialized github-copilot-developer@1.0.0 2025-10-20T15:15:26.811Z [LOG] Using Copilot API endpoint: https://api.individual.githubcopilot.com/mcp/readonly 2025-10-20T15:15:26.811Z [LOG] Starting remote MCP client for github-mcp-server with url: https://api.individual.githubcopilot.com/mcp/readonly 2025-10-20T15:15:26.811Z [LOG] Creating MCP client for github-mcp-server... 2025-10-20T15:15:26.812Z [LOG] Connecting MCP client for github-mcp-server... 2025-10-20T15:15:26.915Z [LOG] MCP transport for github-mcp-server closed 2025-10-20T15:15:26.915Z [ERROR] Failed to start MCP client for remote server github-mcp-server: Error: Error POSTing to endpoint (HTTP 421): Misdirected Request 2025-10-20T15:15:26.915Z [LOG] GitHub MCP server configured after authentication 2025-10-20T15:15:33.607Z [LOG] MCP transport for Docker_MCP_Toolkit closed 2025-10-20T15:15:33.607Z [LOG] MCP client for Docker_MCP_Toolkit closed 2025-10-20T15:15:33.610Z [LOG] [mcp server Docker_MCP_Toolkit stderr] > Stop watching for updates 2025-10-20T15:15:33.613Z [LOG] [mcp server Docker_MCP_Toolkit stderr] context canceled 2025-10-20T15:15:33.615Z [LOG] MCP transport for Docker_MCP_Toolkit closed 2025-10-20T15:15:33.615Z [LOG] MCP client for Docker_MCP_Toolkit closedv0.0.343
2025-10-20T15:17:01.821Z [INFO] Starting Copilot CLI: 0.0.343 Commit: 5847051 2025-10-20T15:17:01.821Z [INFO] Node.js version: v24.10.0 2025-10-20T15:17:02.123Z [LOG] Starting MCP client for Docker_MCP_Toolkit with command: docker and args: mcp,gateway,run 2025-10-20T15:17:02.123Z [LOG] Starting MCP client for Docker_MCP_Toolkit with command: docker and args: mcp,gateway,run 2025-10-20T15:17:02.123Z [LOG] Creating MCP client for Docker_MCP_Toolkit... 2025-10-20T15:17:02.125Z [LOG] Connecting MCP client for Docker_MCP_Toolkit... 2025-10-20T15:17:02.329Z [LOG] [mcp server Docker_MCP_Toolkit stderr] - Reading configuration... - Reading registry from registry.yaml 2025-10-20T15:17:02.329Z [LOG] [mcp server Docker_MCP_Toolkit stderr] - Reading catalog from [docker-mcp.yaml] 2025-10-20T15:17:02.346Z [LOG] [mcp server Docker_MCP_Toolkit stderr] - Reading config from config.yaml 2025-10-20T15:17:02.346Z [LOG] [mcp server Docker_MCP_Toolkit stderr] - Reading tools from tools.yaml 2025-10-20T15:17:02.346Z [LOG] [mcp server Docker_MCP_Toolkit stderr] - Configuration read in 17.357959ms 2025-10-20T15:17:02.347Z [LOG] [mcp server Docker_MCP_Toolkit stderr] - Using images: - mcp/context7@sha256:1174e6a29634a83b2be93ac1fefabf63265f498c02c72201fe3464e687dd8836 2025-10-20T15:17:02.356Z [LOG] [mcp server Docker_MCP_Toolkit stderr] > Images pulled in 8.5475ms - Those servers are enabled: context7 - Listing MCP tools... 2025-10-20T15:17:02.356Z [LOG] [mcp server Docker_MCP_Toolkit stderr] - Running mcp/context7 with [run --rm -i --init --security-opt no-new-privileges --cpus 1 --memory 2Gb --pull never -l docker-mcp=true -l docker-mcp-tool-type=mcp -l docker-mcp-name=context7 -l docker-mcp-transport=stdio -e MCP_TRANSPORT] 2025-10-20T15:17:02.378Z [DEBUG] Creating copilot-client for integration ID copilot-developer-cli with token authentication. User-agent: copilot/0.0.343 (darwin v24.10.0) OpenAI/5.20.1 2025-10-20T15:17:02.541Z [LOG] [mcp server Docker_MCP_Toolkit stderr] > context7: (2 tools) 2025-10-20T15:17:02.615Z [LOG] [mcp server Docker_MCP_Toolkit stderr] > 2 tools listed in 259.154375ms 2025-10-20T15:17:02.615Z [LOG] [mcp server Docker_MCP_Toolkit stderr] - Watching for configuration updates... > Initialized in 285.979917ms > Start stdio server 2025-10-20T15:17:02.618Z [LOG] MCP client for Docker_MCP_Toolkit connected, took 493ms 2025-10-20T15:17:02.618Z [LOG] Started MCP client for Docker_MCP_Toolkit 2025-10-20T15:17:02.629Z [LOG] [mcp server Docker_MCP_Toolkit stderr] - Client initialized github-copilot-developer@1.0.0 2025-10-20T15:17:02.729Z [LOG] Using Copilot API endpoint: https://api.individual.githubcopilot.com/mcp/readonly 2025-10-20T15:17:02.729Z [LOG] Starting remote MCP client for github-mcp-server with url: https://api.individual.githubcopilot.com/mcp/readonly 2025-10-20T15:17:02.729Z [LOG] Creating MCP client for github-mcp-server... 2025-10-20T15:17:02.730Z [LOG] Connecting MCP client for github-mcp-server... 2025-10-20T15:17:02.817Z [ERROR] Failed to list models: 421 : Misdirected Request 2025-10-20T15:17:02.832Z [LOG] MCP transport for github-mcp-server closed 2025-10-20T15:17:02.832Z [ERROR] Failed to start MCP client for remote server github-mcp-server: TypeError: fetch failed 2025-10-20T15:17:02.832Z [LOG] GitHub MCP server configured after authenticationReacted by Andy Feller@johnsockwell-tributetech @jianie365 @mkeesey : thank you all for the follow up and additional logs; this is exactly what I needed and will help me get to the bottom of this! 🙇
I want to assure you this is my priority to get to the bottom today.
My working theory is the
421 Misdirect Requestresponse stems fromcopilotresolving a different subscription API endpoint than the Copilot license you have:- CfI: https://api.individual.githubcopilot.com
- CfB: https://api.business.githubcopilot.com
- CfE: https://api.enterprise.githubcopilot.com
This endpoint is resolved via GraphQL based on how you are authenticated:
query { viewer{ copilotEndpoints{ api } } }
I'm going to continue investigating what would have changed between
0.0.330and0.0.331to affect the endpoint 🤔For more information, see Managing GitHub Copilot access to your enterprise's network
@johnsockwell-tributetech : I'd like to ask you to
/logoutand/loginto ensure you are authenticated against the GitHub Copilot CLI OAuth app and your business account.johnsockwell-tributetech commented
on Oct 21, 2025 AuthorMore actions@johnsockwell-tributetech : I'd like to ask you to
/logoutand/loginto ensure you are authenticated against the GitHub Copilot CLI OAuth app and your business account.@andyfeller : below are the steps I performed & associated log.
npx -y @github/copilot@0.0.343 --log-level all- ran the
/logoutcommand - ran the
/logincommand & authenticated with GitHub.com - ran the
/modelcommand - Did not see any models listed.
Below are the logs from this session:
2025-10-21T18:10:29.024Z [INFO] Starting Copilot CLI: 0.0.343 Commit: 5847051 2025-10-21T18:10:29.024Z [INFO] Node.js version: v24.10.0 2025-10-21T18:10:29.112Z [LOG] Starting MCP client for Docker_MCP_Toolkit with command: docker and args: mcp,gateway,run 2025-10-21T18:10:29.112Z [LOG] Starting MCP client for Docker_MCP_Toolkit with command: docker and args: mcp,gateway,run 2025-10-21T18:10:29.112Z [LOG] Creating MCP client for Docker_MCP_Toolkit... 2025-10-21T18:10:29.114Z [LOG] Connecting MCP client for Docker_MCP_Toolkit... 2025-10-21T18:10:29.117Z [ERROR] Failed to start MCP client for Docker_MCP_Toolkit: Error: spawn docker ENOENT 2025-10-21T18:10:29.143Z [LOG] MCP transport for Docker_MCP_Toolkit closed 2025-10-21T18:10:29.332Z [DEBUG] Creating copilot-client for integration ID copilot-developer-cli with token authentication. User-agent: copilot/0.0.343 (darwin v24.10.0) OpenAI/5.20.1 2025-10-21T18:10:29.696Z [ERROR] Failed to list models: 421 : Misdirected Request 2025-10-21T18:10:29.829Z [LOG] Using Copilot API endpoint: https://api.individual.githubcopilot.com/mcp/readonly 2025-10-21T18:10:29.830Z [LOG] Starting remote MCP client for github-mcp-server with url: https://api.individual.githubcopilot.com/mcp/readonly 2025-10-21T18:10:29.830Z [LOG] Creating MCP client for github-mcp-server... 2025-10-21T18:10:29.831Z [LOG] Connecting MCP client for github-mcp-server... 2025-10-21T18:10:29.892Z [LOG] MCP transport for github-mcp-server closed 2025-10-21T18:10:29.892Z [ERROR] Failed to start MCP client for remote server github-mcp-server: TypeError: fetch failed 2025-10-21T18:10:29.892Z [LOG] GitHub MCP server configured after authentication 2025-10-21T18:11:17.253Z [LOG] Using Copilot API endpoint: https://api.individual.githubcopilot.com/mcp/readonly 2025-10-21T18:11:17.253Z [LOG] Starting remote MCP client for github-mcp-server with url: https://api.individual.githubcopilot.com/mcp/readonly 2025-10-21T18:11:17.253Z [LOG] Creating MCP client for github-mcp-server... 2025-10-21T18:11:17.255Z [LOG] Connecting MCP client for github-mcp-server... 2025-10-21T18:11:17.364Z [LOG] MCP transport for github-mcp-server closed 2025-10-21T18:11:17.364Z [ERROR] Failed to start MCP client for remote server github-mcp-server: TypeError: fetch failed 2025-10-21T18:11:17.364Z [LOG] GitHub MCP server configured after authentication 2025-10-21T18:11:17.512Z [DEBUG] Creating copilot-client for integration ID copilot-developer-cli with token authentication. User-agent: copilot/0.0.343 (darwin v24.10.0) OpenAI/5.20.1 2025-10-21T18:11:17.635Z [ERROR] Failed to list models: 421 : Misdirected RequestReacted by Andy FellerThanks, @johnsockwell-tributetech. I have a suspicion that
copilotis picking up on multiple authentication tokens while trying to resolve the Copilot API to talk with. This information is currently only displayed in the console and not the logs, so I'm working on a hotfix to capture more information about what is going on and provide better guidance to resolve.7 remaining items
@johnsockwell-tributetech : When it is convenient, I would appreciate your help testing out the logging changes in
0.0.350. Meanwhile, I'm working to put more logging in place and investigating howcopilotis being told to hitapi.individual.githubcopilot.com. 🙇@johnsockwell-tributetech : Outside of
copilot, I would like to enable a feature flag that affects how we resolve Copilot information around your account if you are okay with it.johnsockwell-tributetech commented
on Oct 27, 2025 AuthorMore actions@johnsockwell-tributetech : When it is convenient, I would appreciate your help testing out the logging changes in
0.0.350. Meanwhile, I'm working to put more logging in place and investigating howcopilotis being told to hitapi.individual.githubcopilot.com. 🙇@andyfeller I took a pass at my tests using the latest copilot version. Steps & logs are below:
- run
npx -y @github/copilot@latest --log-level all - run
/logoutcommand & exit - run
npx -y @github/copilot@latest --log-level all - run
/modelcommand
See:
Select Model Choose the AI model to use for Copilot CLI. The selected model will be persisted and used for future sessions. ❯ 1. Claude Sonnet 4.5 (1x) (default) 2. Claude Sonnet 4 (1x) 3. Claude Haiku 4.5 (0.33x) 4. GPT-5 (1x) 5. Cancel (Esc) Confirm with number keys or ↑↓ keys and Enter, Cancel with Esc- run
/logincommand & successfully authenticate (use Github.com account.) - run
/modelcommand
See:
Select Model Choose the AI model to use for Copilot CLI. The selected model will be persisted and used for future sessions. Some models are not available due to configured policy. ❯ 1. Cancel (Esc) Confirm with number keys or ↑↓ keys and Enter, Cancel with Esc Logs from the session:2025-10-27T17:33:15.236Z [INFO] Starting Copilot CLI: 0.0.351
Commit: 90770bc
2025-10-27T17:33:15.236Z [INFO] Node.js version: v24.10.0
2025-10-27T17:33:15.274Z [INFO] Login status unknown
2025-10-27T17:33:15.291Z [ERROR] Error checking for updates: TypeError: Cannot read properties of undefined (reading 'paths')
2025-10-27T17:33:15.313Z [LOG] Starting MCP client for Docker_MCP_Toolkit with command: docker and args: mcp,gateway,run
2025-10-27T17:33:15.313Z [LOG] Starting MCP client for Docker_MCP_Toolkit with command: docker and args: mcp,gateway,run
2025-10-27T17:33:15.314Z [LOG] Creating MCP client for Docker_MCP_Toolkit...
2025-10-27T17:33:15.317Z [LOG] Connecting MCP client for Docker_MCP_Toolkit...
2025-10-27T17:33:15.320Z [ERROR] Failed to start MCP client for Docker_MCP_Toolkit: Error: spawn docker ENOENT
2025-10-27T17:33:15.321Z [START-GROUP] gh auth token --hostname github.com
2025-10-27T17:33:15.323Z [ERROR] Error: spawn gh ENOENT
2025-10-27T17:33:15.323Z [END-GROUP]
2025-10-27T17:33:15.324Z [DEBUG] Error checking GitHub CLI: Error: spawn gh ENOENT (stderr: )
2025-10-27T17:33:15.328Z [INFO] Logged out
2025-10-27T17:33:15.350Z [LOG] MCP transport for Docker_MCP_Toolkit closed
2025-10-27T17:33:15.351Z [START-GROUP] gh auth token --hostname github.com
2025-10-27T17:33:15.353Z [ERROR] Error: spawn gh ENOENT
2025-10-27T17:33:15.353Z [END-GROUP]
2025-10-27T17:33:15.353Z [DEBUG] Error checking GitHub CLI: Error: spawn gh ENOENT (stderr: )
2025-10-27T17:40:04.917Z [DEBUG] Fetched Copilot URL: 200 https://api.individual.githubcopilot.com
2025-10-27T17:40:04.918Z [LOG] Starting remote MCP client for github-mcp-server with url: https://api.individual.githubcopilot.com/mcp/readonly
2025-10-27T17:40:04.919Z [LOG] Creating MCP client for github-mcp-server...
2025-10-27T17:40:04.922Z [LOG] Connecting MCP client for github-mcp-server...
2025-10-27T17:40:05.322Z [LOG] MCP transport for github-mcp-server closed
2025-10-27T17:40:05.322Z [ERROR] Failed to start MCP client for remote server github-mcp-server: TypeError: fetch failed
2025-10-27T17:40:05.322Z [LOG] GitHub MCP server configured after authentication
2025-10-27T17:40:05.336Z [INFO] Logged in as user: johnsockwell-tributetech
2025-10-27T17:40:05.500Z [DEBUG] Fetched Copilot URL: 200 https://api.individual.githubcopilot.com
2025-10-27T17:40:05.501Z [DEBUG] Creating copilot-client for integration ID copilot-developer-cli with token authentication. User-agent: copilot/0.0.351 (darwin v24.10.0) OpenAI/5.20.1
2025-10-27T17:40:06.867Z [ERROR] Failed to list models: 421 : Misdirected Request2025-10-27T17:40:06.867Z [ERROR] Verify the authenticated user against subscription-based Copilot API endpoint used: https://api.individual.githubcopilot.com
Reacted by 沉睡的木木夕- run
johnsockwell-tributetech commented
on Oct 27, 2025 AuthorMore actions@johnsockwell-tributetech : Outside of
copilot, I would like to enable a feature flag that affects how we resolve Copilot information around your account if you are okay with it.I approve.
Reacted by Andy Feller@johnsockwell-tributetech : I've toggled the feature flag and appreciate if you let me know if that has made any change here. 🙇
3. npx -y @github/copilot@latest --log-level all
thanks, this working for me
johnsockwell-tributetech commented
on Oct 29, 2025 AuthorMore actions@johnsockwell-tributetech : I've toggled the feature flag and appreciate if you let me know if that has made any change here. 🙇
@andyfeller : I've encountered some conflicting results:
- Yesterday, when I ran the
/modelcommand I saw the expected list of models including Haiku-4.5.- I was able to successfully change my model to Haiku.
- I sent "hello world" through the input & received an expected over quota message.
- Unfortunately, I don't have logs from this session.
- Today, when I run
/modelcommand I encounter the behavior described below.- I've attempted logging out of both
gh&copilot& logging in with each individually with no change. - I've attempted using both v0.0.352 & v0.0.353 with no change.
- I've attempted logging out of both
I'm unable to identify what changed between my attempts yesterday & today.
Below are the steps I performed & logs:
- run
npx -y @github/copilot@latest --log-level all - run
/logoutcommand - run
/logincommand & authenticate - run
/modelcommand & see:
Select Model Choose the AI model to use for Copilot CLI. The selected model will be persisted and used for future sessions. Some models are not available due to configured policy. ❯ 1. Cancel (Esc) Confirm with number keys or ↑↓ keys and Enter, Cancel with EscBelow are the logs from this session:
2025-10-29T13:19:31.851Z [INFO] Starting Copilot CLI: 0.0.353 Commit: f8fd3e3 2025-10-29T13:19:31.851Z [INFO] Node.js version: v24.10.0 2025-10-29T13:19:31.885Z [INFO] Login status unknown 2025-10-29T13:19:31.902Z [ERROR] Error checking for updates: TypeError: Cannot read properties of undefined (reading 'paths') 2025-10-29T13:19:31.921Z [LOG] Starting MCP client for Docker_MCP_Toolkit with command: docker and args: mcp,gateway,run 2025-10-29T13:19:31.921Z [LOG] Starting MCP client for Docker_MCP_Toolkit with command: docker and args: mcp,gateway,run 2025-10-29T13:19:31.921Z [LOG] Creating MCP client for Docker_MCP_Toolkit... 2025-10-29T13:19:31.924Z [LOG] Connecting MCP client for Docker_MCP_Toolkit... 2025-10-29T13:19:31.927Z [ERROR] Failed to start MCP client for Docker_MCP_Toolkit: Error: spawn docker ENOENT 2025-10-29T13:19:31.945Z [INFO] Logged in as user: johnsockwell-tributetech 2025-10-29T13:19:31.984Z [LOG] MCP transport for Docker_MCP_Toolkit closed 2025-10-29T13:19:32.151Z [DEBUG] Fetched Copilot URL: 200 https://api.individual.githubcopilot.com 2025-10-29T13:19:32.152Z [LOG] Starting remote MCP client for github-mcp-server with url: https://api.individual.githubcopilot.com/mcp/readonly 2025-10-29T13:19:32.152Z [LOG] Creating MCP client for github-mcp-server... 2025-10-29T13:19:32.152Z [LOG] Connecting MCP client for github-mcp-server... 2025-10-29T13:19:32.223Z [DEBUG] Fetched Copilot URL: 200 https://api.individual.githubcopilot.com 2025-10-29T13:19:32.223Z [DEBUG] Creating copilot-client for integration ID copilot-developer-cli with token authentication. User-agent: copilot/0.0.353 (darwin v24.10.0) OpenAI/5.20.1 2025-10-29T13:19:32.331Z [ERROR] Failed to list models: 403 : unauthorized: not authorized to use this Copilot feature 2025-10-29T13:19:32.348Z [LOG] MCP transport for github-mcp-server closed 2025-10-29T13:19:32.348Z [ERROR] Failed to start MCP client for remote server github-mcp-server: TypeError: fetch failed 2025-10-29T13:19:32.348Z [LOG] GitHub MCP server configured after authentication 2025-10-29T13:19:39.230Z [INFO] Logged out 2025-10-29T13:20:02.184Z [DEBUG] Fetched Copilot URL: 200 https://api.individual.githubcopilot.com 2025-10-29T13:20:02.184Z [LOG] Starting remote MCP client for github-mcp-server with url: https://api.individual.githubcopilot.com/mcp/readonly 2025-10-29T13:20:02.185Z [LOG] Creating MCP client for github-mcp-server... 2025-10-29T13:20:02.185Z [LOG] Connecting MCP client for github-mcp-server... 2025-10-29T13:20:02.471Z [LOG] MCP transport for github-mcp-server closed 2025-10-29T13:20:02.472Z [ERROR] Failed to start MCP client for remote server github-mcp-server: TypeError: fetch failed 2025-10-29T13:20:02.472Z [LOG] GitHub MCP server configured after authentication 2025-10-29T13:20:02.481Z [INFO] Logged in as user: johnsockwell-tributetech 2025-10-29T13:20:02.709Z [DEBUG] Fetched Copilot URL: 200 https://api.individual.githubcopilot.com 2025-10-29T13:20:02.710Z [DEBUG] Creating copilot-client for integration ID copilot-developer-cli with token authentication. User-agent: copilot/0.0.353 (darwin v24.10.0) OpenAI/5.20.1 2025-10-29T13:20:02.761Z [ERROR] Failed to list models: 403 : unauthorized: not authorized to use this Copilot featureReacted by Andy Feller- Yesterday, when I ran the
I finally resolved this for myself by generating a fine-grained access token on my business account, selecting all of the copilot-related permissions. Once this was set in my .zshrc file, the Copilot CLI correctly detected my business settings and loaded all the models. When trying to sign in using
gh auth loginandcopilot /loginit would always attempt to usehttps://api.individual.githubcopilot.com/and failed with the 421 misdirected error.Reacted by Andy FellerReacted by Andy FellerProviding an update:
- we are investigating some of the server-side logic used in assessing the various Copilot licenses associated with a user account and whether timeouts could be a factor in events
- this evening once GitHub Universe deployment freezes are unlocked, I've got a few more additional client logging changes I'll be releasing to verify the authentication information being used to resolve the Copilot API endpoint
I'm hopeful tomorrow that we will have a more concrete update of what is going on and what we need to resolve. 🙇
UPDATE: There is a prerelease with some final client-side logging changes I'd love for you to test out in
0.0.354-0johnsockwell-tributetech commented
on Oct 30, 2025 AuthorMore actionsProviding an update:
- we are investigating some of the server-side logic used in assessing the various Copilot licenses associated with a user account and whether timeouts could be a factor in events
- this evening once GitHub Universe deployment freezes are unlocked, I've got a few more additional client logging changes I'll be releasing to verify the authentication information being used to resolve the Copilot API endpoint
I'm hopeful tomorrow that we will have a more concrete update of what is going on and what we need to resolve. 🙇
UPDATE: There is a prerelease with some final client-side logging changes I'd love for you to test out in
0.0.354-0@andyfeller : With the prerelease version
0.0.354-0, I'm now seeing the expected model list. Notably, I seeClaude Haiku 4.5 (0.33x)listed in the model selector whenAnthropic Claude Haiku 4.5is disabled in my GitHub>settings>copilot>features. Is this expected?I'm unable to test conversations with the models until my quota resets, but
I've included my test steps & logs starting from a logged out state:- run
npx -y @github/copilot@v0.0.354-0 --log-level all - run
/modelcommand & see:
Select Model Choose the AI model to use for Copilot CLI. The selected model will be persisted and used for future sessions. ❯ 1. Claude Sonnet 4.5 (1x) (default) 2. Claude Sonnet 4 (1x) 3. Claude Haiku 4.5 (0.33x) 4. GPT-5 (1x) 5. Cancel (Esc) Confirm with number keys or ↑↓ keys and Enter, Cancel with Esc- run
/logincommand & authenticate - run
/modelcommand & see:
Select Model Choose the AI model to use for Copilot CLI. The selected model will be persisted and used for future sessions. ❯ 1. Claude Sonnet 4.5 (1x) (default) (current) 2. Claude Sonnet 4 (1x) 3. Claude Haiku 4.5 (0.33x) 4. GPT-5 (1x) 5. Cancel (Esc) Confirm with number keys or ↑↓ keys and Enter, Cancel with Esc- select
Claude Sonnet 4.5 (1x) (default) (current)
Logs from this session below:
2025-10-30T15:25:14.095Z [INFO] Starting Copilot CLI: 0.0.354-0 Commit: d0c91e7 2025-10-30T15:25:14.095Z [INFO] Node.js version: v24.10.0 2025-10-30T15:25:14.115Z [INFO] Login status unknown 2025-10-30T15:25:14.130Z [ERROR] Error checking for updates: TypeError: Cannot read properties of undefined (reading 'paths') 2025-10-30T15:25:14.143Z [LOG] Starting MCP client for Docker_MCP_Toolkit with command: docker and args: mcp,gateway,run 2025-10-30T15:25:14.143Z [LOG] Starting MCP client for Docker_MCP_Toolkit with command: docker and args: mcp,gateway,run 2025-10-30T15:25:14.143Z [LOG] Creating MCP client for Docker_MCP_Toolkit... 2025-10-30T15:25:14.145Z [LOG] Connecting MCP client for Docker_MCP_Toolkit... 2025-10-30T15:25:14.147Z [ERROR] Failed to start MCP client for Docker_MCP_Toolkit: Error: spawn docker ENOENT 2025-10-30T15:25:14.147Z [START-GROUP] gh auth token --hostname github.com 2025-10-30T15:25:14.166Z [LOG] MCP transport for Docker_MCP_Toolkit closed 2025-10-30T15:25:14.166Z [START-GROUP] gh auth token --hostname github.com 2025-10-30T15:25:14.363Z [ERROR] no oauth token found for github.com 2025-10-30T15:25:14.363Z [END-GROUP] 2025-10-30T15:25:14.363Z [DEBUG] Failed to retrieve GitHub token from CLI (exit code: 1): no oauth token found for github.com 2025-10-30T15:25:14.368Z [INFO] Logged out 2025-10-30T15:25:14.368Z [ERROR] no oauth token found for github.com 2025-10-30T15:25:14.368Z [END-GROUP] 2025-10-30T15:25:14.368Z [DEBUG] Failed to retrieve GitHub token from CLI (exit code: 1): no oauth token found for github.com 2025-10-30T15:26:43.510Z [DEBUG] Fetched Copilot URL for johnsockwell-tributetech from https://api.github.com/graphql: 200 https://api.business.githubcopilot.com 2025-10-30T15:26:43.512Z [LOG] Starting remote MCP client for github-mcp-server with url: https://api.business.githubcopilot.com/mcp/readonly 2025-10-30T15:26:43.512Z [LOG] Creating MCP client for github-mcp-server... 2025-10-30T15:26:43.514Z [LOG] Connecting MCP client for github-mcp-server... 2025-10-30T15:26:43.776Z [LOG] MCP client for github-mcp-server connected, took 262ms 2025-10-30T15:26:43.776Z [LOG] Started MCP client for remote server github-mcp-server 2025-10-30T15:26:43.776Z [LOG] GitHub MCP server configured after authentication 2025-10-30T15:26:43.794Z [INFO] Logged in as user: johnsockwell-tributetech 2025-10-30T15:26:43.926Z [DEBUG] Fetched Copilot URL for johnsockwell-tributetech from https://api.github.com/graphql: 200 https://api.business.githubcopilot.com 2025-10-30T15:26:43.926Z [DEBUG] Creating copilot-client for integration ID copilot-developer-cli with token authentication. User-agent: copilot/0.0.354-0 (darwin v24.10.0) OpenAI/5.20.1 2025-10-30T15:26:43.988Z [DEBUG] Successfully listed 31 modelsjohnsockwell-tributetech commented
on Nov 3, 2025 AuthorMore actions@andyfeller I've followed up my earlier tests now that my quota has reset. In summary, v0.0.354-0 displays the models as I'm expecting & I can successfully query. However, I suspect there may still be an issue with model permissions.
Below is a screenshot of my Settings->Copilot->Features screen:
Note Claude Sonnet 4.5 is enabled & Claude Haiku 4.5 is disabled.
Below are my testing steps beginning from a logged out state:
- run
npx -y @github/copilot@v0.0.354-0 --log-level all& see "Please use /login to sign in to use Copilot" - run
/modelcommand & see:
Select Model Choose the AI model to use for Copilot CLI. The selected model will be persisted and used for future sessions. ❯ 1. Claude Sonnet 4.5 (1x) (default) 2. Claude Sonnet 4 (1x) 3. Claude Haiku 4.5 (0.33x) 4. GPT-5 (1x) 5. Cancel (Esc) Confirm with number keys or ↑↓ keys and Enter, Cancel with Esc- run
/logincommand & successfully authenticate. - run
/modelcommand & see:
Select Model Choose the AI model to use for Copilot CLI. The selected model will be persisted and used for future sessions. ❯ 1. Claude Sonnet 4.5 (1x) (default) (current) 2. Claude Sonnet 4 (1x) 3. Claude Haiku 4.5 (0.33x) 4. GPT-5 (1x) 5. Cancel (Esc) Confirm with number keys or ↑↓ keys and Enter, Cancel with Esc- submit
hello worldin the input field & see:
> hello world ● Hello! I'm GitHub Copilot CLI, ready to help you with software engineering tasks. I can assist with: - Running commands and scripts - Reading, creating, and editing files - Working with git repositories - Searching code and repositories - And much more What would you like to do?- run
/modelcommand & select3. Claude Haiku 4.5 (0.33x) - submit
hello worldin the input field & see:
> hello world ● Hey there! I'm ready to help. What would you like me to work on? You can ask me to: - Navigate or explore code - Make code changes - Run tests or builds - Search repositories - Work with git - Or anything else related to software development What's your task?I expected to see an error when selecting or using
Claude Haiku 4.5as it is disabled in my Copilot Features.Logs from this session are attached. Apologies for all the MCP noise.
Reacted by Andy Feller- run
@andyfeller I've followed up my earlier tests now that my quota has reset. In summary, v0.0.354-0 displays the models as I'm expecting & I can successfully query. However, I suspect there may still be an issue with model permissions.
Below is a screenshot of my Settings->Copilot->Features screen:
Note Claude Sonnet 4.5 is enabled & Claude Haiku 4.5 is disabled.
Below are my testing steps beginning from a logged out state:- run
npx -y @github/copilot@v0.0.354-0 --log-level all& see "Please use /login to sign in to use Copilot" - run
/modelcommand & see:
Select Model Choose the AI model to use for Copilot CLI. The selected model will be persisted and used for future sessions. ❯ 1. Claude Sonnet 4.5 (1x) (default) 2. Claude Sonnet 4 (1x) 3. Claude Haiku 4.5 (0.33x) 4. GPT-5 (1x) 5. Cancel (Esc) Confirm with number keys or ↑↓ keys and Enter, Cancel with Esc- run
/logincommand & successfully authenticate. - run
/modelcommand & see:
Select Model Choose the AI model to use for Copilot CLI. The selected model will be persisted and used for future sessions. ❯ 1. Claude Sonnet 4.5 (1x) (default) (current) 2. Claude Sonnet 4 (1x) 3. Claude Haiku 4.5 (0.33x) 4. GPT-5 (1x) 5. Cancel (Esc) Confirm with number keys or ↑↓ keys and Enter, Cancel with Esc- submit
hello worldin the input field & see:
> hello world ● Hello! I'm GitHub Copilot CLI, ready to help you with software engineering tasks. I can assist with: - Running commands and scripts - Reading, creating, and editing files - Working with git repositories - Searching code and repositories - And much more What would you like to do?- run
/modelcommand & select3. Claude Haiku 4.5 (0.33x) - submit
hello worldin the input field & see:
> hello world ● Hey there! I'm ready to help. What would you like me to work on? You can ask me to: - Navigate or explore code - Make code changes - Run tests or builds - Search repositories - Work with git - Or anything else related to software development What's your task?I expected to see an error when selecting or using
Claude Haiku 4.5as it is disabled in my Copilot Features.Logs from this session are attached. Apologies for all the MCP noise.
@johnsockwell-tributetech : Nice work! I would like to pull this into a separate issue as I believe you found a legitimate issue where a model that is unconfigured at both the enterprise and organization levels is not being removed as an option in
copilot.Yesterday evening, we shipped some enhancements to GitHub Copilot API resolution that I have opted you into. I think you were fortunate yesterday with the current behavior completing at a reasonable time to move things along, so I'd like your help vetting these enhancements. 🙇
If there's anyone else still having issues retrieving
/modellisting, please mention me and I'll be happy to work with you to enable this and verify it addresses the concern.UPDATE: Created #473 for this follow up
Reacted by johnsockwell-tributetech- run
- changed the title
[-]Cannot select models since v.0.0.330[/-][+]Copilot should use the appropriate subscription-based routing within `/model` experience[/+]on Nov 6, 2025 This week, we've rolled out changes on GitHub.com to ensure Copilot integrations like GitHub Copilot CLI can reliably resolve subscription-based routing. Thanks to everyone who has been patient and contributed to this issue! 🙇
Prior to
0.0.330release, users were presented a static, hardcoded list of models to choose from. This prevented users from taking advantage of new models while preventing organizations and enterprises from managing model policies effectively.What's next?
I'm going to close this issue as I've confirmed the GitHub.com changes appear to have addressed the 421 Misdirected Request error we've been seeing in GitHub Copilot CLI logs.
I'd like to ask folks to upgrade to the latest version of GitHub Copilot CLI to ensure this issue is fully addressed for them. Again, using older versions will prevent users from picking up new models, features, bug fixes, and more.
Please follow up here or open a new issue if you continue to see 421 Misdirected Request error! 💪
Reacted by jaroslaw-buryk-lgs
Describe the bug
I'm unable to select models since v0.0.330 using the
/modelcommand in the Copilot CLI.I'm accessing copilot via my organization account.
I've confirmed in my GitHub Copilot settings the following:
Copilot CLIis enabledAnthropic Claude Sonnet 4is enabledAnthropic Claude Sonnet 4.5is enabledOpenAI GPT-5is enabledI've included my reproduction steps for v0.0.330, v0.0.331, v0.0.343
Affected version
0.0.343 Commit: 5847051
Steps to reproduce the behavior
v0.0.330
npx -y @github/copilot@0.0.330/modelinto the input windowv0.0.331
npx -y @github/copilot@0.0.331/modelinto the input windowv0.0.343
npx -y @github/copilot@0.0.343/modelinto the input windowExpected behavior
I expect to see a model selector with similar functionality as in v0.0.330
Additional context