Skip to content

migrating from anthropic api key to max subscription doesn't work #412

Closed

Description

@tsah

Scenario:

  1. Installed opencode with api key in environment variable
  2. Subscribe to Claude max
  3. Remove api key from env
  4. opencode fails to start
  5. opencode auth login fails to start
  6. remove ~/.opencode
  7. now get to normal login screen

Activity

  1. tsah commented on Jun 26, 2025

    @tsah
    Author

    I think the error message was the same as reported here: #410

  2. chbornman commented on Jun 26, 2025

    @chbornman

    I just installed opencode for the first time and tried to do the Claude Max login. It seemed like it worked and I can see my secret key etc in auth.json. I was confused because i was opening up opencode and getting an API key error. But that was because i had selected a Claude model from the Amazon Bedrock list instead of from the Anthropic list

  3. thdxr commented on Jun 26, 2025

    @thdxr
    Member

    if you do opencode auth list yous hould be able to see what is getting loaded and why

  4. self-assigned this
    on Jun 26, 2025
  5. rekram1-node commented on Dec 28, 2025

    @rekram1-node
    Contributor

    [automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!

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