Feature request: support claude opus 4 and 4.1 agent in github copilot #1200

Closed
opened 2026-02-16 17:29:58 -05:00 by yindo · 22 comments
Owner

Originally created by @bb33bb on GitHub (Aug 9, 2025).

Originally assigned to: @rekram1-node on GitHub.

can we support claude opus 4 and 4.1 agent in github copilot

Originally created by @bb33bb on GitHub (Aug 9, 2025). Originally assigned to: @rekram1-node on GitHub. can we support claude opus 4 and 4.1 agent in github copilot
yindo added the model-problemhelp-wanted labels 2026-02-16 17:29:58 -05:00
yindo closed this issue 2026-02-16 17:29:58 -05:00
Author
Owner

@newmedia2 commented on GitHub (Aug 11, 2025):

note: opus 4 works. opus 4.1 gives api error

@newmedia2 commented on GitHub (Aug 11, 2025): note: opus 4 works. opus 4.1 gives api error
Author
Owner

@andrewneilson commented on GitHub (Aug 11, 2025):

I'm not seeing it returned from the copilot API anymore:

$ curl -s https://api.githubcopilot.com/models \
  -H "Authorization: Bearer $COPILOT_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Copilot-Integration-Id: vscode-chat" | jq -r '.data[].id' | grep opus
claude-opus-4
@andrewneilson commented on GitHub (Aug 11, 2025): I'm not seeing it returned from the copilot API anymore: ``` $ curl -s https://api.githubcopilot.com/models \ -H "Authorization: Bearer $COPILOT_API_KEY" \ -H "Content-Type: application/json" \ -H "Copilot-Integration-Id: vscode-chat" | jq -r '.data[].id' | grep opus claude-opus-4 ```
Author
Owner

@bb33bb commented on GitHub (Aug 12, 2025):

note: opus 4 works. opus 4.1 gives api error

it seems cline can use it rightly.
opus 4.1.
i test again and its true.

@bb33bb commented on GitHub (Aug 12, 2025): > note: opus 4 works. opus 4.1 gives api error it seems cline can use it rightly. opus 4.1. i test again and its true.
Author
Owner

@newmedia2 commented on GitHub (Aug 12, 2025):

note -- github pro plus subscription required. (free and pro will not work.). tested with a pro plus subscription in OPENCODE -- result .... opus 4 works. opus 4.1 gives api error (might be model name is wrong in opencode). In zed, for example, which uses github auth, opus 4 and 4.1 work.

suggest this be changed to BUG

@newmedia2 commented on GitHub (Aug 12, 2025): note -- github pro plus subscription required. (free and pro will not work.). tested with a pro plus subscription in OPENCODE -- result .... opus 4 works. opus 4.1 gives api error (might be model name is wrong in opencode). In zed, for example, which uses github auth, opus 4 and 4.1 work. suggest this be changed to BUG
Author
Owner

@thdxr commented on GitHub (Aug 12, 2025):

can someone check how it's setup in models.dev and see if it's off?

@thdxr commented on GitHub (Aug 12, 2025): can someone check how it's setup in models.dev and see if it's off?
Author
Owner

@ariccio commented on GitHub (Aug 13, 2025):

note: opus 4 works. opus 4.1 gives api error

I'm sorry - the internet has many differing references that all seem to point to "no opus in agent"

You're saying you can use agent mode with opus?

@ariccio commented on GitHub (Aug 13, 2025): > note: opus 4 works. opus 4.1 gives api error I'm sorry - the internet has many differing references that all seem to point to "no opus in agent" You're saying you can use agent mode with opus?
Author
Owner

@aorumbayev commented on GitHub (Aug 14, 2025):

@thdxr looks like it is not available in agent mode by design, https://github.com/orgs/community/discussions/169102

@aorumbayev commented on GitHub (Aug 14, 2025): @thdxr looks like it is not available in agent mode by design, https://github.com/orgs/community/discussions/169102
Author
Owner

@bb33bb commented on GitHub (Aug 15, 2025):

@thdxr looks like it is not available in agent mode by design, https://github.com/orgs/community/discussions/169102

it is ok in cline. if you can try.
Any how , opencode is really good enough without opus.

@bb33bb commented on GitHub (Aug 15, 2025): > [@thdxr](https://github.com/thdxr) looks like it is not available in agent mode by design, https://github.com/orgs/community/discussions/169102 it is ok in cline. if you can try. Any how , opencode is really good enough without opus.
Author
Owner

@bb33bb commented on GitHub (Aug 15, 2025):

can someone check how it's setup in models.dev and see if it's off?

what should i do?
please call me ,i can .

@bb33bb commented on GitHub (Aug 15, 2025): > can someone check how it's setup in models.dev and see if it's off? what should i do? please call me ,i can .
Author
Owner

@rmoriz commented on GitHub (Aug 19, 2025):

opencode v0.5.7 as of today

I've enabeld Opus 4 and Opus 4.1 in my https://github.com/settings/copilot/features settings. Opus 4.1 returns a 'AI_APICallError: The requested model is not supported.' error and Opus 4 just doesn't continue after the initial response:

I'll analyze the project documentation to identify areas for optimization and clarification.
Build claude-opus-4 (02:02 AM)

continue
user (02:02 AM)

Generating...
Build claude-opus-4 (02:02 AM)
@rmoriz commented on GitHub (Aug 19, 2025): opencode v0.5.7 as of today I've enabeld Opus 4 and Opus 4.1 in my https://github.com/settings/copilot/features settings. Opus 4.1 returns a **'AI_APICallError: The requested model is not supported.'** error and Opus 4 just doesn't continue after the initial response: ``` I'll analyze the project documentation to identify areas for optimization and clarification. Build claude-opus-4 (02:02 AM) continue user (02:02 AM) Generating... Build claude-opus-4 (02:02 AM) ```
Author
Owner

@bb33bb commented on GitHub (Aug 19, 2025):

🐮
AI_APICallError: The requested model is not supported.
i use the latest dev, and the command i use is

bun dev
@bb33bb commented on GitHub (Aug 19, 2025): 🐮! AI_APICallError: The requested model is not supported. i use the latest dev, and the command i use is ``` bun dev ```
Author
Owner

@rekram1-node commented on GitHub (Aug 19, 2025):

@rmoriz are you on a Copilot Pro+ plan?
https://docs.github.com/en/copilot/reference/ai-models/supported-models#supported-ai-models-per-copilot-plan

@rekram1-node commented on GitHub (Aug 19, 2025): @rmoriz are you on a Copilot Pro+ plan? https://docs.github.com/en/copilot/reference/ai-models/supported-models#supported-ai-models-per-copilot-plan
Author
Owner

@rmoriz commented on GitHub (Aug 19, 2025):

Yesimageimage

@rmoriz commented on GitHub (Aug 19, 2025): Yes![image](https://github.com/user-attachments/assets/81d84bd4-e991-463f-a7c0-2cebf8a1a7d7)![image](https://github.com/user-attachments/assets/0766e017-4d2d-4338-afd4-c3229416b378)
Author
Owner

@rekram1-node commented on GitHub (Aug 19, 2025):

Hmmm weird, model not supported comes from github copilot api so maybe there is something we need to send to them or something

@rekram1-node commented on GitHub (Aug 19, 2025): Hmmm weird, model not supported comes from github copilot api so maybe there is something we need to send to them or something
Author
Owner

@rekram1-node commented on GitHub (Aug 19, 2025):

It looks like it is probably because you can't use them in agent mode? https://docs.github.com/en/copilot/reference/ai-models/supported-models#supported-ai-models-in-copilot

@rekram1-node commented on GitHub (Aug 19, 2025): It looks like it is probably because you can't use them in agent mode? https://docs.github.com/en/copilot/reference/ai-models/supported-models#supported-ai-models-in-copilot
Author
Owner

@bb33bb commented on GitHub (Aug 20, 2025):

It looks like it is probably because you can't use them in agent mode? https://docs.github.com/en/copilot/reference/ai-models/supported-models#supported-ai-models-in-copilot

i have the same feeling, but the problem is , we can use it in cline as agent.

@bb33bb commented on GitHub (Aug 20, 2025): > It looks like it is probably because you can't use them in agent mode? https://docs.github.com/en/copilot/reference/ai-models/supported-models#supported-ai-models-in-copilot i have the same feeling, but the problem is , we can use it in cline as agent.
Author
Owner

@rekram1-node commented on GitHub (Aug 20, 2025):

Yeah I just got a pro+ subscription to help debug this, will get back to yall later on what issue is

@rekram1-node commented on GitHub (Aug 20, 2025): Yeah I just got a pro+ subscription to help debug this, will get back to yall later on what issue is
Author
Owner

@rekram1-node commented on GitHub (Aug 20, 2025):

@rmoriz we are going to fix the opus 4.1 but for opus 4 it should work just fine in opencode I just used it myself.

Can you elaborate on:

doesn't continue after the initial response?

Image
@rekram1-node commented on GitHub (Aug 20, 2025): @rmoriz we are going to fix the opus 4.1 but for opus 4 it should work just fine in opencode I just used it myself. Can you elaborate on: > doesn't continue after the initial response? <img width="1228" height="371" alt="Image" src="https://github.com/user-attachments/assets/bb939a10-3067-42ed-8373-dca650186ac4" />
Author
Owner

@rekram1-node commented on GitHub (Aug 21, 2025):

Just did some fixes to models.dev, now opus 4.1 works from copilot too:
https://opencode.ai/s/ewEU6QVv

They annoyingly refer to it as claude-opus-41 not claude-opus-4.1

@rekram1-node commented on GitHub (Aug 21, 2025): Just did some fixes to models.dev, now opus 4.1 works from copilot too: https://opencode.ai/s/ewEU6QVv They annoyingly refer to it as claude-opus-41 not claude-opus-4.1
Author
Owner

@rekram1-node commented on GitHub (Aug 21, 2025):

Closing since opus 4.1 was fixed, for opus 4 if it isn't working you may need to refresh your github creds (logout & login again)

Just a note:

  • Pro+ plan required (not just a pro plan)
  • Need to explicitly enable opus 4 and/or opus 4.1 in copilot dashboard
  • Neither model supports tool calling through github copilot currently.
@rekram1-node commented on GitHub (Aug 21, 2025): Closing since opus 4.1 was fixed, for opus 4 if it isn't working you may need to refresh your github creds (logout & login again) Just a note: - Pro+ plan required (not just a pro plan) - Need to explicitly enable opus 4 and/or opus 4.1 in copilot dashboard - Neither model supports tool calling through github copilot currently.
Author
Owner

@rmoriz commented on GitHub (Aug 21, 2025):

works for me now, thanks. For 4.1 I had indeed to run auth again.

@rmoriz commented on GitHub (Aug 21, 2025): works for me now, thanks. For 4.1 I had indeed to run auth again.
Author
Owner

@bb33bb commented on GitHub (Aug 22, 2025):

Thanks!!!

@bb33bb commented on GitHub (Aug 22, 2025): Thanks!!!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1200