Gemini CLI for Openclaw

A high-performance command-line interface for Google's Gemini models optimized for one-shot Q&A and automated content generation.

steipete
v1.0.0
Jan 5, 2026
57
37.4k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install gemini

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install gemini using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Gemini CLI?

The Gemini CLI skill brings the power of Google's advanced large language models directly into the developer's terminal environment. Unlike traditional chat interfaces, this skill is specifically tuned for one-shot execution, allowing users to send prompts and receive high-quality responses without entering an interactive loop. It is a vital component for those looking to expand their Openclaw Skills toolkit with robust AI reasoning and text processing.

By leveraging this skill, developers can integrate Gemini's capabilities into their shell environment, enabling rapid prototyping, code explanation, and automated documentation. The skill supports various models and output formats, ensuring that it fits perfectly into existing developer workflows and automation scripts.

Gemini CLI Use Cases

  • Rapidly generating code summaries or explanations directly from the command line.
  • Integrating Gemini's intelligence into shell scripts for automated data processing.
  • Retrieving structured JSON data from AI prompts for use in downstream applications within Openclaw Skills.
  • Performing quick technical lookups without leaving the IDE or terminal environment.

How Gemini CLI Works

  1. The user executes the gemini command followed by a positional prompt string.
  2. The CLI routes the request to Google's Gemini API using the specified or default model.
  3. The model processes the input in one-shot mode, prioritizing accuracy and speed.
  4. The resulting output is returned to the standard output (stdout), where it can be read or piped into other Openclaw Skills.

Gemini CLI Setup

To get started with this skill in your Openclaw Skills environment, install the Gemini CLI via Homebrew:

brew install gemini-cli

After installation, you must authenticate by running the command once interactively:

gemini

Follow the login flow in your browser to authorize the CLI to access your Google AI resources.

Gemini CLI Data Schema & Taxonomy

The Gemini CLI manages data through standard CLI flags and a local configuration for authentication. The following table outlines the primary data interaction points:

Feature Details
Binary Name gemini
Input Type Positional string prompts
Output Formats Plain text, JSON
Models Support for various Google Gemini model names via the --model flag
Extensions Managed via gemini extensions

Gemini CLI Advanced Features

  • Multi-model support allowing users to switch between different Gemini versions for cost or performance optimization.
  • Structured output mode using the --output-format json flag for programmatic integration with other Openclaw Skills.
  • Extension management system to add custom functionality to the base CLI.
  • One-shot execution design that avoids the overhead of interactive sessions, perfect for CI/CD and cron jobs.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*