OpenClaw Model Router
FreeNot checkedRoutes model requests to Sol, Terra, or Luna via OpenClaw Gateway's Codex auth profile, with strict validation and no fallback.
About
Routes model requests to Sol, Terra, or Luna via OpenClaw Gateway's Codex auth profile, with strict validation and no fallback.
README
An OpenClaw-native MCP server that plans and, when explicitly enabled by the operator, executes bounded task routing across Sol, Terra, and Luna while keeping final judgment, memory, verification, and responsibility with Sol.
Version 0.4.0-rc.12 is a public release candidate. Execution remains disabled by default.

What it does
- Sol owns architecture, risk decisions, context, memory, result collection, final QC, and responsibility.
- Terra is intended for general work, drafting, and organization.
- Luna is intended for routine tasks, short copy, and classification.
- Terra and Luna results return to Sol for verification; they do not independently own the final answer.
- Server-side safety gates may keep work on Sol or require approval, but cannot weaken the policy chosen by the operator.
The reference workload mix shown above is Sol 25% / Terra 45% / Luna 30%. Under the diagram's stated assumptions, that mix is estimated at 63.5% of the Sol-only reference cost, or approximately 36.5% lower. This is an illustrative estimate, not a pricing or usage-limit guarantee. Actual availability, limits, token use, and pricing may differ.
The allocation and savings estimate describe the intended execution mode only when the operator explicitly enables execution. With the default configuration, execute_task is hidden and disabled, so installing the package alone does not produce that allocation or savings.
Safety and authentication model
The router uses the OpenClaw Gateway's existing Codex auth profile. It never accepts provider credentials, never sends provider HTTP requests itself, and never falls back to another transport.
The adapter invokes openclaw agent through the running Gateway and verifies all of the following before accepting output:
- provider/model match the requested Sol, Terra, or Luna model;
agentHarnessId=codexandauthMode=auth-profile;- no model fallback was used;
- the dedicated agent tool policy contains no tool other than
sessions_yield; - OpenClaw returned measured token usage.
If any check fails, the router stops. There is no alternate provider path.
Requirements
- Node.js 20 or newer.
- OpenClaw
2026.6.10or newer with working Codex authentication. - A dedicated OpenClaw agent with only the harmless
sessions_yieldtool available. On OpenClaw 2026.6.10, explicitly settools.deny=["session_status"]because the read-only core tool is otherwise auto-exposed. MODEL_ROUTER_OPENCLAW_AGENTset to that agent id.- No provider credential is required by this package.
Install
npm install -g openclaw-model-router-mcp@next
Or run it without a global install:
npx openclaw-model-router-mcp@next
Local checks and CLI
npm run check
npm test
openclaw-model-router-cli estimate "Draft a safe implementation plan"
MODEL_ROUTER_OPENCLAW_AGENT=model-router openclaw-model-router-cli plan "Draft a safe implementation plan"
estimate_task is deterministic and does not invoke a model. plan_task invokes Sol through OpenClaw but never executes planned subtasks. execute_task remains hidden and disabled by default; a client request cannot enable it.
Usage and accounting
OpenClaw is the source of truth for the executed model and token usage. USD fields are explicitly labeled configured reference estimates and are never presented as invoices or actual billing.
The routing fields and the model IDs passed to openclaw agent use the configured OpenClaw model IDs openai/gpt-5.6-*. The adapter still requires the Codex harness and an OpenClaw auth profile in the returned runtime metadata; it never falls back to a direct provider call or API key.
Release status
This package uses the npm next dist-tag because it is a release candidate. Review the safety model and test it in an isolated OpenClaw agent before enabling execution.
Install OpenClaw Model Router in Claude Desktop, Claude Code & Cursor
unyly install openclaw-model-router-mcpInstalls into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.
First time? Get the CLI: curl -fsSL https://unyly.org/install | sh
Or configure manually
Run in your terminal:
claude mcp add openclaw-model-router-mcp -- npx -y openclaw-model-router-mcpFAQ
Is OpenClaw Model Router MCP free?
Yes, OpenClaw Model Router MCP is free — one-click install via Unyly at no cost.
Does OpenClaw Model Router need an API key?
No, OpenClaw Model Router runs without API keys or environment variables.
Is OpenClaw Model Router hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install OpenClaw Model Router in Claude Desktop, Claude Code or Cursor?
Open OpenClaw Model Router on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
GitHub
PRs, issues, code search, CI status
by GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
by mcpdotdirectCompare OpenClaw Model Router with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All development MCPs
