qmetrics.net

Gemini API CLI

Command-line client for Gemini API and agents

Gemini API CLI screenshot

gemini-api connects coding agents and shell scripts to Gemini models, media generation, file analysis, and managed agents. One Go binary runs on macOS, Linux, and Windows.

Overview

Gemini API CLI (gemini-api) is a command-line tool that lets shell-based agents and scripts call Google Gemini through a single binary. After configuring an API key, agents can generate text, images, speech, music, and video, analyze documents and media, transcribe audio, upload files, and run or poll managed agents.

Commands are grouped for creation, understanding, and management tasks, with flags for streaming, JSON or TOON output, dry-run validation without network access, and embedded JSON Schema via --schema. Media commands write files locally and print paths for downstream automation. Background agent runs return interaction IDs for status and retrieval.

The tool is stateless per invocation and exposes --help, --usage, and installable agent skills so Codex, Claude Code, Cursor, Antigravity, and similar tools discover syntax from the binary itself. Authentication can use environment variables, OS keychain storage, or a config file.

Prebuilt archives and go install targets macOS, Linux, and Windows. Advanced commands cover sandbox environments, webhooks, triggers, and credentials for managed agent workflows.

Key features

  • Text and multimodal generation
  • Image, TTS, music, and video output
  • PDF and media analyze commands
  • Transcription to text or SRT
  • Managed agent run and poll
  • Dry-run request validation
  • JSON Schema per command
  • Embedded agent skill installer

Use cases

  • Agent-driven media asset creation
  • Shell scripts calling Gemini APIs
  • Document Q&A from the terminal
  • Background research agent delegation
  • CI jobs with pinned CLI releases

Tags

Similar software

LLM

Command-line and Python toolkit for many language models

LLM runs prompts and chats from the terminal, logs to SQLite, and supports embeddings, tools, schemas, and plugins for many providers.

★ 12.8k⟳ 10 days agoApache-2.0

OpenClaw

Open-source personal AI assistant running on your devices and chat apps

Open-source AI assistant that runs on your own computer and answers in chat apps such as WhatsApp, Telegram, Slack and Discord. State, memory and credentials stay on your hardware.

★ 395.3k⟳ todayMIT
Open Source Alternative to:ChatGPTChatGPT Plus+3

DeepSeek Harness

Open-source plugin-based agent harness from DeepSeek

DeepSeek Harness is an open-source agent harness built on an everything-is-a-plugin architecture powered by Cordis. It offers a web UI, desktop app, and extensible plugins for daily work, coding, and automation.

★ 288k⟳ 6 days agoMIT

Hermes Agent

Self-improving open-source AI agent with memory, skills and messaging gateway

Open-source AI agent from Nous Research that keeps persistent memory, creates skills from experience, and runs from a terminal, desktop app or messaging platforms with any model provider.

★ 266.6k⟳ todayMIT
Open Source Alternative to:Anthropic ClaudeChatGPT+5

Oh My Zsh

Community zsh configuration framework with plugins

Oh My Zsh manages zsh setup with bundled plugins, themes, and an installer driven by curl, wget, or fetch.

★ 190.9k⟳ yesterdayMIT
TerminalsDesktop/CLI app

Ollama

Run open AI models locally or in the cloud

Ollama runs open language models such as Gemma, Qwen, DeepSeek and gpt-oss on macOS, Windows and Linux, locally or in the cloud. It offers a CLI, a REST API, and Python and JavaScript libraries.

★ 188.3k⟳ 2 days agoMIT
Open Source Alternative to:OpenAI API