Description
I use this daily, but this plugin doesn't work with opencode v2 which has some breaking changes to the plugin api and how auth is done: https://v2.opencode.ai/migrate-v1
I have opencode v2 working in a fork: https://github.com/heymaaz/opencode-claude-auth-v2
I have published an npm package: https://www.npmjs.com/package/opencode-claude-auth-v2 (all code was written by GPT 5.6 Sol)
Happy to create a pr against a v2 branch here, if you want to support it via opencode-claude-auth itself
Steps to reproduce
- Download opencode v2: https://v2.opencode.ai/#install
- try /connect
- choose Anthropic, only API key is available
- add
"plugins": ["opencode-claude-auth-v2@latest"], in opencode.jsonc
- rerun /connect choose Claude subcription then /models and choose the anthropic model.
Operating system
macOS
Plugin version
2.0.0
OpenCode version
opencode2 v0.0.0-next-15796
Debug logs
Description
I use this daily, but this plugin doesn't work with opencode v2 which has some breaking changes to the plugin api and how auth is done: https://v2.opencode.ai/migrate-v1
I have opencode v2 working in a fork: https://github.com/heymaaz/opencode-claude-auth-v2
I have published an npm package: https://www.npmjs.com/package/opencode-claude-auth-v2 (all code was written by GPT 5.6 Sol)
Happy to create a pr against a v2 branch here, if you want to support it via opencode-claude-auth itself
Steps to reproduce
"plugins": ["opencode-claude-auth-v2@latest"],in opencode.jsoncOperating system
macOS
Plugin version
2.0.0
OpenCode version
opencode2 v0.0.0-next-15796
Debug logs