[Issue] Custom provider baseurl, return opencode.json is invalid Required provider.anthropic.models · Issue #5428 · anomalyco/opencode · GitHub
Skip to content

[Issue] Custom provider baseurl, return opencode.json is invalid Required provider.anthropic.models #5428

Description

@tomsun28

Description

Hi Team,

Thanks for the great product.
I use the config in doc show to custom base url.
In the old release, it works. But when i upgrade to the latest version 0.3.133 , it error Error: Config file at /Users/gongchao/.config/opencode/opencode.json is invalid ↳ Required provider.anthropic.models

Image
{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "anthropic": {
      "options": {
        "baseURL": "https://api.anthropic.com/v1"
      }
    }
  }
}

I have been using this method, hoping it can be fix. Thanks a lot.

OpenCode version

0.3.133

Steps to reproduce

  1. vim the opencode.json
{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "anthropic": {
      "options": {
        "baseURL": "https://api.anthropic.com/v1"
      }
    }
  }
}
  1. Run the opencode

Screenshot and/or share link

Image

Operating System

macOS

Terminal

iTerm2

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions