Using Claude models through Github Copilot returns Not Found: Not Found #8210

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

Originally created by @driaug on GitHub (Feb 1, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

When trying to use Claude models using a linked Github Copilot description, it throws a Not found: Not found error instead of correctly handling the prompt.

After searching through the logs, it appears that Github is responding with a 404 error.

INFO  service=llm providerID=github-copilot modelID=claude-sonnet-4.5
INFO  sessionID=ses_3e78dc6b9ffePjLYqikCwYOYMb agent=build mode=primary

ERROR service=llm providerID=github-copilot modelID=claude-sonnet-4.5
AI_APICallError: Not Found
  url: https://api.githubcopilot.com/v1/messages
  statusCode: 404
  responseBody: "Not Found"

requestBodyValues:
  model: "claude-sonnet-4.5"
  max_tokens: 4096

Plugins

No response

OpenCode version

1.1.40

Steps to reproduce

  1. Connect Github Copilot using /connect
  2. Select a Sonnet model (e.g. Sonnet 4.5)
  3. Send a prompt

Screenshot and/or share link

Image

Operating System

Tahoe 26.2

Terminal

Ghostty

Originally created by @driaug on GitHub (Feb 1, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description When trying to use Claude models using a linked Github Copilot description, it throws a `Not found: Not found` error instead of correctly handling the prompt. After searching through the logs, it appears that Github is responding with a 404 error. ``` INFO service=llm providerID=github-copilot modelID=claude-sonnet-4.5 INFO sessionID=ses_3e78dc6b9ffePjLYqikCwYOYMb agent=build mode=primary ERROR service=llm providerID=github-copilot modelID=claude-sonnet-4.5 AI_APICallError: Not Found url: https://api.githubcopilot.com/v1/messages statusCode: 404 responseBody: "Not Found" requestBodyValues: model: "claude-sonnet-4.5" max_tokens: 4096 ``` ### Plugins _No response_ ### OpenCode version 1.1.40 ### Steps to reproduce 1. Connect Github Copilot using /connect 2. Select a Sonnet model (e.g. Sonnet 4.5) 3. Send a prompt ### Screenshot and/or share link <img width="1381" height="197" alt="Image" src="https://github.com/user-attachments/assets/5618da8f-2668-44b2-96ec-aa2e0a4a78a3" /> ### Operating System Tahoe 26.2 ### Terminal Ghostty
yindo added the bug label 2026-02-16 18:09:26 -05:00
yindo closed this issue 2026-02-16 18:09:26 -05:00
Author
Owner

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

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

  • #11105: Anthropic models fail with 404 on GitHub Enterprise (GHE.com) - similar 404 error when using Claude models through GitHub Copilot
  • #11157: Compaction fails with 400 Bad Request when using GitHub Copilot Enterprise - related GitHub Copilot provider compatibility issue with Claude models

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

@github-actions[bot] commented on GitHub (Feb 1, 2026): This issue might be a duplicate of existing issues. Please check: - #11105: Anthropic models fail with 404 on GitHub Enterprise (GHE.com) - similar 404 error when using Claude models through GitHub Copilot - #11157: Compaction fails with 400 Bad Request when using GitHub Copilot Enterprise - related GitHub Copilot provider compatibility issue with Claude models Feel free to ignore if none of these address your specific case.
Author
Owner

@driaug commented on GitHub (Feb 1, 2026):

Upgrading to v1.1.48 resolves the issue.

I was using OpenCode through a brew installed version and it would not let me update passed 1.1.40. Switched through an installation through curl which worked fine.

@driaug commented on GitHub (Feb 1, 2026): Upgrading to `v1.1.48` resolves the issue. I was using OpenCode through a brew installed version and it would not let me update passed 1.1.40. Switched through an installation through curl which worked fine.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#8210