Skip to content
Skill

Gemini API CLI

Call the Gemini API from the shell with gemini-api

Install
Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
4.5K
Last commit
5 days ago
License
Apache-2.0
Listing updated
today

When your agent uses it

Call the Gemini API from the shell with gemini-api. Use for media generation (images, TTS, music, video), file and YouTube analysis, audio/video transcription, Deep Research, and sandboxed agents.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (12 KB) on GitHub on 17 November 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Install

This skill ships in the gemini-skills plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add google-gemini/gemini-skills
/plugin install gemini-skills@gemini-skills

Or copy only this skill to ~/.claude/skills/gemini-api-cli:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/google-gemini/gemini-skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/gemini-api-cli &&
cp -R "$tmp/skills/gemini-api-cli" ~/.claude/skills/gemini-api-cli &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/gemini-api-cli inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/gemini-api-cli to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/google-gemini/gemini-skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/gemini-api-cli &&
cp -R "$tmp/skills/gemini-api-cli" ~/.agents/skills/gemini-api-cli &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/gemini-api-cli inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/gemini-api-cli to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/google-gemini/gemini-skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/gemini-api-cli &&
cp -R "$tmp/skills/gemini-api-cli" ~/.cursor/skills/gemini-api-cli &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/gemini-api-cli inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/google-gemini/gemini-skills.git --path skills/gemini-api-cli

Or copy the folder to ~/.gemini/skills/gemini-api-cli yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/gemini-api-cli:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/google-gemini/gemini-skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/gemini-api-cli &&
cp -R "$tmp/skills/gemini-api-cli" ~/.copilot/skills/gemini-api-cli &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/gemini-api-cli inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/google-gemini/gemini-skills.git

Then copy gemini-skills/skills/gemini-api-cli into your agent's skills folder as gemini-api-cli. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

Gemini API CLI FAQ

How do I install Gemini API CLI in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/gemini-api-cli to use it in all your projects, or to .claude/skills/gemini-api-cli in one project. Or install the gemini-skills plugin, which includes it: /plugin marketplace add google-gemini/gemini-skills, then /plugin install gemini-skills@gemini-skills.

Does Gemini API CLI run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Gemini API CLI?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

What are the best alternatives to Gemini API CLI?

The closest alternatives to Gemini API CLI are Rea tool design, Codebase design, MCP builder, Claude API and Canvas design.

More from google-gemini/gemini-skills

  1. Use this skill when writing code that calls the Gemini API for text generation, multi-turn chat, multimodal understanding, image generation,

    • Open source
    • 4.5K GitHub stars
    • Design and media
  2. Use this skill when building real-time, bidirectional streaming applications with the Gemini Live API, or migrating legacy Live models (2.0/

    • Open source
    • 4.5K GitHub stars
    • Design and media
  3. Use this skill for generative video editing, text-to-video, image- and video-referenced video generation, first-frame-to-video, first-and-la

    • Open source
    • 4.5K GitHub stars
    • Design and media

Alternatives to Gemini API CLI

  1. Audit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics.

    • Open source
    • 465K GitHub stars
    • Design and media
  2. Shared vocabulary for designing deep modules

    • Open source
    • 326K GitHub stars
    • Design and media
  3. Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-design

    • 196K GitHub stars
    • AI models and LLM tooling
  4. Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model

    • 196K GitHub stars
    • AI models and LLM tooling
  5. Create beautiful visual art in .png and .pdf documents using design philosophy

    • 196K GitHub stars
    • Design and media
  6. Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one

    • 196K GitHub stars
    • Design and media