skills/attendantlion8/provider-management/SKILL.md
Skill for managing model provider priorities with authentication (OAuth/Subscription/API), usage limits, and automatic fallback across all major AI providers
npx skillsauth add aiskillstore/marketplace provider-managementInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Comprehensive management of AI models across all major providers with multi-auth support and automatic fallback.
Supports ALL major AI providers and models with three authentication methods:
| Priority | Auth Type | Description | |----------|-----------|-------------| | 100 | Subscription | Pro/Plus/Max subscriptions (highest priority) | | 50 | OAuth | OAuth 2.0 tokens (Antigravity-style) | | 10 | API | Direct API keys (lowest priority) |
claude-4-opus, claude-sonnet-4, claude-3.5-sonnet, claude-3.5-haiku, claude-3-opusgpt-4.1, gpt-4.1-mini, gpt-4o, gpt-4o-mini, o1, o3-minigemini-2.5-pro, gemini-2.5-flash, gemini-2.0-flash, gemini-1.5-progrok-3, grok-3-minillama-4-maverick, llama-3.3-70b (bedrock, together, groq, openrouter)deepseek-r1, deepseek-v3 (deepseek-api, together, openrouter)mistral-large, codestral (mistral-api, bedrock, azure, openrouter)command-r-plus (cohere-api, bedrock, openrouter)qwen-2.5-72b (together, openrouter)| Canonical | anthropic-api | bedrock | vertex | openrouter | |-----------|---------------|---------|--------|------------| | claude-sonnet-4 | claude-sonnet-4-20250514 | anthropic.claude-sonnet-4-20250514-v1:0 | claude-sonnet-4@20250514 | anthropic/claude-sonnet-4 | | gpt-4o | gpt-4o-2024-11-20 | - | - | openai/gpt-4o | | gemini-2.5-pro | - | - | gemini-2.5-pro-preview-05-06 | google/gemini-2.5-pro-preview |
/provider-authConfigure authentication for providers.
# View all auth status
/provider-auth status
# Set API key
/provider-auth setup anthropic-api --key sk-ant-...
# Start OAuth flow (Antigravity-style)
/provider-auth oauth google-oauth
# Set subscription token
/provider-auth setup anthropic-subscription --key <session-token>
/provider-modelsList models and provider mappings.
# List all models
/provider-models list
# Filter by family
/provider-models list --filter claude
# Get model info with all provider IDs
/provider-models info claude-sonnet-4
# Filter by capability
/provider-models capability reasoning
/provider-priorityManage provider order.
/provider-priority
/provider-priority set anthropic-subscription,anthropic-api,bedrock
/provider-priority move bedrock 1
/provider-limitsConfigure usage limits.
/provider-limits
/provider-limits anthropic-api --daily 1M --monthly 10M
/provider-statusView usage dashboard.
/provider-status
/provider-status bedrock
/provider-status --reset
/provider-switchManual control.
/provider-switch bedrock
/provider-switch --auto on
~/.opencode/provider-fallback/
├── config.json # Priority, limits, settings
├── usage.json # Usage tracking
├── auth.json # Stored credentials (0600 permissions)
└── tokens.json # OAuth tokens
1. Request comes in for model (e.g., claude-sonnet-4)
2. Get all configured providers for that model's vendor
3. Sort by auth priority: subscription (100) > oauth (50) > api (10)
4. Filter by usage capacity
5. Select best available provider
6. Get provider-specific model ID
7. Make request with appropriate credentials
For Google, Anthropic, or OpenAI OAuth:
# 1. Start OAuth flow
/provider-auth oauth google-oauth
# 2. Enter client ID and secret when prompted
# 3. Browser opens for authorization
# 4. Callback server receives token
# 5. Tokens stored securely
OAuth tokens auto-refresh when within 60 seconds of expiry.
# Configure multiple vendors
/provider-auth setup anthropic-subscription --key <token>
/provider-auth setup openai-api --key sk-...
/provider-auth setup google-api --key AIza...
# System auto-selects best for each model family
Tokens refresh automatically. If manual refresh needed:
/provider-auth refresh google-oauth
Ensure session token is valid and not expired:
/provider-auth setup anthropic-subscription --key <new-token>
Check configured providers and priorities:
/provider-auth status
The system always prefers: subscription > oauth > api
development
Apple Human Interface Guidelines for content display components. Use this skill when the user asks about charts component, collection view, image view, web view, color well, image well, activity view, lockup, data visualization, content display, displaying images, rendering web content, color pickers, or presenting collections of items in Apple apps. Also use when the user says how should I display charts, what's the best way to show images, should I use a web view, how do I build a grid of items, what component shows media, or how do I present a share sheet. Cross-references: hig-foundations for color/typography/accessibility, hig-patterns for data visualization patterns, hig-components-layout for structural containers, hig-platforms for platform-specific component behavior.
tools
Automate HelpDesk tasks via Rube MCP (Composio): list tickets, manage views, use canned responses, and configure custom fields. Always search tools first for current schemas.
testing
Expert Haskell engineer specializing in advanced type systems, pure functional design, and high-reliability software. Use PROACTIVELY for type-level programming, concurrency, and architecture guidance.
tools
GraphQL gives clients exactly the data they need - no more, no less. One endpoint, typed schema, introspection. But the flexibility that makes it powerful also makes it dangerous. Without proper controls, clients can craft queries that bring down your server. This skill covers schema design, resolvers, DataLoader for N+1 prevention, federation for microservices, and client integration with Apollo/urql. Key insight: GraphQL is a contract. The schema is the API documentation. Design it carefully.