// CLI Agent
Use Gemini CLI with llmrelay
Google's official terminal client for Gemini models. Point it at api.llmrelay.dev and get the same models at half the price.
Recommended model
gemini-3-pro
Route
openai-compatible
On llmrelay
$0.625/M · $5/M
Setup
- 1 npm install -g @google/gemini-cli
- 2 Set GEMINI_API_KEY = your llmrelay key.
- 3 Set GEMINI_API_ENDPOINT = https://api.llmrelay.dev/v1beta.
Config
export GEMINI_API_KEY="sk-llmrelay-..." export GEMINI_API_ENDPOINT="https://api.llmrelay.dev/v1beta"
Smoke test
Copy, paste, run. If you get JSON back with a message, you're good.
gemini "say hi"
Gotchas
- !Only Gemini models are available on this route. To use Claude, use one of the other integrations.
You need an llmrelay key first
Sign up in about 30 seconds. New accounts get $0.20 in free credit — enough to smoke-test every model.