> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blocks.team/llms.txt
> Use this file to discover all available pages before exploring further.

# Gemini CLI

> Best for simple tasks (Experimental)

> [!WARNING]
>
> Gemini CLI is currently **experimental** and may have different behavior or limitations compared to the stable agents (Claude Code and Codex).

## Overview

Gemini CLI is powered by Google's Gemini models and is best for simple tasks.

> [!NOTE]
>
> Gemini CLI **cannot be set as a default agent**. You must use the `/gemini` slash command to invoke it.

## Latest Models

* **Gemini 3.1 Pro Preview** - Google's latest model with large context capabilities
* **Gemini 3.7 Flash** - Fast model for lightweight tasks
* **Gemini 2.5 Pro** - Previous generation model

## Authentication

Gemini CLI requires a Google AI API key:

1. Get an API key at [Google AI Studio](https://aistudio.google.com/app/apikey)
2. In [Blocks Dashboard](https://blocks.team), go to **Dashboard** → **Agents**
3. Select **Gemini CLI** and choose "API Key"
4. Paste your Google AI API key

> [!NOTE]
>
> Use Google AI Studio (not Google Cloud) to get your API key.

## Using Gemini CLI

Since Gemini CLI cannot be set as default, you must use the `/gemini` slash command:

```
@blocks /gemini analyze this codebase
```

## Best For

* Simple tasks

## Cost

Gemini CLI uses your Google AI API key:

* Check pricing at [Google AI Pricing](https://ai.google.dev/pricing)
* Google AI offers a generous free tier
* Monitor usage in [Google AI Studio](https://aistudio.google.com/)
* API usage is billed by Google based on tokens

## Experimental Status

As an experimental agent, Gemini CLI:

* May have occasional unexpected behavior
* Features and capabilities may change
* Is less battle-tested than Claude Code or Codex

> [!TIP]
>
> For production-critical tasks, consider using [Claude Code](https://docs.blocks.team/using-blocks/agents/claude-code.md) or [Codex](https://docs.blocks.team/using-blocks/agents/codex.md) which are more stable.

## Next Steps

> [card] [Claude Code](https://docs.blocks.team/using-blocks/agents/claude-code.md)
>
> Learn about Claude Code (stable)

> [card] [Codex](https://docs.blocks.team/using-blocks/agents/codex.md)
>
> Learn about Codex (stable)

> [card] [Multi-Repo Support](https://docs.blocks.team/using-blocks/features/multi-repo-support.md)
>
> Work across repositories


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.