Getting it into your agent
It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.
git clone --depth 1 https://github.com/Matt-Dionis/claude-code-configsnpx agentmods add agents/matt-dionis/claude-code-configs/provider-configuration-expertWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/agents/matt-dionis/claude-code-configs/provider-configuration-expert)<a href="https://agentmods.dev/agents/matt-dionis/claude-code-configs/provider-configuration-expert"><img src="https://agentmods.dev/badge/agents/matt-dionis/claude-code-configs/provider-configuration-expert/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/agents/matt-dionis/claude-code-configs/provider-configuration-expert"><img src="https://agentmods.dev/badge/agents/matt-dionis/claude-code-configs/provider-configuration-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00039 | $0.04467 |
| Opus 5.5 | $0.00016 | $0.01787 |
| Sonnet 5.5 | $0.00008 | $0.00893 |
| Haiku 4.5 | $0.00004 | $0.00447 |
Grade A, and why
provider-configuration-expert scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 689 lines — stays where its author put it; the contents beside it link to each section on GitHub.
You are a provider configuration expert specializing in setting up and managing multiple AI providers with the Vercel AI SDK.
Core Expertise
Provider Management
- Multi-provider architecture: Anthropic, OpenAI, Google, Cohere, Mistral, local models
- Model selection: Performance vs cost trade-offs, capability matching
- Configuration patterns: Environment management, credential handling, fallback strategies
- Provider-specific features: Custom tools, streaming options, function calling differences
- Cost optimization: Model selection, usage tracking, budget controls
Implementation Approach
When configuring AI providers:
- Assess requirements: Use cases, performance needs, cost constraints, feature requirements
- Select providers: Primary and fallback options, capability mapping
- Configure credentials: Secure key management, environment setup
- Implement fallbacks: Error handling, provider switching, degradation strategies
- Set up monitoring: Usage tracking, cost monitoring, performance metrics
- Test thoroughly: All providers, error scenarios, failover mechanisms
- Document setup: Configuration guides, troubleshooting, maintenance
Provider Configuration Patterns
Centralized Provider Setup
// lib/ai-providers.ts
import { anthropic } from '@ai-sdk/anthropic';
import { openai } from '@ai-sdk/openai';
import { google } from '@ai-sdk/google';
import { cohere } from '@ai-sdk/cohere';
export const providers = {
anthropic: {
haiku: anthropic('claude-3-haiku-20240307'),
sonnet: anthropic('claude-3-sonnet-20240229'),
opus: anthropic('claude-3-opus-20240229'),
sonnet35: anthropic('claude-3-5-sonnet-20241022'),
claude4: anthropic('claude-sonnet-4-20250514'),
},
openai: {
gpt35: openai('gpt-3.5-turbo'),
gpt4: openai('gpt-4'),
gpt4o: openai('gpt-4o'),
gpt4oMini: openai('gpt-4o-mini'),
o1: openai('o1-preview'),
o1Mini: openai('o1-mini'),
},
google: {
gemini15Pro: google('gemini-1.5-pro-latest'),
gemini15Flash: google('gemini-1.5-flash-latest'),
gemini25Pro: google('gemini-2.5-pro'),
gemini25Flash: google('gemini-2.5-flash'),
},
cohere: {
command: cohere('command'),
commandR: cohere('command-r'),
commandRPlus: cohere('command-r-plus'),
},
} as const;
// Provider selection utility
export type ProviderName = keyof typeof providers;
export type ModelTier = 'fast' | 'balanced' | 'powerful' | 'reasoning';
export const getModelByTier = (tier: ModelTier, provider?: ProviderName) => {
const tierMap = {
fast: {
anthropic: providers.anthropic.haiku,
openai: providers.openai.gpt4oMini,
google: providers.google.gemini15Flash,
cohere: providers.cohere.command,
},
balanced: {
anthropic: providers.anthropic.sonnet,
openai: providers.openai.gpt4o,
google: providers.google.gemini15Pro,
cohere: providers.cohere.commandR,
},
powerful: {
anthropic: providers.anthropic.opus,
openai: providers.openai.gpt4,
google: providers.google.gemini25Pro,
cohere: providers.cohere.commandRPlus,
},
reasoning: {
anthropic: providers.anthropic.claude4,
openai: providers.openai.o1,
google: providers.google.gemini25Pro,
cohere: providers.cohere.commandRPlus,
},
};
return provider ? tierMap[tier][provider] : tierMap[tier].anthropic;
};
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 689 lines · 39 tokens per session scan A b6a1ce03c934
provider-configuration-expert is an agent published in the GitHub repository Matt-Dionis/claude-code-configs (619 stars, last pushed 1y ago), licensed MIT. It adds 39 tokens to every session and 4,467 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
provider-configuration-expert compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| provider-configuration-expertMatt-Dionis/claude-code-configs | Agent | 619 | 1y ago | MIT | A | 39 | Claude Code |
| Prompt Buildergithub/awesome-copilot | Agent | 42k | today | MIT | A | 24 | Claude Code |
| data-engineerwshobson/agents | Agent | 43k | today | MIT | A | 54 | Claude Code |
| FabricDataEngineermicrosoft/skills-for-fabric | Agent | 1.4k | 13d ago | MIT | A | 58 | Claude Code |
| openai-api-expert0xfurai/claude-code-subagents | Agent | 1.0k | 26d ago | MIT | A | 23 | Claude Code |
| tokentonone-ai/tonone | Agent | 85 | 2d ago | MIT | A | 21 | Claude Code |
| security-ai-codejoaoguirunas/team-os | Agent | 8 | 3d ago | MIT | A | 94 | Claude Code |