90 days of the enterprise, pro and team plans free, no card needed. See the plans
Gemini CLI through the router
Launch Gemini CLI with the router as its Gemini API endpoint - generateContent, streaming and countTokens are served natively. The workspace policy, budgets, redaction and the trace apply to every turn, and auto lets the router choose the model when Gemini is not the best value for the task.
pip install opensmartroute
osr login # once: a browser sign-in, or --token osr_live_...
osr run gemini-cli # Gemini CLI starts with the router as its endpointexport GOOGLE_GEMINI_BASE_URL=https://api.opensmartroute.ai
export GEMINI_API_KEY=$OSR_API_KEY
export GEMINI_MODEL=auto
geminiGemini CLI speaks the Google Gemini API; the router serves generateContent, streamGenerateContent and countTokens at /v1beta with function calling, images and streaming translated both ways.