Tooluck logoTooluck
SKILL.md

gemini-api-cli

Agent skill fromgoogle-gemini/gemini-skills

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.

How to install gemini-api-cli

install gemini-api-cli
# install the gemini-skills pack with the skills CLI
npx skills add google-gemini/gemini-skills

# or add only this skill to Claude Code: copy the folder

skills/gemini-api-cli/

# into

~/.claude/skills/gemini-api-cli/ (all projects)

.claude/skills/gemini-api-cli/ (one project)

skills/gemini-api-cli/SKILL.md

Apache-2.0Full file
1The `gemini-api` CLI exposes every Gemini API resource as a shell subcommand. Compared to `curl`: media and transcription commands decode output to disk and print only the file path, `-i` attaches local files or `files/<id>` URIs, `--jq` extracts fields in-process (raw strings by default, no external `jq`), `--dry-run` previews redacted HTTP requests offline, and list endpoints auto-paginate with `--all` (cap pages with `--max-pages N`; `--page-size` sets server page size).
2
3## CLI vs SDK
4
5**CLI for shell work, SDK for application code.** Use `gemini-api` from terminals, scripts, and CI jobs to generate media files, analyze local PDFs or recordings, run Deep Research, and manage agent sandboxes (`gemini-api` is a stateless Gemini API client, distinct from the interactive `@google/gemini-cli` coding agent). Use the Google GenAI SDKs (`gemini-api-dev`, `gemini-live-api-dev`) when calls live inside application source or need bidirectional Live API WebSockets.
6
7## Install and auth
8
9```sh
10# macOS / Linux (set GEMINI_VERSION=<tag> to pin a release)
11curl -fsSL https://raw.githubusercontent.com/google-gemini/gemini-api-cli/main/scripts/install.sh | bash
12```
13
14Credentials resolve in order (first match wins): `--api-key` / `--access-token` flags, `GEMINI_API_KEY` / `GEMINI_ACCESS_TOKEN` env vars, the OS keychain, then `~/.config/gemini-api/config.yaml`.
15
16- Env var (agents and CI): `export GEMINI_API_KEY="..."`
17…

Excerpt shown under the repository's Apache-2.0 license.

More skills in gemini-skills

Keep exploring

Similar skill repositories

thedotmack /

claude-mem
116k

Persistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More

CCCXGHGM+135 skills

Newsletter

Join the Community

Subscribe to our newsletter for the latest news and updates