provider-switch

provider-switch is a skill for Claude Code, Codex from kochetkov-ma/claude-brewcode. It costs 35 tokens per session (6,453 once invoked), scanned B, original, no licence file.

A configuration tool for switching an AI coding agent to alternative API providers, the services that supply its language models.

In plain words
What is it for?
Configuring DeepSeek, Z.ai/GLM, Qwen, MiniMax, or OpenRouter as an API provider.
Why use it?
It helps change which provider handles model requests when another service is needed.

Skill for Claude CodeCodex

Part of the brewtools plugin — 9 skills, 3 agents shipped together

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 skills/kochetkov-ma/claude-brewcode/provider-switch
Any agent
npx skills add kochetkov-ma/claude-brewcode --skill provider-switch
Clone the repo
git clone --depth 1 https://github.com/kochetkov-ma/claude-brewcode

Made for: Claude Code, Codex.

Or install brewtools, the plugin that ships this one along with the rest of its 9 skills, 3 agents.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/kochetkov-ma/claude-brewcode/provider-switch.svg)](https://agentmods.dev/skills/kochetkov-ma/claude-brewcode/provider-switch)
Your own site
<a href="https://agentmods.dev/skills/kochetkov-ma/claude-brewcode/provider-switch"><img src="https://agentmods.dev/badge/skills/kochetkov-ma/claude-brewcode/provider-switch.svg" alt="Measured on agentmods" height="20"></a>
Per session 35 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,453 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 findings. Scan, not verified.
Origin unknown 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.00035 $0.06453
Opus 5 $0.00017 $0.03227
Sonnet 5 $0.00007 $0.01291
Haiku 4.5 $0.00003 $0.00645

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

Security

Grade B, and why

provider-switch scanned grade B with 2 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 4d ago.

The scan reads SKILL.md. This mod also ships 9 executable files (scripts/check-status.sh, scripts/detect-mode.sh, scripts/read-secret.sh, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

Sends data to an external URLmediumData exfiltration

A POST to an outside endpoint may be telemetry or may be exfiltration; either way the mod talks to somewhere, and you should know where.

| curl -s -K - -o /dev/null -w "%{http_code}" -X POST "https://api.z.ai/api/anthropic/v1/messages" -H "content-type: application/json" -H "anthropic-version: 2023-06-01" -d '{"model":"glm-5.2","max_tokens":5,"messages":[

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

Identify which model responds in current Claude Code session. Runs INSIDE session launched via PRV ALIAS. Asks 5 diagnostic questions to model — no curl/scripts.
brewtools/skills/provider-switch/SKILL.md · 557 lines

The source is not reproduced here

No licence file

A repository with no LICENSE is all rights reserved by default, so the body is not copied here. The metadata, the measurements and the link are.

Read it on GitHub

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 · 557 lines · 35 tokens per session scan B 16cf0a12bb7e

Subscribe to this mod's changes

provider-switch is a skill published in the GitHub repository kochetkov-ma/claude-brewcode (31 stars, last pushed 6d ago), with no licence file. It adds 35 tokens to every session and 6,453 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it B with 2 findings (sends data to an external url, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.