multi-provider-routing
БесплатноБез исполняемых скриптовНе проверенRoute agentic-flow work across Anthropic, OpenRouter, Gemini and local ONNX models, and run the Anthropic-compatible translation proxy with its per-run token…
от ruvnet★ 850 звёзд на GitHubОб этом скилле
Multi-provider routing
Plugin settings
Set these with /plugin (configure) or in settings under pluginConfigs:
provider:anthropic(default),openrouter,gemini,onnx,requesty(setsPROVIDER)model: default model id (setsCOMPLETION_MODEL); empty uses the provider's defaultopenrouter_api_key,gemini_api_key: stored in secure storage
A key set in the plugin replaces the same variable from your shell for the MCP server. Left empty, the server sees an empty value, not your shell's: set the key in the plugin if you use that provider through it. ANTHROPIC_API_KEY is not a plugin setting; the server inherits it, or your Claude login, from the environment.
Never pass a key as a tool argument (anthropicApiKey, openrouterApiKey): arguments are written to the transcript, and the plugin's guard refuses such calls.
Per call
agentic_flow_agent (registered under the learning or admin profile) takes provider and model per call, overriding the defaults. Pick with the model-router agent when unsure.
Translation proxy: Claude Code on another provider
agentic-flow can serve an Anthropic-compatible endpoint backed by OpenRouter or Gemini. Since 3.0.0 the proxy:
- binds
127.0.0.1unlessAGENTIC_FLOW_PROXY_HOSTsays otherwise, and - accepts only a per-run token that it prints on start (or
AGENTIC_FLOW_PROXY_TOKENif you set one).
# terminal 1: the provider key stays here, in the proxy's environment
OPENROUTER_API_KEY=... npx agentic-flow proxy --provider openrouter --model deepseek/deepseek-chat
# terminal 2: use the token the proxy printed
export ANTHROPIC_BASE_URL=http://127.0.0.1:3000
export ANTHROPIC_API_KEY=<token printed by the proxy>
claude
Do not put a placeholder or dummy value in ANTHROPIC_API_KEY: the proxy rejects anything but its token. Do not bind the proxy to 0.0.0.0 on a shared network: whoever reaches the port and has the token spends your provider key.
Local
provider: onnx runs on this machine with no key and no network for inference. Expect lower quality; use it for mechanical tasks or private text.
Установить multi-provider-routing в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл multi-provider-routing?
Route agentic-flow work across Anthropic, OpenRouter, Gemini and local ONNX models, and run the Anthropic-compatible translation proxy with its per-run token. Use when the user wants cheaper models, a non-Anthropic provider, local inference, or to point Claude Code at OpenRouter or Gemini.
Как установить скилл multi-provider-routing?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл multi-provider-routing запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic