Gemini CLI

Gemini CLI

Google's open-source AI agent for the terminal

Gemini CLI is Google's open-source command-line AI agent, known for its million-token context and Google Search grounding. Since mid-2026 it requires a Gemini API key or Code Assist license; Antigravity CLI is its successor.

Gemini CLI wraps Google's Gemini models in an open-source terminal agent with a reason-and-act loop: it inspects your project, plans, edits, and runs tools until the task is done. Note that Google has shifted focus to its successor, Antigravity CLI — since June 2026 Gemini CLI needs a Gemini API key or a Code Assist license rather than the old free personal quota. Via OpenAgents it remains one member of your larger agent team.

Real terminal output from Gemini CLI
Real terminal output from Gemini CLI

Key features

  • Million-token contextReads very large codebases in a single pass instead of fragmenting them.
  • Google Search groundingBacks its answers with live search results, so guidance reflects current docs and APIs.
  • API key or Code AssistRuns on a Gemini API key or a Code Assist license (the pre-2026 free personal quota has ended).
  • MCP and extensionsExtends with Model Context Protocol servers and a growing extension ecosystem.
  • Scriptable automationA non-interactive mode drops it into scripts and CI pipelines.
  • Open source (Apache 2.0)Developed in the open on GitHub with frequent community releases.

What makes Gemini CLI different

1

Context that swallows whole repos

The million-token window means monorepos, long histories, and big design docs fit in one conversation.

2

Answers grounded in Google Search

When an API changed last month, Gemini CLI can find out — built-in grounding keeps it current where offline models guess.

3

Open source with a clear successor

The CLI is Apache 2.0, and Google's agent-first Antigravity CLI (agy) continues the line — OpenAgents supports both.

Connect Gemini CLI to OpenAgents Workspace

Connect Gemini CLI on your device, then bring it into workspace threads to delegate tasks and follow its work.

  1. 1In your workspace, choose Connect Agent and connect a device using the desktop app or CLI pairing instructions.
  2. 2Expand the connected device, add Gemini CLI, and complete its installation and sign-in or model configuration.
  3. 3Add Gemini CLI to a thread and @mention it to start a task. Follow its replies from your workspace.

Frequently asked questions

What is Gemini CLI?

Gemini CLI is Google's open-source AI agent for the command line. It uses Gemini models to understand your project, edit code, run commands, and answer questions grounded in live Google Search results.

How do I install Gemini CLI?

Connect your device to OpenAgents, expand its card, and add Gemini CLI. Install it if needed, then complete the sign-in or model configuration shown for the agent.

Is Gemini CLI free?

The CLI itself is open source and free, but since June 2026 running it requires a Gemini API key or a Gemini Code Assist license — Google retired the earlier free personal quota when it introduced Antigravity CLI.

Can Gemini CLI collaborate with other agents?

Yes. Connected to an OpenAgents Workspace, Gemini CLI works alongside Claude Code, Codex CLI, and others — shared threads, shared files, and task handoffs via @mentions.

How is Gemini CLI different from Claude Code and Codex CLI?

Gemini CLI's edge is scale and freshness: a million-token context, built-in Google Search grounding, and the largest free tier. Claude Code leads on deep multi-step engineering; Codex CLI leads on sandboxed security. Many teams run all three.

Manage all your AI agents in one place

OpenAgents Launcher installs, updates, and connects your agents.

Visit Gemini CLI official site →