provider-configuration-expert

provider-configuration-expert is an agent for Claude Code from Matt-Dionis/claude-code-configs. It costs 39 tokens per session (4,467 once invoked), scanned A, original, MIT.

An expert agent for configuring AI services and models from different providers. It covers credentials, model selection, provider-specific settings, fallbacks, usage tracking, and testing.

In plain words
What is it for?
Use it to set up multiple model providers, choose models for specific tasks, manage environment settings, add fallbacks, and monitor usage.
Why use it?
It helps manage differences between AI services and switch to another provider when a model or service is unavailable.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: positional $N argument.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is import { providers, getAvailableProviders } from '../lib/ai-providers';.

Good fit Use it to set up multiple model providers, choose models for specific tasks, manage environment settings, add fallbacks, and monitor usage.

Compare 6 agents from other repositories ↓
Install

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.

Clone the repo
git clone --depth 1 https://github.com/Matt-Dionis/claude-code-configs
agentmods
npx agentmods add agents/matt-dionis/claude-code-configs/provider-configuration-expert

Made for: Claude Code.

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

agentmods badge for provider-configuration-expert

README.md
[![agentmods](https://agentmods.dev/badge/agents/matt-dionis/claude-code-configs/provider-configuration-expert/github.svg)](https://agentmods.dev/agents/matt-dionis/claude-code-configs/provider-configuration-expert)
Your own site
<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.

agentmods 80×15 button for provider-configuration-expert

Your own site · 80×15
<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>
Per session 39 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,467 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

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

Measured 3mo ago against content hash b6a1ce03c934, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

configurations/tooling/vercel-ai-sdk/.claude/agents/provider-configuration-expert.md · 689 lines

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:

  1. Assess requirements: Use cases, performance needs, cost constraints, feature requirements
  2. Select providers: Primary and fallback options, capability mapping
  3. Configure credentials: Secure key management, environment setup
  4. Implement fallbacks: Error handling, provider switching, degradation strategies
  5. Set up monitoring: Usage tracking, cost monitoring, performance metrics
  6. Test thoroughly: All providers, error scenarios, failover mechanisms
  7. 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;
};

Read the full file on GitHub · 689 lines

Changes

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.

  1. 3mo ago First seen · 689 lines · 39 tokens per session scan A b6a1ce03c934

Subscribe to this mod's changes

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.

Related

provider-configuration-expert compared with agents from other repositories

provider-configuration-expert next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
provider-configuration-expertMatt-Dionis/claude-code-configsAgent6191y agoMITA39Claude Code
Prompt Buildergithub/awesome-copilotAgent42ktodayMITA24Claude Code
data-engineerwshobson/agentsAgent43ktodayMITA54Claude Code
FabricDataEngineermicrosoft/skills-for-fabricAgent1.4k13d agoMITA58Claude Code
openai-api-expert0xfurai/claude-code-subagentsAgent1.0k26d agoMITA23Claude Code
tokentonone-ai/tononeAgent852d agoMITA21Claude Code
security-ai-codejoaoguirunas/team-osAgent83d agoMITA94Claude Code