BeLive Token Hub

Gemini CLI

Google's terminal AI assistant, configurable to point API key, default model and base URL at BeLive Studio via environment variables.

Gemini CLI is Google's open-source terminal AI assistant with code understanding, file operations and tool calling. It can connect to custom endpoints via environment variables.

Prerequisites

  • Gemini CLI installed (npm install -g @google/gemini-cli)
  • Base URL: https://api.tokenhub.belivestudios.com
  • API Key: create one in "API Tokens" on the BeLive Studio Console
  • Model name: e.g. gemini-3.7-flash, exactly matching a model ID in the console model list

Set Environment Variables

Recommended: write to Gemini CLI's env file ~/.gemini/.env:

GEMINI_API_KEY="sk-your-belive-studios-key"
GOOGLE_GEMINI_BASE_URL="https://api.tokenhub.belivestudios.com"

Or export them in your shell profile (~/.zshrc etc.):

export GEMINI_API_KEY="sk-your-belive-studios-key"
export GOOGLE_GEMINI_BASE_URL="https://api.tokenhub.belivestudios.com"

Start Using

cd /path/to/your/project
gemini

Use /model to view or switch models.

FAQ

API key not valid? Make sure the variables took effect (reopen the terminal or source), and the key starts with sk- without extra spaces.

model not found? The model ID must exactly match the BeLive Studio console model list.

Once GOOGLE_GEMINI_BASE_URL is set, all requests go through the BeLive Studio endpoint instead of your Google account quota.

On this page