Back to Home
danialiscool icon

gemini-cli-openrouter-mcp

Verified Safe

by danialiscool

Overview

Interact with 200+ AI models via OpenRouter directly from the Gemini CLI, providing a standardized interface for model exploration and prompting.

Installation

Run Command
npx ts-node --esm openrouter-mcp.ts

Environment Variables

  • OPENROUTER_API_KEY

Security Notes

The server demonstrates good security practices: API keys are handled securely via environment variables and Gemini CLI's native keychain integration, robust input validation (`MAX_PROMPT_LENGTH`) is applied, and network calls include resilient error handling with timeouts, retries, and rate limit awareness (429 status code handling). No 'eval' or malicious patterns were found. Caching is handled locally with error recovery for corrupted files.

Similar Servers

Stats

Interest Score0
Security Score9
Cost ClassMedium
Avg Tokens1000
Stars0
Forks0
Last Update2026-01-16

Tags

AILLMOpenRouterGemini CLIExtension