Quickstart: Claude Code & Codex
Install Ratel Local, run the setup wizard, and verify capability search.
Ratel Local gives Claude Code or Codex one searchable catalog instead of every tool schema from every upstream server. The stable release uses one persistent local daemon and a small project-scoped connector in each agent session.
If you use Cursor, follow the manual Cursor setup. The setup wizard has native adapters for Claude Code and Codex only.
Prerequisites
- macOS or Linux for the managed background service.
- Node.js 20.6 or newer.
- Claude Code, Codex, or both installed before agent detection.
Install Ratel Local
Install the CLI globally so the background service has a durable executable:
npm install --global @ratel-ai/ratel-local
ratel-local --versionThe version command should print a version number. The package and CLI are
@ratel-ai/ratel-local and ratel-local.
Run setup
ratel-local setupThe wizard:
- installs, replaces, or starts the per-user daemon;
- detects Claude Code and Codex, then asks which agents to connect;
- installs the Ratel Local plugin for each selected agent, with an explicit MCP fallback only if plugin installation fails;
- offers existing MCP servers and skills as a separate previewed import;
- confirms before committing an import and backs up changed configuration.
Stable packages use the Ratel marketplace from the repository's default main
branch. Leave the marketplace reference at its default for stable releases.
Setup is idempotent. A matching running daemon is a no-op, and existing agent links are reconciled safely.
No global installation yet?
Run npx -y @ratel-ai/ratel-local setup. Setup uses the resolved stable CLI for
the login service instead of fetching an unpublished version later.
Check the daemon and agent link
ratel-local daemon statusThe daemon should report running and its loopback endpoint. The earlier version check
confirms the CLI is available. Then inspect the selected host:
claude mcp get ratel-localRun /reload-plugins or restart Claude Code.
codex mcp get ratel-local --jsonConfirm that the plugin MCP server is enabled, then start a new Codex session.
The plugin runs npx -y @ratel-ai/ratel-local connect. The connector sends the
resolved project root to the authenticated loopback daemon; it does not start a second
full gateway process.
Add an upstream
Add servers directly to Ratel when you did not import existing ones:
ratel-local mcp add --scope user context7 -- npx -y @upstash/context7-mcp
ratel-local mcp listUse --scope project for team configuration or --scope local for machine-specific
project configuration. Reconnect the agent after changing the effective catalog.
If the first package download or upstream probe stalls, see First-run networking.
Verify capability search
Ask the agent to call Ratel explicitly:
Call Ratel's search_capabilities tool with:
{"query":"look up current React framework documentation","topKTools":3,"topKSkills":1}
Return the raw result.The result should contain a tools bucket with matching upstream tools and a skills
bucket. The full request and response contract is on
Progressive disclosure tools.
Safe automation
Plain --yes changes only the daemon. It never selects agents, imports native
configuration, or enables experimental telemetry:
ratel-local setup --yes
ratel-local setup --daemon-only --yesAgent automation requires an explicit selection. Repeat --agent, or use auto for all
detected supported agents:
ratel-local setup --yes --agent claude-code --agent codex
ratel-local setup --yes --agent autoAutomated setup never imports MCP servers or skills. Use the expert command only when migration is intended:
ratel-local import --yes --agent claude-code
ratel-local import --yes --agent codex--port N chooses the daemon port on first installation. --daemon-only cannot be
combined with --agent.
Next steps
Daemon lifecycle
Manage the background service, project connections, upgrades, and removal.
Import or link
Review migration conflicts, plugin fallback behavior, and backups.
Retrieval
Keep model-free BM25 or opt one scope into semantic or hybrid search.
Troubleshooting
Diagnose daemon, host, project, upstream, and version problems.