Skip to content

Anthropic direct provider fails with ProviderModelNotFoundError for subagents #29218

Closed as not planned

Description

@xiaolele8858

Description

Bug

The Anthropic provider works in opencode models but subagents
using model: "anthropic/claude-sonnet-4-5" get ProviderModelNotFoundError.
BAI and OpenRouter subagents work fine.

Steps

  1. Enable anthropic provider in opencode.jsonc
  2. Set subagent model to anthropic/claude-sonnet-4-5
  3. Dispatch via Task tool → error

Environment

Windows 11, OpenCode latest, Claude Max subscription, OAuth auth

Plugins

0.1.81

OpenCode version

stable

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

win11

Terminal

paseo

Activity

  1. github-actions commented on May 25, 2026

    @github-actions
    Contributor

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

  2. rekram1-node commented on May 26, 2026

    @rekram1-node
    Contributor

    @xiaolele8858 cannot reproduce:

     "agent": {
        "explore": {
          "model": "anthropic/claude-sonnet-4-5",
        },
      },
    

    This works just fine for me w/ task tool.

    Can u reproduce w/ opencode --pure?

  3. github-actions commented on Jul 26, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions