@continuum-ai-corp

OrcaRouter Provider

OrcaRouter provider plugin for OpenClaw — adaptive routing across many LLMs through a single OpenAI-compatible API.

当前版本
v0.1.0
code-plugin社区source-linked

@continuum-ai-corp/openclaw-orcarouter

OrcaRouter provider plugin for OpenClaw — adaptive routing across many LLMs through a single OpenAI-compatible API (https://api.orcarouter.ai/v1).

I'm an engineer on the OrcaRouter team.

Install

Requires OpenClaw 2026.5.12 or newer (Node ≥ 22).

openclaw plugins install clawhub:@continuum-ai-corp/openclaw-orcarouter
# or, during launch cutover, from npm directly:
openclaw plugins install @continuum-ai-corp/openclaw-orcarouter

Configure

openclaw onboard --auth-choice orcarouter-api-key
# or:
openclaw onboard --orcarouter-api-key "$ORCAROUTER_API_KEY"

OrcaRouter API keys start with sk-orca-. Get one at orcarouter.ai/console.

Config snippet (~/.openclaw/config.json5):

{
  env: { ORCAROUTER_API_KEY: "sk-orca-..." },
  agents: {
    defaults: {
      model: { primary: "orcarouter/auto" },
    },
  },
}

Models

Model refs follow orcarouter/<vendor>/<model> for routed upstream models, plus the virtual router orcarouter/auto.

Model refNotes
orcarouter/autoAdaptive router; strategy is configurable per workspace at orcarouter.ai/console
openai/gpt-5.5OpenAI flagship
anthropic/claude-opus-4.7Anthropic reasoning flagship (does not accept temperature)
google/gemini-3-flash-previewGoogle preview
deepseek/deepseek-v4-proDeepSeek flagship

Free-form model strings are accepted — any orcarouter/<vendor>/<model> ID is forwarded as-is. See the full catalog at orcarouter.ai/models.

Routing

orcarouter/auto is a virtual router, not a model. Strategy options configured at orcarouter.ai/console/routing:

StrategyBehavior
cheapestLowest-priced upstream that can serve the request (default).
balancedTrades off price vs latency vs quality.
qualityHighest-quality upstream.
adaptiveLinUCB contextual bandit picks among candidates from request features.
gated_adaptiveAdaptive plus a task-difficulty score that gates between weak/strong pools.

extra_body (per-request routing override):

{ "extra_body": { "models": ["openai/gpt-5", "openai/gpt-4o"], "route": "fallback" } }

Attribution headers

On verified api.orcarouter.ai routes, the plugin sends:

HeaderValue
HTTP-Refererhttps://openclaw.ai
X-TitleOpenClaw

OrcaRouter accepts unknown headers (OpenAI-compat); attribution surfaces in the OrcaRouter console traffic view.

Caveats

  • orcarouter/auto defaults to the cheapest strategy, which may select upstreams without tool/function-calling support. For agentic flows that require tool calls, either pin a tool-capable model (e.g. orcarouter/openai/gpt-5) or adjust the auto router pool at orcarouter.ai/console/routing.
  • Reasoning models reject temperature:
    • anthropic/claude-opus-4.7
    • OpenAI gpt-5 family (incl. mini/nano)
    • deepseek/deepseek-reasoner Pass reasoning controls via reasoning_effort (top-level) for OpenAI / Gemini / Grok / Qwen / Kimi reasoners; via thinking: {type: "enabled", budget_tokens: N} for Anthropic.

Development

npm install
npm run test           # unit tests
LIVE=1 OPENCLAW_LIVE_TEST=1 ORCAROUTER_API_KEY=sk-orca-... npm run test:live

License

MIT

源码与版本

源码仓库

Continuum-AI-Corp/openclaw-orcarouter-plugin

打开仓库

源码提交

c0d0ae15c762364fb298712910bc88db5f50baf1

查看提交

安装命令

openclaw plugins install clawhub:@continuum-ai-corp/openclaw-orcarouter

元数据

  • 包名: @continuum-ai-corp/openclaw-orcarouter
  • 创建时间: 2026/05/21
  • 更新时间: 2026/05/21
  • 执行代码:
  • 源码标签: main

兼容性

  • 构建于 OpenClaw: 2026.5.12
  • 插件 API 范围: >=2026.5.12
  • 标签: latest
  • 文件数: 10