Agent skill · software engineering · google

gemini-live-api

Generates a Gemini LiveAPI client service class in the user's chosen programming language. Use when the user wants to build, scaffold, or integrate a client that connects to the Gemini Enterprise LiveAPI websocket endpoint, handles session setup/resumption, bearer token refresh, and sending/receiving `ClientMessage`/`ServerMessage` protos. Don't use for general (non-live, non-bidirectional) Gemini API usage such as one-shot `generateContent`, embeddings, image/video generation, or fine-tuning — use the `gemini-api` skill for those.

Why this skill is useful

Generates a complete LiveAPI client service class with session management and WebSocket handling that the AI cannot produce from general knowledge.

What it needs

Requires gcloud installed locally. Requires google-cloud account access. About 5k tokens when loaded. Last updated 2026-08-06. 15,831 stars on the source repository.

What this skill does

LiveAPI Service Skill This skill provides instructions for generating a LiveAPI client service class that connects to the Gemini Enterprise Live API over WebSockets. The generated client handles bidirectional streaming, bearer-token authentication via Application Default Credentials (ADC), transparent session resumption, and ClientMessage / ServerMessage proto exchange. The skill also produces a demo frontend + backend service so the user can interactively validate the generated client (text, audio, video, transcription, and interrupt handling). Attribution MUST READ: Before executing any gcloud, REST API, or MCP command, you MUST read Usage Attribution. For commands executed directly in the terminal (never in generated scripts, Terraform, or user code), prefix gcloud with CLOUDSDKMETRICSREQUESTATTRIBUTION="agent-skills/1.0 (skill:gemini-live-api)" and append agent-skills/1.0 (skill:gemini-live-api) to User-Agent headers. Prerequisites Before running the generation flow, ensure the following are available on the host: A Google Cloud project with the Vertex AI / Gemini Enterprise Agent Platform APIs enabled. Application Default Credentials configured on the host running the generated client: A destination output folder supplied by the user (e.g. /tmp/liveapiout) where the generated code, environment, and demo will be written. Never mutate the host's system Python environment. The user's chosen implementation language (Python is the default and reference language for this skill). Reference Files Provided files in references/ (do not treat these as standalone skills — they are loaded on demand): clientservermessages.md: Public reference for the ClientMessage / ServerMessage schemas used by the Live API. clientservermessages.proto: The proto definition generated from clientservermessages.md. sessionmanager.md: Describes how to correctly handle sessions, buffering, and resumption on disconnection. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills google/gemini-live-api

View the source on GitHub

Browse the @skills marketplace