Skip to main content
Gemini CLI is Google’s terminal-based coding agent. It supports Gemini 3, can search and edit large codebases, generate applications from images or PDFs, and automate workflows. Install Node.js 18 or later before you begin. Install Gemini CLI:
Configure Gemini CLI to use the GeekAI endpoint:
export only affects the current shell session. To persist these settings, add the commands to ~/.bashrc or ~/.zshrc, then run source ~/.bashrc or source ~/.zshrc.
Replace <YOUR_GEEKAI_API_KEY> with your GeekAI API key. If you use the international base URL, obtain a key from GeekAI International. The default balanced route is suitable for individual developers. For larger projects or faster, more stable responses, edit your key on the API Keys page and select the high-availability route. Changing the API key route For a lower price, you can switch to the low-cost route, at the expense of availability. Open your project directory in the terminal and start Gemini CLI:
Starting Gemini CLI for the first time Once the interactive prompt appears, ask Gemini for coding suggestions or help solving a programming problem: Coding with Gemini CLI through GeekAI The version shown here defaults to Gemini 2.5 Pro. To use Gemini 3 Pro Preview, open settings and select Preview features:
Enabling preview features in Gemini CLI Preview features are off by default. Press Enter to enable them. Use /model to switch between the available Gemini models:
Switching models in Gemini CLI