GitHub Copilot API returns 404 "Not Found" after upgrading to v1.1.40 #8300

Closed
opened 2026-02-16 18:09:37 -05:00 by yindo · 3 comments
Owner

Originally created by @mldlwizard on GitHub (Feb 2, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

Bug Description

After upgrading to OpenCode v1.1.40, all GitHub Copilot models (claude models) return "Not Found" error when trying to send messages. The API endpoint https://api.githubcopilot.com/v1/messages returns HTTP 404.

Environment

  • OpenCode version: 1.1.40
  • OS: macOS (darwin 24.6.0)
  • Installation method: Homebrew
  • GitHub Copilot: Individual

Expected Behavior

Message should be processed by the selected model.

Actual Behavior

Error: "Not Found" with HTTP 404 from api.githubcopilot.com/v1/messages

Error Log

"statusCode":404,"responseHeaders":{"content-length":"10","content-security-policy":"default-src 'none'; sandbox","content-type":"text/plain; charset=utf-8","date":"Mon, 02 Feb 2026 07:59:55 GMT","strict-transport-security":"max-age=31536000","x-content-type-options":"nosniff","x-github-backend":"Kubernetes","x-github-request-id":"","x-request-id":""},"responseBody":"Not Found\n","isRetryable":false}} stream error
ERROR 2026-02-02T07:59:55 +2ms service=session.processor error=Not Found stack="AI_APICallError: Not Found\n at (../../node_modules/.bun/@ai-sdk+provider-utils@3.0.20+d6123d32214422cb/node_modules/@ai-sdk/provider-utils/dist/index.mjs:950:18)\n at processTicksAndRejections (native:7:39)" process
INFO 2026-02-02T07:59:55 +1ms service=bus type=session.error publishing

Additional Context

  • This worked before upgrading to 1.1.40 on 1.1.30
  • Tested on two different machines with the same result
  • Auth token is valid (verified with curl to api.github.com/user)
  • Free OpenCode models work (Tried Kimi K2.5)

Workaround Attempted

  • Re-authenticated via opencode auth logout and opencode auth login
  • Cleared cache and storage
  • None resolved the issue

Plugins

No response

OpenCode version

1.1.40

Steps to reproduce

Steps to Reproduce

  1. Upgrade to OpenCode 1.1.40 (brew upgrade opencode)
  2. Run opencode
  3. Select any GitHub Copilot model (e.g., github-copilot/claude-sonnet-4.5)
  4. Send any message

Screenshot and/or share link

No response

Operating System

macOS (darwin 24.6.0)

Terminal

Ghostty

Originally created by @mldlwizard on GitHub (Feb 2, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description ## Bug Description After upgrading to OpenCode v1.1.40, all GitHub Copilot models (claude models) return "Not Found" error when trying to send messages. The API endpoint `https://api.githubcopilot.com/v1/messages` returns HTTP 404. ## Environment - OpenCode version: 1.1.40 - OS: macOS (darwin 24.6.0) - Installation method: Homebrew - GitHub Copilot: Individual ## Expected Behavior Message should be processed by the selected model. ## Actual Behavior Error: "Not Found" with HTTP 404 from `api.githubcopilot.com/v1/messages` ## Error Log "statusCode":404,"responseHeaders":{"content-length":"10","content-security-policy":"default-src 'none'; sandbox","content-type":"text/plain; charset=utf-8","date":"Mon, 02 Feb 2026 07:59:55 GMT","strict-transport-security":"max-age=31536000","x-content-type-options":"nosniff","x-github-backend":"Kubernetes","x-github-request-id":"<redacted>","x-request-id":"<redacted>"},"responseBody":"Not Found\n","isRetryable":false}} stream error ERROR 2026-02-02T07:59:55 +2ms service=session.processor error=Not Found stack="AI_APICallError: Not Found\n at <anonymous> (../../node_modules/.bun/@ai-sdk+provider-utils@3.0.20+d6123d32214422cb/node_modules/@ai-sdk/provider-utils/dist/index.mjs:950:18)\n at processTicksAndRejections (native:7:39)" process INFO 2026-02-02T07:59:55 +1ms service=bus type=session.error publishing ## Additional Context - This worked before upgrading to 1.1.40 on 1.1.30 - Tested on two different machines with the same result - Auth token is valid (verified with `curl` to `api.github.com/user`) - Free OpenCode models work (Tried Kimi K2.5) ## Workaround Attempted - Re-authenticated via `opencode auth logout` and `opencode auth login` - Cleared cache and storage - None resolved the issue ### Plugins _No response_ ### OpenCode version 1.1.40 ### Steps to reproduce ## Steps to Reproduce 1. Upgrade to OpenCode 1.1.40 (`brew upgrade opencode`) 2. Run `opencode` 3. Select any GitHub Copilot model (e.g., `github-copilot/claude-sonnet-4.5`) 4. Send any message ### Screenshot and/or share link _No response_ ### Operating System macOS (darwin 24.6.0) ### Terminal Ghostty
yindo added the bug label 2026-02-16 18:09:37 -05:00
yindo closed this issue 2026-02-16 18:09:37 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Feb 2, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #11585: Using Claude models through Github Copilot returns Not Found: Not Found (CLOSED - same 404 error from api.githubcopilot.com/v1/messages)
  • #11673: github copilot models not working (CLOSED - same "Not Found" error with GH Copilot)
  • #11009: Unable to use "github-copilot/claude-*" models (CLOSED - Copilot Claude model issues)
  • #11732: Regression: Custom agent instructions ignored for github-copilot/claude-* models in v1.1.48 (CLOSED - related Copilot/Claude regression in v1.1.48)

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Feb 2, 2026): This issue might be a duplicate of existing issues. Please check: - #11585: Using Claude models through Github Copilot returns Not Found: Not Found (CLOSED - same 404 error from api.githubcopilot.com/v1/messages) - #11673: github copilot models not working (CLOSED - same "Not Found" error with GH Copilot) - #11009: Unable to use "github-copilot/claude-*" models (CLOSED - Copilot Claude model issues) - #11732: Regression: Custom agent instructions ignored for `github-copilot/claude-*` models in v1.1.48 (CLOSED - related Copilot/Claude regression in v1.1.48) Feel free to ignore if none of these address your specific case.
Author
Owner

@junioradwise commented on GitHub (Feb 2, 2026):

This is already fixed in a recent version. https://github.com/anomalyco/opencode/issues/10500#issuecomment-3827933956

If you have installed opencode via brew you might want to install it via their cask as it gets more recent updates than the brew native cask.

brew uninstall opencode
brew install anomalyco/tap/opencode

@junioradwise commented on GitHub (Feb 2, 2026): This is already fixed in a recent version. https://github.com/anomalyco/opencode/issues/10500#issuecomment-3827933956 If you have installed opencode via brew you might want to install it via their cask as it gets more recent updates than the brew native cask. `brew uninstall opencode` `brew install anomalyco/tap/opencode`
Author
Owner

@kschinspari commented on GitHub (Feb 3, 2026):

brew install anomalyco/tap/opencode

This fixed it for me.

Thank you!

@kschinspari commented on GitHub (Feb 3, 2026): > brew install anomalyco/tap/opencode This fixed it for me. Thank you!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#8300