▸ map/opencode-failover.md
opencode-failover
Automatic API-key failover and rotation across multiple provider keys
plugins✓ Dec 4
Facts
- repository
- github.com/bulutmuf/opencode-failover ↗
- GitHub Stars
- ★ 53
- Forks
- 6
- license
- MIT
- npm / mo
- 552
- last push
- Oct 10, 2026
install
"plugin": ["opencode-failover"] (v1 opencode.json) — "plugins": ["opencode-failover"] (v2; v1 plugins need porting)## TL;DR
OpenCode plugin that automatically rotates API keys across multiple provider credentials. When a key hits a rate limit, the plugin quarantines it and switches to the next available key with zero downtime.
## Key points
- $Features weighted round-robin distribution, exponential backoff quarantine, retry-after header support, permanent disable on auth errors (401/403/402), and natural language tools for key management.
- $Works with NVIDIA NIM, OpenRouter, Anthropic, OpenAI, and any OpenCode-compatible provider.
- $Install scope: global.
- $Published on npm as opencode-failover.
## References
## Related entries
## Guides
Last updated: Nov 23, 2026