Skip to content

Project specific opencode.json is ignored #857

Closed

Description

@berenddeboer

I do not have a ~/.config/opencode/config.json.

I have created this opencode.json in my directory:

{
  "$schema": "https://opencode.ai/config.json",
  "model": "anthropic.claude-sonnet-4-20250514-v1:0",
  "provider": {
    "bedrock": {
      "region": "ap-southeast-2",
      "models": {
        "anthropic.claude-sonnet-4-20250514-v1:0": {
          "name": "Claude Sonnet 4"
        }
      }
    }
  }
}

opencode still starts up with "Anthropic Claude Sonnet 4".

If I use /models and pick bedrock, opencode says "Amazon Bedrock Claude Sonnet 4". And I can then interact with it. It shows this as the model string: "anthropic.claude-sonnet-4-20250514-v1:0".

When using true Anthropic I have it spit out "claude-sonnet-4-20250514" when I ask it what model it is.

Also when I do opencode auth login and select "Amazon BedRock", it does not stick. When I exit and go back, it's Anthropic again.

Activity

  1. self-assigned this
    on Jul 12, 2025
  2. thdxr commented on Jul 12, 2025

    @thdxr
    Member

    model field needs the provider prefix - bedrock/xxxx

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