Back to Home
samade747 icon

Claude-Code-Gemini-Fallback-Providers-Full-Setup-Guide-Windows-Linux-

Verified Safe

by samade747

Overview

A local AI model router and orchestration server for Claude Code, integrating multiple LLM providers (Gemini, OpenAI, etc.) with fallback capabilities and supporting Model Context Protocol (MCP) servers for tool execution.

Installation

Run Command
python mcp_server.py

Environment Variables

  • GOOGLE_API_KEY
  • OPENAI_API_KEY
  • QWEN_API_KEY
  • XAI_API_KEY
  • OPENROUTER_API_KEY

Security Notes

The project explicitly warns against hardcoding API keys, recommends using environment variables, and advises keeping the router bound to '127.0.0.1'. The optional MCP server example demonstrates a 'list_files' tool, which could expose local file system information if misused by an LLM or if the MCP server's 'stdio' transport were redirected insecurely, but the provided setup is local and relatively contained. No critical vulnerabilities like 'eval' or obfuscation were found.

Similar Servers

Stats

Interest Score36
Security Score8
Cost ClassLow
Stars1
Forks0
Last Update2025-11-26

Tags

AI RouterLLM OrchestrationFallback ProvidersDeveloper ToolsMCP Server