Headless one-shot Gemini CLI wrapper for prompts, summaries, JSON output, and extension management.

CCM score
56 of 100
skills.sh installs
3.1K
GitHub stars
395.2K
last updated
Jul 14, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers one-shot prompting with gemini -p, optional model selection with -m, and stdin piped into a prompt
  • Includes JSON output via --output-format json and management subcommands for extensions, skills, hooks, and MCP
  • Notes that positional text starts interactive mode, so headless use requires the -p/--prompt flag
  • Designed for scripts and agent workflows that need Gemini responses without an interactive session

Install

$ npx -y skills add openclaw/openclaw --skill gemini -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Gemini CLI

Use Gemini in headless one-shot mode. Positional text starts interactive mode; use -p/--prompt.

Quick start

  • gemini -p "Answer this question..."
  • gemini -m <model> -p "Prompt..."
  • gemini -p "Return JSON" --output-format json
  • stdin appends to -p: cat notes.md | gemini -p "Summarize"

Extensions

  • List: gemini --list-extensions
  • Manage: gemini extensions <command>
  • Skills: gemini skills <command>
  • Hooks: gemini hooks <command>
  • MCP: gemini mcp <command>

Notes

  • If auth is required, run gemini once interactively and follow the login flow.

Details

Repository
github.com/openclaw/openclaw
Categories
CLI & Terminal, AI Agents & LLM Apps
First seen
May 16, 2026

More from openclaw/openclaw

All 54

Similar to Gemini

More CLI & Terminal