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

Closed
opened 2026-02-16 17:26:06 -05:00 by yindo · 4 comments
Owner

Originally created by @tsah on GitHub (Jun 26, 2025).

Originally assigned to: @thdxr on GitHub.

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
Originally created by @tsah on GitHub (Jun 26, 2025). Originally assigned to: @thdxr on GitHub. 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
yindo closed this issue 2026-02-16 17:26:06 -05:00
Author
Owner

@tsah commented on GitHub (Jun 26, 2025):

I think the error message was the same as reported here: https://github.com/sst/opencode/issues/410

@tsah commented on GitHub (Jun 26, 2025): I think the error message was the same as reported here: https://github.com/sst/opencode/issues/410
Author
Owner

@chbornman commented on GitHub (Jun 26, 2025):

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

@chbornman commented on GitHub (Jun 26, 2025): 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
Author
Owner

@thdxr commented on GitHub (Jun 26, 2025):

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

@thdxr commented on GitHub (Jun 26, 2025): if you do `opencode auth list` yous hould be able to see what is getting loaded and why
Author
Owner

@rekram1-node commented on GitHub (Dec 27, 2025):

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

@rekram1-node commented on GitHub (Dec 27, 2025): [automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#296