Open Source Terminal AI Agent
Gemini CLI
Google's open-source terminal AI agent with Gemini model access, large-context repo work, Google Search grounding, MCP tools, scripting, and GitHub automation.
- 料金
- Open source, model usage may vary
- プラットフォーム
- Terminal, macOS, Linux, Windows
- 無料アクセス評価
- Gemini CLI は無料アクセス候補として有力です。Google は個人開発者向けに比較的大きなクォータを示しています。
- 注意
- クォータ、モデルルーティング、アカウント条件は変わるため、最新ドキュメントを確認してください。
2026 年の結論
Gemini CLI は単なる「Google の terminal chatbot」ではありません。Google の公式 docs では、Gemini を terminal に持ち込み、code understanding、file operations、command execution、research、task automation、MCP tools、scripting、GitHub workflows を扱う open-source AI agent として説明されています。
私の評価:Gemini CLI が最も魅力的なのは、cost と context window が効く場面です。Google は individual developers 向けの generous free-access path、large context window、Google Search grounding を示しています。repository exploration、documentation-heavy tasks、research-backed coding ではかなり有効です。一方で polished editor-first coding environment が欲しい場合は、最優先ではありません。
何ができるか
Gemini CLI は、Gemini models を local code と command-line workflows に使うための terminal-first interface です。公式 docs は code understanding、file manipulation、command execution、Google Search grounding、task automation、MCP extensibility、non-interactive scripting、GitHub integration を強調しています。
他の coding agents との違いは、Google ecosystem との相性です。Google AI Studio、Vertex AI、Gemini models、Google Search context、GitHub automation を使う workflow なら、API wrapper を自作するより低い摩擦で始められます。
向いているケース
- generous individual free access を持つ terminal agent が欲しい developers。
- large context window が役立つ large-repo exploration。
- Google Search grounding が効く research-backed coding tasks。
- MCP extensions と scriptable headless usage を使いたい teams。
- GitHub issue triage、review assistance、automation を Gemini CLI GitHub Action で扱いたい projects。
向いていないケース
- inline autocomplete と visual editing が主目的の developers。
- terminal agent の command execution に approval policy を置けない teams。
- model behavior、quota、account eligibility を契約上固定したい workflows。
- secrets、commands、network boundaries が曖昧な sensitive repositories。
Authentication, Quota, and Cost
free access は大きな魅力ですが、それだけで評価すべきではありません。公式 docs は Google login、Gemini API key、Vertex AI という authentication routes を説明しています。individual developers には personal Google account による大きな free usage が示されていますが、チーム利用では current quota、account eligibility、model routing、Vertex AI governance が必要かを確認すべきです。
私のルール:Gemini CLI の free tier は adoption accelerator であり procurement plan ではありません。実タスクを素早く試すには良い。billing、quota、account control、organization policy が必要なら API key または Vertex AI path を検討します。
重要な設定
- GEMINI.md:project conventions、commands、architecture notes、boundaries を書く project memory として使う。
- Checkpointing:agent が files を変更する時の rollback path として重要。
- MCP servers:external tools は慎重に接続し、各 integration に permission reason を持たせる。
- Headless mode:scripts と automation には有効だが、prompts と output checks が安定してから使う。
- GitHub Action:issue triage、pull request review、mention-driven automation に有望だが、repository permissions を明確にする必要がある。
最近注目すべきモデルと機能アップデート
Gemini CLI の位置づけは、Gemini 3 と Antigravity transition によって大きく変わりました。Google は Gemini CLI docs で Gemini 3 models、1M token context window、/model、Auto / Pro / Manual routing を説明しています。現在の docs では Gemini 3.1 Pro Preview の rollout も触れられており、access がある場合は /model に gemini-3.1-pro-preview が表示され、Auto (Gemini 3) から routing される可能性があります。
Recent release notes は、Gemini CLI の product direction を読む材料になります:
- Gemini 3.1 Pro Preview と Gemini 3 default:Gemini CLI は「large context terminal helper」から、current-model terminal agent に近づいています。Auto routing は重要です。simple prompts は fast/cheap Flash-style model、harder tasks は Pro に回せるためです。
- Plan Mode:
/planと dedicated planning tool により、multi-step tasks が扱いやすくなります。私の見方では、これは小さな UX 改善ではなく、teams が手動で守るべき「plan first, edit second」を product feature にしたものです。 - Experimental Browser Agent:browser interaction が Gemini CLI roadmap に入っています。potential は高い一方で、browser automation は plain code edits より permission と success criteria を厳しくする必要があります。
- Policy engine updates:project-level policies、MCP server wildcards、tool annotation matching は、terminal agents を team workflow に入れる前に必要な governance features です。
- Extensions と Agent Skills:extension exploration と Agent Skills preview は、Gemini CLI が one-off prompts から reusable workflows へ進む signal です。
- Antigravity CLI transition:Google は Gemini CLI が 2026 年 6 月 18 日に Google AI Pro、Ultra、free-tier requests の serving を停止し、その path を Antigravity CLI に移すと説明しています。Enterprise、Google Cloud、Gemini Code Assist Standard/Enterprise、paid Gemini / Gemini Enterprise Agent Platform API key paths は継続です。これは採用時の最大の caveat です。
実務上の読み:Gemini CLI はまだ扱う価値がありますが、target user は変わっています。hobbyists と individual free-tier users には Antigravity CLI が successor path になりつつあります。Google Cloud、Gemini Code Assist、Vertex-style governance、paid API keys を使う teams には、Gemini CLI は terminal automation layer としてまだ relevant です。
Cursor より強いところ
Gemini CLI は terminal-first research、broad repo reading、scripted automation、low-cost exploration で強くなります。docs、APIs、fast-changing dependencies の fresh context が必要な場合、Google Search grounding が効きます。
Cursor の方がよいところ
Cursor は IDE 内の interactive editing ではまだ強いです。コードを読み、block を選択し、小さな変更を頼む workflow では Cursor の方が直接的です。
Adoption Checklist
- Gemini の context window と search grounding が効く repo-exploration または documentation-heavy task から始める。
GEMINI.mdに project commands、style rules、forbidden areas を書く。- multi-file edits の前に rollback/checkpointing を有効にする。
- Google login、API key、Vertex AI のどれを使うか決める。
- command execution を明示し、merge 前に final diffs を review する。
- 同じ issue で Gemini CLI、Claude Code、Codex、opencode、Cursor を比較する。
Quality Signal
Gemini CLI の最も強い signal は「free requests」ではありません。large context、search grounding、terminal automation によって review time が減り、command risk が隠れないことです。
Related Tools
- Antigravity if you are following Google’s new successor path for free, Pro, and Ultra users.
- Claude Code if you want a more mature terminal agent runtime with subagents, hooks, and Dynamic Workflows.
- OpenAI Codex if you want ChatGPT-native cloud/local delegation, Automations, mobile steering, and GitHub review.
- opencode if you want an open-source terminal agent with broader provider choice.
- Aider if you prefer Git-centered terminal changes and explicit diffs.
- Qwen Code if you want another terminal-agent route around Qwen models.
- Cursor, Windsurf, Cline, and Roo Code if you need editor-first alternatives.
- 9Router and OpenRouter if routing, fallback, or model/provider cost control matters more than Google-native access.
Source Notes
- Google Gemini CLI official docs describe terminal AI workflows, code understanding, file manipulation, command execution, Google Search grounding, MCP support, scripting, checkpointing,
GEMINI.md, and GitHub Action integration. - Google’s Gemini CLI materials describe Google login, Gemini API key, and Vertex AI authentication paths, with generous individual free access documented for Google-account usage.
- Gemini CLI docs describe Gemini 3 models, 1M token context,
/model, Auto / Pro / Manual routing, fallback behavior, Gemini 3.1 Pro Preview rollout, and release channels. - Gemini CLI release notes describe Gemini 3.1 Pro Preview, Plan Mode, Experimental Browser Agent, policy engine updates, extension exploration, Agent Skills preview, and Gemini 3 default behavior.
- The official Google Developers Blog Antigravity CLI transition notice describes the June 18, 2026 access transition for free, Google AI Pro, and Ultra users, while enterprise, Google Cloud, and paid API key paths remain supported.
- This page uses private Coding Agent Tools diagrams based on public Google documentation, not copied official screenshots.