Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.ruoli.dev/llms.txt

Use this file to discover all available pages before exploring further.

Gemini CLI is an open-source AI coding agent by Google that runs in the terminal.

Installation

npm install -g @google/gemini-cli
Or via Homebrew:
brew install gemini-cli
Open CC Switch and add a RuoLi configuration:
FieldValue
API URLhttps://ruoli.dev
API KeyYour Key
Select Gemini CLI and click Apply.
The API URL for Gemini CLI is https://ruoli.dev, without /v1.

Manual Configuration

Set the environment variables:
export GOOGLE_GEMINI_BASE_URL=https://ruoli.dev
export GEMINI_API_KEY=sk-YOUR-KEY
It’s recommended to add these to ~/.zshrc or ~/.bashrc:
echo 'export GOOGLE_GEMINI_BASE_URL=https://ruoli.dev' >> ~/.zshrc
echo 'export GEMINI_API_KEY=sk-YOUR-KEY' >> ~/.zshrc

Switch Models

Specify the model at launch:
gemini --model pro
gemini --model flash
Or use the /model command during a session to switch. You can also switch models in CC Switch.
Official Documentation: github.com/google-gemini/gemini-cli