Claude Code Router: Windows setup with Gemini

Learn to set up Claude Code Router on Windows, add Gemini API keys and model IDs, and connect Claude Code through a local gateway.

Player not loading? Watch on YouTube

The original video is in Arabic. This tutorial walks through a Windows setup of Claude Code Router, an open source gateway between a coding assistant and model providers. The presenter installs the Windows application, adds Google Gemini with an API key from Google AI Studio, and enters model IDs from the Gemini API reference. Models can also be added manually when automatic detection does not find them.

The Claude Code connection uses an agent profile with a local endpoint, an Anthropic base URL and authentication settings. After installing Claude Code through the documented PowerShell command, the presenter selects a model and sends a greeting to check the connection. A portfolio landing page task then demonstrates requests passing through the router to the chosen provider. The gateway runs locally, while the model used in this example runs on the provider's infrastructure.

The walkthrough also covers adding OpenRouter and configuring custom providers with an endpoint, API key and at least one model. Logs show request status, token usage, response times and errors. The presenter briefly describes routing rules, fallback and retries, plus MCP and Fusion features in recent versions, without demonstrating them in detail. The project itself is free; the supplied description cautions that provider access may require payment or have usage limits.