Gemini CLI 是 Google 开源的 AI 智能体,将 Gemini 模型能力直接带入终端,开源免费、支持超长上下文与多工具调用。
npm install -g @google/gemini-cli
# 或免安装运行
npx @google/gemini-cli
需配置 Gemini API Key(GEMINI_API_KEY 或 Google 登录)。
gemini:启动交互式会话/help:查看斜杠命令@path/to/file:在提示中引用文件/chat save / /chat resume:保存与恢复会话适用场景:需要超长上下文、偏好 Google 模型与开源方案的开发者。
评论区