Skip to content

Opencode V2 support #245

Description

@heymaaz

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

  1. Download opencode v2: https://v2.opencode.ai/#install
  2. try /connect
  3. choose Anthropic, only API key is available
  4. add "plugins": ["opencode-claude-auth-v2@latest"], in opencode.jsonc
  5. rerun /connect choose Claude subcription then /models and choose the anthropic model.
Image Image Image

Operating system

macOS

Plugin version

2.0.0

OpenCode version

opencode2 v0.0.0-next-15796

Debug logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions