G
gemini-cli
Apache-2.0TypeScriptAn open-source AI agent that brings the power of Gemini directly into your terminal.
★ 106kFork 14k更新于 2026-08-03
An open-source AI agent that brings the power of Gemini directly into your terminal.
Gemini CLI 是一个开源 AI 代理,将 Gemini 的能力直接带入终端。它提供轻量级访问,支持免费套餐、内置工具(Google 搜索、文件操作、Shell 命令、网页抓取)以及通过 MCP 协议扩展。适用于代码理解与生成、自动化任务、GitHub 集成等场景。
docker run -it --rm -e GEMINI_API_KEY="your-api-key" gemini-cli
是的,Gemini CLI 提供免费套餐:每分钟 60 次请求,每天 1000 次请求,使用个人 Google 账户即可。
可以通过 npx 直接运行(npx @google/gemini-cli),或使用 npm 全局安装(npm install -g @google/gemini-cli),也支持 Homebrew、MacPorts 和 Anaconda 安装。
支持三种认证方式:Google 账户 OAuth 登录、Gemini API 密钥、Vertex AI(企业级)。
是的,通过 MCP(模型上下文协议)可以集成自定义工具,例如媒体生成、数据库查询等。