Relay
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Relay
Relay is an MCP server that plugs into Claude Code (and Cursor/CodeX). It lets your AI delegate boilerplate, first drafts, tests, and mechanical refactors to free LLM providers (Groq, Gemini, OpenRouter, and more), saving your Claude tokens and running independent tasks in parallel.
Honesty note: This is not "unlimited free Claude." Savings depend on the task. Savings numbers are always estimated and labeled as such — never fabricated.
Quick Start (New Interactive Wizard)
We've made setup incredibly easy. You don't even need to touch the command line.
1. Run the Setup Wizard
Windows: Double-click on
setup.batMac / Linux: Double-click on
setup.sh(or run./setup.shin terminal)
2. Follow the Prompts
The wizard will automatically install dependencies, compile the project, and then ask you for your API keys one by one.
If you don't have a key for a specific provider, just press Enter to skip it.
Your keys are saved securely to a local
.envfile and are never shared.
Get free API keys from:
Groq: https://console.groq.com/keys (models: llama-3.1-8b-instant, llama-3.3-70b-versatile)
Gemini: https://aistudio.google.com/apikey (model: gemini-2.0-flash)
OpenRouter: https://openrouter.ai/keys (free models with the
:freesuffix)
3. Connect to your Editor
At the end of the wizard, it will print out the exact command you need to connect Relay to Claude Code or Cursor. Just copy and paste it!
Related MCP server: Local Worker MCP
Manual / Advanced Usage
If you prefer doing things manually:
npm install # Automatically installs and builds
npx relay init # Starts the interactive setup wizardAdd keys manually:
npx relay add-api groq <YOUR_GROQ_KEY>
npx relay add-api gemini <YOUR_GEMINI_KEY>Check health and diagnostics:
npx relay doctor
npx relay check
npx relay statusNo API key yet? Test the whole pipeline offline with dry-run — set RELAY_DRY_RUN=1 in .env, or ask Claude to call delegate with dryRun: true. It returns a clearly-labeled synthetic response without any network call.
Troubleshooting
node dist/src/index.jsfails on Windows: Make sure you are using Node >= 20.12.0.Tools don't show up in Claude: Ensure you've run the setup wizard or
npm installso the code is compiled.Tasks fail with
ALL_MODELS_EXHAUSTED: Runnpx relay doctorandnpx relay checkto see if your API keys are valid and providers are online.
Available Tools
Tool | Description |
| Send one task to a free LLM worker |
| Run several independent tasks concurrently |
| Run dependent steps; each step gets the previous output as context |
| Show available models, health, and power scores |
| Health table (traffic lights + power + latency) + session summary |
All delegation tools accept dryRun: true for keyless testing.
CLI Commands
npx relay init # Interactive setup wizard
npx relay doctor # Diagnose environment issues
npx relay add-api <p> <key> # Save a provider key securely
npx relay status # Show health & keys
npx relay check # Live health ping
npx relay agents # List agent roles
npx relay skills # List skillsHow It Works
Claude splits a task into independent pieces
For each piece, Relay selects a healthy free model (preferring the strongest)
The
delegatetool calls the provider's OpenAI-compatible APIClaude receives the output, reviews it, and integrates it
Claude does NOT blindly trust worker output — it always reviews before using.
Configuration
relay.config.json— provider URLs, model lists, and pre-measured power scores. You can also configuremaxTokenshere..env— API keys (never logged, never committed)
Development
npm run dev # watch mode
npm run build # compile
npm run start # run MCP server
npm test # build + run network-free unit testsThis server cannot be deployed
Maintenance
Related MCP Connectors
Discover available AI models and delegate analysis or code review from your existing agent.
Agent-native task management: your AI agent is the interface. Delegate to anyone by email.
Shared task layer for AI agents: tasks, handoffs and decisions that persist across tools.
Task manager for AI agents. Orchestrate agents to achieve large goals in unified control plane.
Related MCP Servers
- AlicenseBqualityDmaintenanceEnables coding agents like Claude Code and Codex to offload boilerplate generation, summarization, and other bounded text tasks to local or cheap cloud LLMs, keeping the frontier agent in charge of judgment and code edits.93MIT
- AlicenseBqualityCmaintenanceDelegates heavy, repetitive, and verifiable tasks like PDF extraction, code analysis, and log processing to a local LLM to reduce token consumption for frontier AI models, while keeping decision-making with the main AI.8MIT
- FlicenseNot gradedqualityNot gradedmaintenanceEnables a primary AI coding assistant to delegate tasks in parallel to specialized sub-agents such as Gemini, Claude, Codex, and Cursor, sharing project context and synthesizing their outputs into a single response from within the IDE. It runs entirely on existing local CLI tools and subscriptions with no added cost or markup.-
- FlicenseNot gradedqualityAmaintenanceEnables a primary AI coding assistant to delegate tasks to specialized sub-agents in parallel, share project context, and synthesize their responses. It uses existing local CLI tools and API subscriptions to coordinate Codex, Claude, Cursor, and Gemini without extra cost.-