Skip to content
Development
Skill

/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

From plugin
agentic-flow
84039 skills105 agents134 commands3 MCP

Claude Code

$ npx -y skills add ruvnet/agentic-flow --skill multi-provider-routing --agent claude-code

SKILL.md

multi-provider-routing.SKILL.md
name: multi-provider-routing
description: 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

Plugin settings

Set these with `/plugin` (configure) or in settings under `pluginConfigs`:

  • `provider`: `anthropic` (default), `openrouter`, `gemini`, `onnx`, `requesty` (sets `PROVIDER`)
  • `model`: default model id (sets `COMPLETION_MODEL`); empty uses the provider's default
  • `openrouter_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.1` unless `AGENTIC_FLOW_PROXY_HOST` says otherwise, and
  • accepts only a **per-run token** that it prints on start (or `AGENTIC_FLOW_PROXY_TOKEN` if 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.

Read more
@ruvnet
Ships withagentic-flow

Production-ready AI agent orchestration with 66 self-learning agents, 213 MCP tools, and autonomous multi-agent swarms.

84039 skills105 agents3 MCP
Get the whole plugin

Stars on GitHub

Momentum

stars in total
840
Star history of ruvnet/agentic-flow on GitHub, a chart by star-history.com

Other skills on agentic-flow.

agentdb-advanced

agentdb-advanced

Master advanced AgentDB features including QUIC synchronization, multi-database management, custom distance metrics, hybrid…

@ruvnet@ruvnetInstall Skill
agentdb-learning

agentdb-learning

Create and train AI learning plugins with AgentDB's 9 reinforcement learning algorithms. Includes Decision Transformer,…

@ruvnet@ruvnetInstall Skill
agentdb-memory-patterns

agentdb-memory-pattern…

Implement persistent memory patterns for AI agents using AgentDB. Includes session memory, long-term storage, pattern learning,…

@ruvnet@ruvnetInstall Skill
agentdb-optimization

agentdb-optimization

Optimize AgentDB performance with quantization (4-32x memory reduction), HNSW indexing (150x faster search), caching, and batch…

@ruvnet@ruvnetInstall Skill
agentic-jujutsu

agentic-jujutsu

Quantum-resistant, self-learning version control for AI agents with ReasoningBank intelligence and multi-agent coordination

@ruvnet@ruvnetInstall Skill

More skills from other plugins.

brainstorming
Auto-invoked

brainstorming

You MUST use this before any creative work - creating features, building components, adding functionality, modifying behavior, or…

@obra@obraInstall Skill
ask-matt

ask-matt

Ask which skill or flow fits your situation. A router over the skills in this repo.

skills12d309k
@mattpocock@mattpocockInstall Skill
accessibility
Auto-invoked

accessibility

Design, implement, and audit accessible UI to WCAG 2.2 Level AA across Web, iOS, and Android — semantic ARIA roles and labels,…

ecc13d293k
@affaan-m@affaan-mInstall Skill
compiler-commit

compiler-commit

Use when you want to verify compiler changes and commit with the correct convention. Runs tests, lint, and format, then commits…

react2d252k
@facebook@facebookInstall Skill

Questions about multi-provider-routing.

Which coding agents can use multi-provider-routing?
multi-provider-routing installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.