# Connect to Gemini CLI Add ToolRouter to Gemini CLI through the settings file. ## How do I add ToolRouter to Gemini CLI? 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. No API key needed — your account is created automatically on first use. **Requires [Node.js 18+](https://nodejs.org).** ## Related guides - [Quickstart](/docs/quickstart) for a full overview - [Connect to Claude Code](/docs/connect-claude-code) for Claude Code setup - [Connect to Codex CLI](/docs/connect-codex) for Codex CLI setup