Skip to content

Connect to Gemini CLI

Add ToolRouter to Gemini CLI through the settings file. No API key needed — your account is created automatically on first use.

Install automatically

Paste the following into Gemini CLI and it will set up ToolRouter for you:

Add ToolRouter MCP server to my Gemini CLI settings at ~/.gemini/settings.json. Add a "toolrouter" entry under mcpServers with command "npx" and args ["-y", "toolrouter-mcp"]. No API key needed — account auto-provisions on first use.

Install manually

Add this to your Gemini CLI settings under mcpServers (usually at ~/.gemini/settings.json):

json
{
  "mcpServers": {
    "toolrouter": {
      "command": "npx",
      "args": ["-y", "toolrouter-mcp"]
    }
  }
}

If you already have other MCP servers configured, add the "toolrouter" entry inside the existing "mcpServers" object — don't replace the whole file.

Tools will be available in all Gemini CLI sessions.

Requires Node.js 18+.