Skip to content

[Bug]: Claude model provided by Github Copliot cannot use only in opencode #1279

@cywwycedward

Description

@cywwycedward

Prerequisites

  • I will write this issue in English (see our Language Policy)
  • I have searched existing issues to avoid duplicates
  • I am using the latest version of oh-my-opencode
  • I have read the documentation

Bug Description

I used all Claude models provided by Github Copilot like Claude Opus 4.5,Claude Haiku 4.5,Claude Sonnet 4.5 and so on in opencode but it reported:

Bad Request: {"error":{"message":"The requested model is not supported.","code":"model_not_supported","param":"model","type":"invalid_request_err

I checked my copilot settings that Claude models are enabled.And,I tried to use them in Github Copilot extension in VsCode and they can be used.

Image Image

And I tested other models provided by Github Copilot like Gemini 3 pro in opencode and it successed.

Image

Steps to Reproduce

  1. install opencode and oh-my-opencode just as the documention said.

Expected Behavior

Claude models provided by Github Copilot can be used

Actual Behavior

They can‘t

Doctor Output

Installation
────────────────────────────────────────
  ✓ OpenCode Installation → 1.1.44
  ✓ Plugin Registration → Registered (pinned: latest)

Configuration
────────────────────────────────────────
  ✓ Configuration Validity → Valid JSON config
  ✓ Model Resolution → 9 agents, 7 categories (16 overrides), 2369 available

Authentication
────────────────────────────────────────
  ✓ Anthropic (Claude) Auth → Auth plugin available
  ○ OpenAI (ChatGPT) Auth → Auth plugin not installed
  ○ Google (Gemini) Auth → Auth plugin not installed

Dependencies
────────────────────────────────────────
  ⚠ AST-Grep CLI → Not installed (optional)
  ✓ AST-Grep NAPI → installed
  ⚠ Comment Checker → Not installed (optional)

Tools & Servers
────────────────────────────────────────
  ⚠ GitHub CLI → Not installed (optional)
  ⚠ LSP Servers → No LSP servers detected
  ✓ Built-in MCP Servers → 2 built-in servers enabled
  ○ User MCP Configuration → No user MCP configuration found
  ○ MCP OAuth Tokens → No OAuth tokens configured

Updates
────────────────────────────────────────
  ✓ Version Status → Up to date (3.1.8)

Summary
────────────────────────────────────────

  8 passed, 0 failed, 4 warnings, 4 skipped
  Total: 16 checks in 1666ms

⚠ All systems operational with warnings.

Error Logs

Configuration

{
  "$schema": "https://raw.githubusercontent.com/code-yeongyu/oh-my-opencode/master/assets/oh-my-opencode.schema.json",
  "agents": {
    "sisyphus": {
      "model": "github-copilot/claude-sonnet-4.5"
    },
    "oracle": {
      "model": "github-copilot/gpt-5.2",
      "variant": "high"
    },
    "librarian": {
      "model": "github-copilot/claude-sonnet-4.5"
    },
    "explore": {
      "model": "github-copilot/gpt-5-mini"
    },
    "multimodal-looker": {
      "model": "github-copilot/gemini-3-flash"
    },
    "prometheus": {
      "model": "github-copilot/claude-opus-4.5",
      "variant": "max"
    },
    "metis": {
      "model": "github-copilot/claude-opus-4.5",
      "variant": "max"
    },
    "momus": {
      "model": "github-copilot/gpt-5.2",
      "variant": "medium"
    },
    "atlas": {
      "model": "github-copilot/claude-sonnet-4.5"
    }
  },
  "categories": {
    "visual-engineering": {
      "model": "github-copilot/gemini-3-pro"
    },
    "ultrabrain": {
      "model": "github-copilot/gpt-5.2-codex",
      "variant": "xhigh"
    },
    "artistry": {
      "model": "github-copilot/gemini-3-pro",
      "variant": "max"
    },
    "quick": {
      "model": "github-copilot/claude-haiku-4.5"
    },
    "unspecified-low": {
      "model": "github-copilot/claude-sonnet-4.5"
    },
    "unspecified-high": {
      "model": "github-copilot/claude-sonnet-4.5"
    },
    "writing": {
      "model": "github-copilot/gemini-3-flash"
    }
  }
}

Additional Context

No response

Operating System

Windows

OpenCode Version

1.1.44

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions