Error saying The requested model is not supported. when trying to create new agent #3558

Open
opened 2026-02-16 17:40:39 -05:00 by yindo · 5 comments
Owner

Originally created by @ThatDeltaGuy on GitHub (Dec 15, 2025).

Originally assigned to: @rekram1-node on GitHub.

Description

Using github copilot i can login and use the CLI as normal, it will handle requests, let me choose models etc. works as intended. However when trying to create a new model i get "LLM failed to generate agent: The requested model is not supported."

Trying "opencode agent create -m github-copilot/claude-sonnet-4.5" also doesnt seem to be a valid command.

OpenCode version

1.0.154

Steps to reproduce

  1. run opencode agent create
  2. enter location and description
  3. it errors out

Screenshot and/or share link

Image

Operating System

Windows 11 WSL Ubuntu

Terminal

Windows Terminal

Originally created by @ThatDeltaGuy on GitHub (Dec 15, 2025). Originally assigned to: @rekram1-node on GitHub. ### Description Using github copilot i can login and use the CLI as normal, it will handle requests, let me choose models etc. works as intended. However when trying to create a new model i get "LLM failed to generate agent: The requested model is not supported." Trying "opencode agent create -m github-copilot/claude-sonnet-4.5" also doesnt seem to be a valid command. ### OpenCode version 1.0.154 ### Steps to reproduce 1. run opencode agent create 2. enter location and description 3. it errors out ### Screenshot and/or share link <img width="704" height="208" alt="Image" src="https://github.com/user-attachments/assets/46543472-f011-4b25-b215-1fac7f03ba28" /> ### Operating System Windows 11 WSL Ubuntu ### Terminal Windows Terminal
yindo added the opentuibug labels 2026-02-16 17:40:39 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Dec 15, 2025):

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

  • #3956: Agent creation flow is failing with similar errors during agent generation
  • #4916: Can't create an agent with opencode agent create command (recently closed)
  • #3287: Opencode Github Agent with GitHub Copilot provider throws API errors

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

@github-actions[bot] commented on GitHub (Dec 15, 2025): This issue might be a duplicate of existing issues. Please check: - #3956: Agent creation flow is failing with similar errors during agent generation - #4916: Can't create an agent with `opencode agent create` command (recently closed) - #3287: Opencode Github Agent with GitHub Copilot provider throws API errors Feel free to ignore if none of these address your specific case.
Author
Owner

@cravenceiling commented on GitHub (Jan 9, 2026):

Please upgrade to the latest version and try again running opencode agent create --print-logs. Also, if I'm not wrong this command opencode agent create -m github-copilot/claude-sonnet-4.5 should work now.

@cravenceiling commented on GitHub (Jan 9, 2026): Please upgrade to the latest version and try again running `opencode agent create --print-logs`. Also, if I'm not wrong this command `opencode agent create -m github-copilot/claude-sonnet-4.5` should work now.
Author
Owner

@ThatDeltaGuy commented on GitHub (Jan 9, 2026):

I've tried it again, unfortunately opencode agent create gave the same issue, however opencode agent create -m github-copilot/claude-sonnet-4.5 worked as expected and i can now create agents again.

@ThatDeltaGuy commented on GitHub (Jan 9, 2026): I've tried it again, unfortunately `opencode agent create` gave the same issue, however `opencode agent create -m github-copilot/claude-sonnet-4.5` worked as expected and i can now create agents again.
Author
Owner

@cravenceiling commented on GitHub (Jan 9, 2026):

What was the output when running opencode agent create --print-logs?

@cravenceiling commented on GitHub (Jan 9, 2026): What was the output when running `opencode agent create --print-logs`?
Author
Owner

@Set27 commented on GitHub (Jan 20, 2026):

It will try to check all avaliable models before run, so you have to specify the model manually as described in
https://github.com/anomalyco/opencode/issues/5566#issuecomment-3729418454

@Set27 commented on GitHub (Jan 20, 2026): It will try to check all avaliable models before run, so you have to specify the model manually as described in https://github.com/anomalyco/opencode/issues/5566#issuecomment-3729418454
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#3558