Gemini CLI With CBorg

⚠️ Gemini CLI is no longer supported. It has been replaced by Antigravity CLI. The instructions below are retained for reference only and may not work correctly.

1. Install Gemini CLI

For Mac users with Homebrew

brew install gemini-cli

Using NPM

npm install -g @google/gemini-cli

2. Authentication via CBorg: Set the following variables in your environment:

**If you previously authenticated using another method, switch authentication back to “Gemini API Key” using the /auth command.

export GEMINI_API_KEY=$CBORG_API_KEY
export GOOGLE_GEMINI_BASE_URL="https://api.cborg.lbl.gov"

3. Restart your shell and verify that the environment variables are now present.

env | grep GEMINI 

4. Now start Gemini CLI in your project directory

cd my-project
gemini

Note: Gemini CLI only works with Gemini models (Current default Gemini 2.5 Pro / Gemini 2.5 Flash)

Note: It is strongly recommended to use version control (e.g. Git) with Gemini CLI projects.