Gemini CLI
Use Gemini models through TokenByte in Gemini CLI
Prerequisites
- Node.js 20 or newer
- A TokenByte API key
- A Gemini model ID from the model market
Install
npm install -g @google/gemini-cli
gemini --versionConfigure TokenByte
export GOOGLE_GEMINI_BASE_URL="https://api.tokenbyte.ai"
export GEMINI_API_KEY="sk-tb-xxxxxxxxxxxxxxxx"Select Use Gemini API key at startup. Gemini CLI reads GEMINI_API_KEY and sends Gemini API requests to GOOGLE_GEMINI_BASE_URL. Set GEMINI_MODEL when you need a specific default model. See the Gemini API reference for the wire format.
Verify
Run gemini, submit a small read-only prompt, and confirm the request in TokenByte usage logs.