AgentStack
MCP verified MIT Self-run

Provider Fallback Plugin

mcp-attendantlion8-provider-fallback-plugin · by AttendantLion8

AI provider fallback management for Claude Code/OpenCode with automatic failover, usage analytics, and MCP integration

No reviews yet
0 installs
14 views
0.0% view→install

Install

$ agentstack add mcp-attendantlion8-provider-fallback-plugin

✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README — it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/mcp-attendantlion8-provider-fallback-plugin)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
7mo ago

Declared compatibility

Claude CodeClaude DesktopCursorWindsurf

Compatibility is declared by the source manifest. End-to-end runtime verification is coming — see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps — measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Provider Fallback Plugin? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Provider Fallback Plugin

[](https://www.npmjs.com/package/provider-fallback-plugin) [](https://opensource.org/licenses/MIT) [](https://nodejs.org/)

AI provider fallback management for OpenCode/Claude Code with automatic failover, usage analytics, and MCP integration.

Features

  • 116 Models across 14 families (Claude, GPT, Gemini, Antigravity, GLM, Llama, etc.)
  • 25 Providers with multi-auth support (subscription, OAuth, API key)
  • Automatic Fallback when rate limits or quota exceeded
  • Usage Analytics with provider comparison and cost tracking
  • MCP Server for external integrations
  • Per-Project Settings via .opencode/provider-fallback.local.md

Installation

Via npm (Recommended)

npm install -g provider-fallback-plugin

Then add to your OpenCode config (~/.config/opencode/opencode.json):

{
  "plugin": [
    "provider-fallback-plugin"
  ]
}

Manual Installation

git clone https://github.com/AttendantLion8/provider-fallback-plugin.git ~/plugins/provider-fallback-plugin
cd ~/plugins/provider-fallback-plugin
node scripts/install.js

Commands

| 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 |

Provider Families

| Family | Providers | Auth Types | |--------|-----------|------------| | Anthropic | anthropic-subscription, anthropic-oauth, anthropic-api | All 3 | | OpenAI | openai-subscription, openai-oauth, openai-api | All 3 | | Google | 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 |

Model Families

| 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 |

Usage Analytics

# 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

MCP Server

# 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.switch
  • model.list / model.info
  • analytics.summary / analytics.providers / analytics.costs
  • auth.status / auth.check

Per-Project Configuration

Create .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
---

Environment Variables

# 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=...

File Structure

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

Testing

node tests/test.js

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

[MIT](LICENSE) © 2025 AttendantLion8

Source & license

This open-source MCP server is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet — be the first.

Versions

  • v0.1.0 Imported from the upstream source.