provider-setup

provider-setup is a command for coding agents from AttendantLion8/provider-fallback-plugin. It costs 11 tokens per session (2,024 once invoked), scanned C, original, MIT.

An interactive setup wizard for configuring AI providers, their credentials, and their priority order. Credentials are the keys or settings that let the tools connect to a provider.

In plain words
What is it for?
Setting up provider groups, checking the current setup, detecting environment credentials and installed add-ons, and choosing provider priority.
Why use it?
It gathers setup information, checks credentials, and shows what is already configured.

Command

Installs and runs on its own, but its text points at files inside the plugin that ships it — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed.

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/attendantlion8/provider-fallback-plugin/provider-setup
Clone the repo
git clone --depth 1 https://github.com/AttendantLion8/provider-fallback-plugin

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/attendantlion8/provider-fallback-plugin/provider-setup.svg)](https://agentmods.dev/commands/attendantlion8/provider-fallback-plugin/provider-setup)
Your own site
<a href="https://agentmods.dev/commands/attendantlion8/provider-fallback-plugin/provider-setup"><img src="https://agentmods.dev/badge/commands/attendantlion8/provider-fallback-plugin/provider-setup.svg" alt="Measured on agentmods" height="20"></a>
Per session 11 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,024 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 1 finding. Scan, not verified.
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 $0.00011 $0.02024
Opus 5 $0.00005 $0.01012
Sonnet 5 $0.00002 $0.00405
Haiku 4.5 $0.00001 $0.00202

Measured 4d ago against content hash 89f15ad4ecd6, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade C, and why

provider-setup scanned grade C with 1 finding 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 4d 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.

Harvests environment variableshighData exfiltration

Enumerating or grepping the environment for keys collects credentials unrelated to what the mod says it does.

### Step 6: Collect Credentials
commands/provider-setup.md · 269 lines

How it starts

The opening of the file, as written. The whole thing — 269 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Provider Setup Wizard

Interactive wizard that guides you through complete provider configuration. Auto-detects credentials from environment variables, detects installed addon plugins, and helps configure all providers.

Usage

Run Complete Setup Wizard

/provider-setup

View Current Setup Status

/provider-setup --status

Setup Specific Provider Group

/provider-setup --group anthropic
/provider-setup --group cloud

Configure Priority Only

/provider-setup --priority

What This Wizard Does

  1. Auto-detects credentials from environment variables
  2. Detects installed addon plugins (oh-my-opencode, etc.)
  3. Lists all available agents including from addons
  4. Guides through setting up each provider group
  5. Configures provider priority order
  6. Validates all credentials

Provider Groups

Group Providers
Anthropic anthropic-subscription, anthropic-oauth, anthropic-api
OpenAI openai-subscription, openai-oauth, openai-api
Google google-subscription, google-oauth, google-api
Cloud bedrock, vertex, vertex-google, azure
xAI xai-subscription, xai-api
Aggregators openrouter, together, groq
Specialty github-copilot, mistral-api, deepseek-api, cohere-api, etc.

Implementation

When this command is invoked, the assistant should:

Step 1: Load Setup State

import { generateWizardData, getSetupSummary } from '${CLAUDE_PLUGIN_ROOT}/lib/setup-wizard.js';

const data = generateWizardData();
const summary = data.summary;

Step 2: Display Current Status

Display this status overview:

╔═══════════════════════════════════════════════════════════════════════╗
║                    PROVIDER FALLBACK SETUP WIZARD                      ║
╠═══════════════════════════════════════════════════════════════════════╣
║ Plugin Version: 2.5.0                                                  ║
╠═══════════════════════════════════════════════════════════════════════╣
║                           CURRENT STATUS                               ║
╠═════════════════════════════╦═════════════════════════════════════════╣
║ Total Providers             ║ ${summary.stats.totalProviders}                                     ║
║ Configured (from config)    ║ ${summary.stats.fromConfig}                                      ║
║ Configured (from env vars)  ║ ${summary.stats.fromEnvironment}                                      ║
║ Unconfigured               ║ ${summary.stats.unconfigured}                                     ║
╠═════════════════════════════╬═════════════════════════════════════════╣
║ Installed Plugins           ║ ${summary.stats.installedPlugins}                                      ║
║ Available Agents            ║ ${summary.stats.availableAgents}                                     ║
╚═════════════════════════════╩═════════════════════════════════════════╝

Read the full file on GitHub · 269 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. 4d ago First seen · 269 lines · 11 tokens per session scan C 89f15ad4ecd6

Subscribe to this mod's changes

provider-setup is a command published in the GitHub repository AttendantLion8/provider-fallback-plugin (2 stars, last pushed 8mo ago), licensed MIT. It adds 11 tokens to every session and 2,024 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it C with 1 finding (harvests environment variables). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.