Gemini CLI for Openclaw

A powerful CLI tool for executing one-shot AI prompts, video content analysis, and automated file-based generation using Google Gemini models.

chenbaiyujason
v1.0.0
Mar 5, 2026
0
959
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install gemini-file

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-file 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 skill for Openclaw Skills provides a robust interface for interacting with Google's state-of-the-art LLMs directly from your terminal. It is engineered for efficiency, focusing on one-shot execution rather than interactive loops, making it ideal for automation scripts and complex data processing tasks. Whether you are performing quick Q&A or generating structured JSON data, this skill streamlines the integration of advanced AI into your development environment.

By leveraging specific runners like the file-based execution script, users can handle large-scale token outputs that exceed standard terminal buffers. This capability is particularly useful for generating long-form content like reports or novels, ensuring that high-quality AI outputs are captured and organized systematically within your local workspace.

Gemini CLI Use Cases

  • Rapid one-shot Q&A and information retrieval via the command line.
  • Generating long-form content such as articles, stories, or technical reports directly to local files.
  • Analyzing large video files and dense transcripts for structured summarization and data extraction.
  • Automating data transformation tasks with explicit JSON output formats for downstream processing.
  • Extending CLI functionality through an integrated extension management system.

How Gemini CLI Works

  1. Initialize a prompt or task via the gemini command or the dedicated file runner script for larger workloads.
  2. Specify the desired model, such as gemini-3-flash-preview, and define the required output format (text or JSON).
  3. The skill processes the input, interacting with Google AI services to generate a high-fidelity response.
  4. For large outputs or explicit file requests, the gemini_file_runner.py script saves the result to the local outputs directory.
  5. The system returns either the raw content or an absolute file path in a JSON response for the next step in the Openclaw Skills pipeline.

Gemini CLI Setup

To get started with this skill, ensure you have the Gemini CLI installed. On macOS, you can use Homebrew to install the necessary binaries:

brew install gemini-cli

If authentication is required, run the command interactively once to complete the Google AI login flow:

gemini

To use the advanced file-based runner for large-scale generations, execute the Python script included with the skill:

python3 gemini_file_runner.py --prompt "Your prompt here" --output-file my_report.txt

Gemini CLI Data Schema & Taxonomy

This skill maintains a structured output system to ensure data integrity during automated workflows within Openclaw Skills. All file-based generations are stored in a dedicated hierarchy.

Location Type Description
/outputs/ Directory Stores generated text and JSON files from the file runner script.
file_path String The absolute path to the generated output file, returned in the JSON payload.
content String The actual generated text (returned when the --include-content flag is used).
--output-format Parameter Controls the structure of the AI response (supports text or json).

Gemini CLI Advanced Features

  • Support for high-token generation via gemini_file_runner.py to handle outputs that exceed terminal limits.
  • Native video parsing capabilities using the gemini-3-flash-preview model for analyzing long-form media.
  • Support for custom output directories and dynamic filenames via script arguments.
  • Integrated extension management allowing users to list and configure additional Gemini capabilities.
  • Automated JSON response contract that returns absolute paths for seamless file management.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*