Smart Switch — AI skill for Claude Code
Multi-app model provider switcher: manage OpenAI/Anthropic-protocol providers (base URL + API key + models) and sync them, with models.dev metadata, into 8 coding agents — Claude Code, Codex CLI, omp.
How to install Smart Switch
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open tchivs/smart-switch and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Smart Switch does
Multi-app model provider switcher: manage OpenAI/Anthropic-protocol providers (base URL + API key + models) and sync them, with models.dev metadata, into 8 coding agents — Claude Code, Codex CLI, omp, pi, prime-agent, opencode, Hermes, WorkBuddy.
Alternatives in AI
- Claude Code Switch — One-command model switcher for Claude Code (Only for Anthropic API) 655 ★
- Qiaomu Markdown Proxy — Fetch any URL as clean Markdown via proxy services (r.jina.ai / defuddle.md) or built-in scripts 426 ★
- Folkbench — AI API 中转站评测排行与切换工具:实测可用率、延迟与价格 · Open-source AI API relay benchmark, rankings & switcher for Claude Code / Co 420 ★
README
smart-switch
[](https://www.npmjs.com/package/smart-switch) [](https://github.com/tchivs/smart-switch/actions/workflows/ci.yml) [](#install) [](./LICENSE)
[English] | [简体中文](./README.zh-CN.md)
Multi-app model provider switcher. Manage OpenAI-protocol and Anthropic-protocol providers (base URL + API key + models) in one place and sync them into the config files of your coding agents — like cc-switch, but for eight apps at once.
| App | Config written | Protocols |
|---|---|---|
| Claude Code | ~/.claude/settings.json env block |
anthropic |
| Codex CLI | ~/.codex/config.toml + auth.json (Responses API only) |
openai |
| Oh My Pi (omp) | ~/.omp/agent/models.yml (comments preserved) |
both |
| pi | ~/.pi/agent/models.json + settings.json |
both |
| prime-agent | ~/.prime/agent/models.json + settings.json |
both |
| opencode | ~/.config/opencode/opencode.json |
both |
| Hermes | ~/.hermes/config.yaml + .env (comments preserved) |
both |
| WorkBuddy | ~/.workbuddy/models.json + settings.json |
openai |
Model metadata — context window, max input/output tokens, reasoning/thinking levels, image input, pricing — is enriched from [models.dev](https://models.dev) and pushed into each app's config (`thinkingLevelMap` for pi/prime, `limit`/`attachment` for opencode, `contextWindow`/`maxTokens` for omp, ...). Reseller `/v1/models` endpoints carry no metadata; this closes that gap.
Install
npx smart-switch # zero install: opens the interactive menu
npm install -g smart-switch # requires Node >= 22.12
Quick start
smart-switch
Related Skills
One Switch
One Switch 是面向 Codex、Claude Code 等 AI 开发工具的本地故障切换网关。它通过统一的本地 API 入口集中管理多个 AI 供应商、模型与密钥,让各类工具只需配置一次,无需在切换供应商或模型
Ccrelay
Local API proxy (VS Code extension + desktop app) for Claude Code, Cowork & Codex. Automatic protocol conversi
Nano LLM Proxy
Tiny single-binary LLM gateway — pool multiple providers and API keys behind one OpenAI/Anthropic-compatible e
Aisw
AISW AI Switcher - Switch between multiple Claude Code, Codex CLI, Antigravity and Gemini CLI accounts in one
Switcher
One harness, all your AI accounts. Switch Claude Code, Codex and Claude Desktop between your own subscriptions
Smart Cascade
把一队编码任务交给一条级联的 AI agent:Root 读取静态队列,派出隔离的 Leader,Leader 动态拆成隔离的 Executor 并行产出 patch。基于 OMP native subagent 的结构
Related Agents
LLM Orchestrator
Use this agent for LLM integration work — prompt engineering, multi-provider abstraction (OpenRouter, Gemini,
ZeroClaw Android
Run AI agents 24/7 on your Android phone. Native Rust core, 25+ providers (OpenAI, Claude, Gemini, Groq, DeepS
Quota Router
Thin wrapper over ~/.claude/router/state.sh. Reports the router's provider-state verdict (GPT/Claude/Gemini el