
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
anthropic-multi-auth
Advanced tools
Multi-account Anthropic auth plugin for OpenCode with quota-aware load balancing
Multi-account Anthropic auth plugin for OpenCode with quota-aware load balancing.
Add the plugin to your OpenCode configuration in opencode.json:
{
"plugins": ["anthropic-multi-auth"]
}
Run the OpenCode auth flow to add accounts:
opencode auth login
When prompted, select "Claude Pro/Max" to authorize a new account. After successful authorization, you'll be asked if you want to add another account. Repeat this process to add multiple Anthropic accounts.
To view and manage your configured accounts:
opencode auth login
Select "Manage Accounts" to see your accounts and remove ones you no longer need.
To view current utilization for all configured accounts:
opencode auth login
Select "View Account Usage" to print each account's status and usage utilization.
When a session starts, the plugin:
~/.config/opencode/anthropic-accounts.jsonOnce an account is selected at session start, it remains active throughout the session. This ensures consistent behavior within a single session.
If an API request returns a 429 (Too Many Requests) response:
When tokens expire (checked via the expires timestamp):
Accounts are stored at:
~/.config/opencode/anthropic-accounts.json
Each account includes:
access: OAuth access tokenrefresh: OAuth refresh tokenexpires: Token expiration timestamp (milliseconds)addedAt: When the account was addedenabled: Whether this account is activeemail: (optional) User email from OAuthlabel: (optional) Friendly name for the accountThis plugin extends the OpenCode builtin opencode-anthropic-auth with:
If no accounts are configured, the plugin falls back to the builtin auth plugin, so the plugin is fully backward compatible.
Symptom: Plugin doesn't seem to be working.
Solution: Run opencode auth login and select "Claude Pro/Max" to add at least one account.
Symptom: Error: "All accounts rate-limited. Shortest wait: Xs."
Solution: Wait the specified time before trying again. If this happens frequently, consider adding more accounts.
Symptom: Error during session with 401/403 status codes.
Solution:
opencode auth login → "Manage Accounts" to remove and re-add affected accountsSymptom: Plugin doesn't appear to be active.
Solution:
opencode.json has the correct plugin name: "anthropic-multi-auth"bun install (or npm install) to ensure dependencies are installed@opencode-ai/plugin@^0.4.45)MIT
FAQs
Multi-account Anthropic auth plugin for OpenCode with quota-aware load balancing
The npm package anthropic-multi-auth receives a total of 46 weekly downloads. As such, anthropic-multi-auth popularity was classified as not popular.
We found that anthropic-multi-auth demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.