The fix has been merged in https://github.com/anomalyco/opencode-anthropic-auth/pull/11, and PR https://github.com/anomalyco/opencode/pull/7432 is open to bump the version.
Until it's released, here's a workaround:
1. git clone https://github.com/anomalyco/opencode-anthropic-auth.git
2. Add to ~/.config/opencode/opencode.json: "plugin": ["file:///path/to/opencode-anthropic-auth/index.mjs"]
3. Run: OPENCODE_DISABLE_DEFAULT_PLUGINS=true opencode
Apparently this has already been stopped in its tracks?
Anthropic seems determined to plug the hole.
has opencode repo moved organisation from under sst to anomalyco?
Anthropic shot themselves in the foot with this decision. It‘s a PR nightmare and at the same time the open source community will always find a way. They just wasted everyone‘s time and likely lost a bunch of users while doing so.
Thank you for sharing this!