Skip to content

read_image and read_document fail when only claude-cli provider is configured #801

@henkedk

Description

@henkedk

Problem

read_image and read_document tools fail with "No vision provider configured" when the only available provider is claude-cli (no separate Anthropic API key, no Gemini/OpenRouter configured).

Root Cause

The media tool fallback chains (visionProviderPriority, documentProviderPriority) do not include claude-cli. They only list openrouter, gemini, anthropic, and dashscope.

claude-cli is registered under that name in the provider registry, not as anthropic, so registry.Get(ctx, "anthropic") returns an error and the chain comes up empty.

Expected Behavior

Since Claude CLI natively supports vision (via stream-json input with images), it should be included in the fallback chain so media tools work out of the box on claude-cli-only installations.

Environment

  • GoClaw with only claude-cli provider configured
  • No providers.anthropic.api_key set
  • read_image called with a valid image path

Metadata

Metadata

Assignees

No one assigned

    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