Token导航 LogoToken导航TokenDH.com
研究检索敏感数据clawhub未标认证来源可访问clear审计提醒

gemini-cliGemini CLI

Agent Skill

gemini-cli 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

15,528

周安装

647

GitHub Stars

公开资料未说明

下载量

5,176
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:gemini-cli(Gemini CLI)
来源仓库:https://github.com/bigbubbaagent-bot/gemini-cli
安装命令:
openclaw skills install gemini-cli
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install gemini-cli

简介

用于查找、检索和筛选使用 AI 构建、调试和部署的相关信息。

  • 适合在 OpenClaw 中根据关键词或任务场景快速定位候选结果。
  • 可结合来源仓库和 README 核验具体用法,安装前需确认权限和维护状态。
  • 建议检查是否会触发联网、命令执行或文件读写操作。
  • 适用于查询代码库、自动化工作流程或执行开发任务的场景。

SKILL.md

name
gemini-cli
description
Gemini CLI tool for building, debugging & deploying with AI. Use when querying codebases, generating apps from images/PDFs, automating workflows, or performing AI-powered code tasks from the command line.
required_binaries
required_credentials
metadata
openclaw
type
ai-cli-tool
trust_model
google-api-managed
requires
binaries
system_tools
credentials
gemini_api_key
Gemini API Key from Google AI Studio or Google Cloud
install
package
@google/gemini-cli
kind
npm
command
npm install -g @google/gemini-cli
required
true
package
nodejs
kind
system
command
Usually pre-installed or via brew/apt
required
true
security
external_binary
true
binary_name
gemini
manages_credentials
false
credential_storage
environment-variable
credential_scope
local-process
capabilities
limitations

Gemini CLI Skill

A comprehensive guide for using the Gemini CLI tool to build, debug & deploy with AI directly from the command line.

What It Does

Gemini CLI enables command-line access to Google's Gemini models for:

  • Query Codebases — Analyze and understand large codebases
  • Generate from Images — Create code, docs, or apps from screenshot/images
  • Generate from PDFs — Extract and build from PDF documents
  • Automate Workflows — Chain AI tasks for complex automation
  • Interactive Shell — Chat with Gemini about your project
  • Debugging — Get AI-powered debugging and code review

Perfect for developers who want to leverage AI without leaving the terminal.

⚠️ Trust Model & Security Declaration

Metadata Declaration:

  • Type: AI CLI tool (Google-managed, official)
  • External Binary: gemini (official Google package)
  • Manages Credentials: No (credentials stored locally as env var)
  • Credential Storage: Environment variable (GEMINI_API_KEY)
  • Capabilities: Code analysis, generation, automation
  • Limitations: Requires internet, API quota limits apply

Authentication Model:

This tool uses your Gemini API Key passed as an environment variable:

GEMINI_API_KEY=<your-key> gemini <command>

Key Points:

  • ✅ Official Google tool (not third-party)
  • ✅ Credentials stored as environment variable (not in tool)
  • ✅ You control scope: set env var only when needed
  • ✅ No persistent credential storage in ~/.gemini/ directory
  • ✅ Direct calls to Gemini API endpoints (googleapis.com)

What This Skill Does:

  • ✅ Queries your codebase and documents with Gemini models
  • ✅ Generates code/apps from images and PDFs
  • ✅ Runs automated workflows using AI
  • ✅ Provides interactive debugging and code review
  • ❌ Does NOT store credentials
  • ❌ Does NOT cache sensitive data
  • ❌ Does NOT modify your system beyond running commands

Requirements

Binaries (required):

  • gemini — Gemini CLI tool (installed via npm)
  • node — Node.js 20.0.0+ (usually pre-installed)

Credentials (environment variable):

  • GEMINI_API_KEY — Your Gemini API key from Google AI Studio or Google Cloud

System Requirements:

  • macOS 15+, Windows 11 24H2+, or Ubuntu 20.04+
  • 4GB+ RAM (casual usage), 16GB+ (power usage with large codebases)
  • Internet connection required

Optional:

  • bash, zsh, or PowerShell — Any modern shell

Installation & Setup

1. Check Installation

Gemini CLI is usually pre-installed:

gemini --version

If not installed:

npm install -g @google/gemini-cli
# OR
brew install gemini-cli

2. Set API Key (One-time per session)

export GEMINI_API_KEY="<your-api-key>"

Or use it inline:

GEMINI_API_KEY="<your-api-key>" gemini <command>

To find your API key:

  • Go to https://aistudio.google.com/app/apikey
  • Create or copy your API key
  • Store securely (don't commit to git)

3. Verify Installation

gemini --version
gemini --help

Quick Start

Interactive Shell (Ask Gemini Questions)

gemini chat

Then type your questions about code, architecture, debugging, etc.

Query a Codebase

gemini code --prompt "What does this function do?" <file-or-directory>

Generate from Image

gemini create --from-image ./screenshot.png --prompt "Create a React component from this design"

Generate from PDF

gemini create --from-pdf ./document.pdf --prompt "Create an API spec based on this document"

Automate a Workflow

gemini workflow --steps "1) analyze code, 2) identify issues, 3) suggest fixes"

Get Help

gemini --help
gemini <command> --help

Common Commands

Interactive

gemini chat                    # Start interactive chat
gemini chat --context ./src    # Chat with codebase context

Code Analysis

gemini code --prompt "analyze" ./file.js
gemini code --explain ./function.ts
gemini code --review ./pull_request.patch

Code Generation

gemini create --from-image ./design.png
gemini create --from-pdf ./spec.pdf
gemini create --template react --prompt "counter app"

Batch Operations

gemini batch --input ./tasks.json --output ./results.json

Configuration

  • API Key: Set via GEMINI_API_KEY environment variable
  • Temp Storage: Uses system temp directory (auto-cleaned)
  • No persistent config: Unlike mirocli, Gemini CLI doesn't store auth locally

To persist API key across sessions (optional):

Add to your ~/.bashrc, ~/.zshrc, or equivalent:

export GEMINI_API_KEY="<your-key>"

⚠️ Security warning: Only do this if your shell profile is secure and not synced to public repos.

Global Options

--version              # Show version
--help                # Show help
--verbose             # Verbose output
--api-key <key>       # Pass API key directly (overrides env var)
--model <model>       # Specify Gemini model (default: gemini-2.5-pro)

Help & Documentation

gemini --help                  # Global help
gemini <command> --help        # Command-specific help

Official Docs: https://geminicli.com/docs

Tips & Tricks

  1. Use with your codebase:
   cd /path/to/your/project
   gemini chat --context ./src
  1. Chain commands:
   gemini code --review ./changes.patch | tee review.txt
  1. Batch process files:
   for file in src/*.js; do
     gemini code --explain "$file" > "docs/${file}.md"
   done
  1. Store prompts in files:
   cat prompt.txt | gemini chat

When to Use Gemini CLI vs Other Tools

TaskGemini CLICursor/IDEWeb UI
Quick code questions✅ Fast✅ Integrated❌ Context switch
Large codebase analysis✅ Better✅ Native❌ Limited
Generate from images✅ Works✅ Works✅ Works
Batch automation✅ Perfect❌ Manual❌ Manual
Interactive chat✅ Terminal✅ IDE✅ Browser
Scripting workflows✅ Yes❌ No❌ No

Status & Next Steps

✅ Installation: Pre-installed (v0.28.2)

✅ Configuration: Ready to use with GEMINI_API_KEY environment variable

✅ Authentication: Set env var before use (no interactive steps needed)

Testing: Run gemini --help to verify installation

Usage: Set API key and start using:

export GEMINI_API_KEY="your-key-here"
gemini chat

Setup Date: 2026-03-14 Status: Ready (no authentication required — env var based)

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

74.87%
按下载量换算3,875

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

通过

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills