Skip to content

Gemini CLI

Configure Gemini CLI to use Webway's Gemini-compatible gateway.

1. Install

bash
npm install -g @google/gemini-cli

2. Configure

bash
export GEMINI_API_KEY="sk-ww-…"
export GOOGLE_GEMINI_BASE_URL="https://api.webway.sh"
export GEMINI_MODEL="openai/gpt-5.6-terra"

Choose Gemini API key if the first-run prompt asks for an authentication method. GOOGLE_GEMINI_BASE_URL must be the gateway origin, without /v1.

3. Run

bash
gemini -p "Summarize this repository."

Use an exact provider-qualified ID from the model table for GEMINI_MODEL.