1. Install Gemini CLI
For Mac users with Homebrew
brew install gemini-cliUsing NPM
npm install -g @google/gemini-cli2. 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
geminiNote: 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.