Gemini CLI

Build agents with
Gemini CLI

Use Google's Gemini CLI to create and run agent squads. Fast, multimodal, and with a generous free tier.

Free tier Multimodal Fast responses

Setup Steps

01

Install Gemini CLI

Install Google's Gemini CLI tool

npm install -g @google/generative-ai-cli
02

Configure API key

Get your API key from Google AI Studio

gemini config set api-key YOUR_API_KEY
03

Install Squads CLI

Install the Squads CLI globally

npm install -g squads-cli
04

Initialize agents

Create the agent structure

squads init

Tips for Gemini CLI

Get API key for free

Visit Google AI Studio to get your free API key with generous rate limits.

https://aistudio.google.com/apikey

Use with squads run

Run agents using Gemini as the execution engine.

squads run research --llm gemini

Multimodal support

Gemini can analyze images, videos, and audio files.

gemini "Analyze this chart" --image chart.png

Check outputs

Agent outputs are saved to .agents/outputs/ for review.

ls .agents/outputs/

Ready to build?

Initialize your project and start building

npm install -g squads-cli && squads init