opencode-anthropic-auth-dynamic
v0.0.4
Published
[OpenCode](https://github.com/opencode-ai/opencode) plugin for Anthropic OAuth authentication. Use your Claude Pro/Max subscription with OpenCode.
Readme
opencode-anthropic-auth-dynamic
OpenCode plugin for Anthropic OAuth authentication. Use your Claude Pro/Max subscription with OpenCode.
Install
Via npm
npm install opencode-anthropic-auth-dynamicAdd to ~/.config/opencode/opencode.json:
{
"plugin": ["opencode-anthropic-auth-dynamic"]
}Local Development
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"]
}Auth Methods
- Claude Pro/Max - OAuth with your existing subscription
- API Key - Generate or enter manually
Why This Exists
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.
License
MIT
