Ratel Local gives coding agents one searchable catalog instead of every tool schema from every upstream MCP server. Tools and skill instructions enter context only when the agent needs them, with no agent-code changes.
It ships as the npm package @ratel-ai/ratel-local and the ratel-local CLI. The package also exposes library APIs for serving a Ratel ToolCatalog over MCP.
Why Ratel Local
- Smaller context: upstream tool schemas and skill bodies stay out of the prompt until they are relevant.
- Better tool selection: capability search gives the model a focused set of choices. See the benchmarks.
- Fits existing setups: bring the MCP servers you already use in Claude Code, Codex, Cursor, and other MCP clients.
- Runs locally: Ratel Local runs on your machine; configuration and upstream credentials are stored locally.
Quickstart
The recommended entrypoint is the complete setup wizard. It prepares the
persistent daemon, detects Claude Code and Codex, connects the agents you
select, and offers existing MCP servers and skills as a separate reviewed
import.
This README tracks the 0.9.0 stable release, matching the package version
pinned by the bundled plugin. Unqualified npm installs resolve the latest
dist-tag; the examples below remain exact-versioned for reproducibility.
The CLI and UI prefer the ratel-local plugin when linking because it bundles
the gateway and agent skills. Stable builds use the Ratel marketplace from
the repository's default main branch. Prerelease builds alone pin the same
marketplace identity to their immutable matching release tag: Codex uses
--ref, while Claude Code uses the equivalent owner/repo@ref source. Stable
0.9.0 therefore carries no RC branch or tag override.
If an agent already has the plugin, link reconciles that marketplace channel and reinstalls the plugin. It verifies that an RC tag exists before changing a working installation and attempts to restore the stable plugin if an RC switch fails after removal. When stable is restored, the command preserves that connection but reports the RC setup as failed rather than claiming the requested channel is active. If no usable plugin remains, a new link uses the reviewed explicit MCP gateway fallback; a failed existing-plugin reconciliation stops with an error. Importing still recognizes an enabled plugin as an existing Ratel connection and does not add a second gateway. If the Codex plugin is enabled but its bundled Ratel MCP server is disabled, link re-enables that server. Agent Setup offers Fix duplicate installation when both the plugin and an explicit Ratel MCP entry are present, and Switch to plugin for MCP-only installations. Both actions preserve the existing MCP connection unless plugin installation succeeds, and only recognized Ratel entries are removed.
Complete interactive onboarding
1. Install the CLI
Node.js 20.6 or newer is required.
npm install --global @ratel-ai/[email protected]
ratel-local --version
2. Run setup
ratel-local setup
The wizard:
- installs, upgrades, or starts the per-user daemon;
- detects Claude Code and Codex and asks which agents to connect;
- installs the Ratel Local plugin for each selected agent, using the reviewed
explicit MCP connector only if plugin installation fails;
- separately offers to preview MCP servers and skills from selected agents;
- asks for confirmation before committing an import and backs up changed
configuration.
Re-running setup is safe. A matching daemon is reported as a no-op, while
existing plugin links are checked against the package's stable or prerelease
marketplace channel.
If you do not have a global installation, run the release-pinned package:
npx -y @ratel-ai/[email protected] setup
3. Confirm Ratel Local and restart
# Claude Code
claude mcp get ratel-local