
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
provider-fallback-plugin
Advanced tools
AI provider fallback management for Claude Code/OpenCode with automatic failover, usage analytics, and MCP integration
AI provider fallback management for OpenCode/Claude Code with automatic failover, usage analytics, and MCP integration.
.opencode/provider-fallback.local.mdnpm install -g provider-fallback-plugin
Then add to your OpenCode config (~/.config/opencode/opencode.json):
{
"plugin": [
"provider-fallback-plugin"
]
}
git clone https://github.com/AttendantLion8/provider-fallback-plugin.git ~/plugins/provider-fallback-plugin
cd ~/plugins/provider-fallback-plugin
node scripts/install.js
| Command | Description |
|---|---|
/provider-status | Show current provider status and usage |
/provider-switch [provider] | Switch to a different provider |
/provider-auth [provider] | Configure authentication |
/provider-models [family] | List available models |
/provider-priority [providers...] | Set provider priority order |
/provider-limits [provider] | Configure usage limits |
/provider-analytics [period] | Show usage analytics |
| Family | Providers | Auth Types |
|---|---|---|
| Anthropic | anthropic-subscription, anthropic-oauth, anthropic-api | All 3 |
| OpenAI | openai-subscription, openai-oauth, openai-api | All 3 |
| google-subscription, google-oauth, google-api | All 3 | |
| OpenCode | opencode-antigravity-auth | Token |
| AWS | bedrock | IAM |
| Azure | azure | API Key |
| GitHub | github-copilot | OAuth |
| Vertex | vertex, vertex-google | Service Account |
| OpenRouter | openrouter | API Key |
| Together | together | API Key |
| Groq | groq | API Key |
| xAI | xai-subscription, xai-api | Both |
| Mistral | mistral-api | API Key |
| DeepSeek | deepseek-api | API Key |
| Cohere | cohere-api | API Key |
| ZAI | zai-coding-plan | Token |
| Antigravity | antigravity | Token |
| Family | Models | Context | Capabilities |
|---|---|---|---|
| Claude | 21 | 128K-200K | Text, Vision, Code |
| GPT | 39 | 8K-1M | Text, Vision, Code, Audio |
| Gemini | 26 | 32K-2M | Text, Vision, Code, Audio |
| Antigravity | 10 | 128K-200K | Text, Code, Thinking |
| GLM | 7 | 128K-1M | Text, Code |
| Llama | 3 | 128K | Text, Code |
| Mistral | 3 | 32K-128K | Text, Code |
| Grok | 3 | 128K-1M | Text, Vision |
| DeepSeek | 2 | 128K | Text, Code |
| Cohere | 1 | 128K | Text, RAG |
| Qwen | 1 | 128K | Text, Code |
# View analytics dashboard
node scripts/show-analytics.js
# View with options
node scripts/show-analytics.js 7d --costs --compare
# Reset analytics
node scripts/reset-analytics.js --force
# Start MCP server
node mcp/server.js
# Or with custom port
MCP_PORT=3848 node mcp/server.js
Available Tools:
provider.list / provider.active / provider.switchmodel.list / model.infoanalytics.summary / analytics.providers / analytics.costsauth.status / auth.checkCreate .opencode/provider-fallback.local.md:
---
default_model: claude-sonnet-4-20250514
auto_switch: true
priority_override:
- opencode-antigravity-auth
- anthropic-subscription
- openai-subscription
daily_limit: 1000
monthly_limit: 25000
---
# Anthropic
ANTHROPIC_SUBSCRIPTION_KEY=...
ANTHROPIC_OAUTH_TOKEN=...
ANTHROPIC_API_KEY=...
# OpenAI
OPENAI_SUBSCRIPTION_KEY=...
OPENAI_OAUTH_TOKEN=...
OPENAI_API_KEY=...
# Google
GOOGLE_AI_SUBSCRIPTION=...
GOOGLE_OAUTH_TOKEN=...
GOOGLE_API_KEY=...
# OpenCode Antigravity
OPENCODE_ANTIGRAVITY_TOKEN=...
ANTIGRAVITY_AUTH_TOKEN=...
OC_ANTIGRAVITY_KEY=...
# AWS/Azure
AWS_ACCESS_KEY_ID=...
AWS_SECRET_ACCESS_KEY=...
AZURE_OPENAI_API_KEY=...
# Others
OPENROUTER_API_KEY=...
TOGETHER_API_KEY=...
GROQ_API_KEY=...
XAI_API_KEY=...
MISTRAL_API_KEY=...
DEEPSEEK_API_KEY=...
COHERE_API_KEY=...
provider-fallback-plugin/
├── .opencode-plugin/
│ └── plugin.json # Plugin manifest
├── agents/
│ └── provider-advisor.md # Provider recommendation agent
├── commands/ # 7 slash commands
├── hooks/
│ ├── hooks.json # SessionStart + Notification hooks
│ └── scripts/ # Hook handler scripts
├── lib/
│ ├── analytics.js # Usage tracking
│ ├── auth.js # Authentication
│ ├── index.js # Main export
│ ├── models.js # 116 models
│ └── providers.js # 25 providers
├── mcp/
│ ├── README.md # MCP documentation
│ └── server.js # MCP server
├── scripts/
│ ├── install.js # Installation script
│ ├── show-analytics.js # Analytics viewer
│ ├── reset-analytics.js # Reset analytics
│ └── uninstall.js # Uninstallation
├── skills/
│ └── provider-management/ # Skill documentation
├── templates/
│ └── provider-fallback.local.md
├── tests/
│ └── test.js # Validation tests
├── package.json
└── README.md
node tests/test.js
Contributions are welcome! Please feel free to submit a Pull Request.
MIT © 2025 AttendantLion8
FAQs
AI provider fallback management for Claude Code/OpenCode with automatic failover, usage analytics, and MCP integration
The npm package provider-fallback-plugin receives a total of 3 weekly downloads. As such, provider-fallback-plugin popularity was classified as not popular.
We found that provider-fallback-plugin 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
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.