Anthropic OAuth plugin for OpenCode-compatible clients.
Tested with opencode@1.3.0 and ocv@1.3.0-ocv.2.7.
Warning
Use this at your own risk. There have been public reports of users getting banned after using Claude OAuth with OpenCode or similar third-party tools.
npm i -g op-anthropic-auth@latest~/.config/opencode/opencode.json
{
"plugin": ["op-anthropic-auth"]
}Restart your client, run /connect, then choose Anthropic API Key -> Claude Pro/Max.
npm run smokeMIT