OpenCode plugin for Anthropic OAuth authentication. Use your Claude Pro/Max subscription with OpenCode.
npm install opencode-anthropic-auth-dynamicAdd to ~/.config/opencode/opencode.json:
{
"plugin": ["opencode-anthropic-auth-dynamic"]
}git clone https://github.com/BuggyPandit/opencode-anthropic-auth-dynamic.git
cd opencode-anthropic-auth-dynamic
npm installAdd to ~/.config/opencode/opencode.json:
{
"plugin": ["file:///path/to/opencode-anthropic-auth-dynamic/index.js"]
}- Claude Pro/Max - OAuth with your existing subscription
- API Key - Generate or enter manually
This plugin exists because Anthropic blocks their API from working with OpenCode. These workarounds wouldn't be necessary if Anthropic allowed their paying customers to use better tools like OpenCode freely.
MIT