Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

gemini-live-api

Skill by google

Builds and troubleshoots WebSocket clients and sessions for the Gemini Enterprise Agent Platform Live API. It is aimed at developers who scaffold a LiveAPI client or demo, or who need to debug Live API issues.

  • Score 91
  • 25k stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install gemini-live-api

Built from the published package, never by AI.

git clone --depth 1 https://github.com/google/skills /tmp/skills && mkdir -p ~/.claude/skills && cp -r /tmp/skills/skills/cloud/gemini-live-api ~/.claude/skills/gemini-live-api

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install gemini-live-api in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill generates a LiveAPI client service class that connects to the Gemini Enterprise Agent Platform Live API over WebSockets using the BidiGenerateContent method. The generated client handles bearer token authentication through Application Default Credentials, transparent session resumption, tool responses, mid-session context updates, and ClientMessage and ServerMessage exchange as JSON text frames. It also produces a demo frontend and backend, and it includes reference files for troubleshooting audio, turns, tool calling, and latency.

The skill is for developers who want to build, scaffold, or integrate a live, bidirectional Gemini client, or who need to debug issues such as silent turns, barge-in failures, or WebSocket 1008 and 1011 drops. Python is the default language, and the default region is us-central1. Generated code and a virtual environment go into an isolated output folder rather than the system Python. Unary generateContent, embeddings, and image or video generation are out of scope and belong to the gemini-api skill.

Written from the project's SKILL.md and checked against it.

What it can do

  • Scaffold a LiveAPI clientGenerates a client service class that connects to the Live API WebSocket endpoint.
  • Handle authenticationAttaches ADC bearer tokens and refreshes them on expiry and on reconnection.
  • Session resumptionImplements transparent session resumption and go_away handling per the session manager spec.
  • Exchange protobuf messagesSends ClientMessage and parses ServerMessage as UTF-8 JSON text frames.
  • Tool responses and context updatesSends tool responses and mid-session system instruction or tool updates on gemini-3.8-live.
  • Demo frontend and backendBuilds a UI and backend to test sessions with text, audio, video, and transcription.
  • Troubleshoot Live API issuesDiagnoses silent turns, barge-in failures, and WebSocket 1008, 1011, or goAway drops.
  • Generate tests and docsWrites a test file and how_to_run.md with example payloads.

What you need

  • Google Cloud project with billing linked
  • aiplatform.googleapis.com API enabled
  • Vertex AI User role (roles/aiplatform.user)
  • Application Default Credentials configured on the host
  • Python as the default implementation language

Try asking

  • Scaffold a Gemini Live API client in Python for audio and text sessions.
  • Add bearer token refresh and session resumption to my LiveAPI client.
  • Why is my Live API session dropping with a WebSocket 1011 error?

Good to know

  • Live API models do not support the global endpoint.
  • The gemini-3.5-transcribe-live-preview model is in Preview.
  • Does not cover unary generateContent, embeddings, or image and video generation.

Security check

C
  • Asks for administrator rights (sudo)In skills/cloud/gemini-live-api/SKILL.md: `sudo

Checked automatically: skills/cloud/gemini-live-api/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md27 KB
  • references/attribution.md2 KB
  • references/client_server_messages.md26 KB
  • references/client_server_messages.proto19 KB
  • references/session_manager.md6 KB
Show all 8 files
  • references/troubleshooting_audio_voice.md13 KB
  • references/troubleshooting_tools_lifecycle.md15 KB
  • references/troubleshooting_turns_vad.md17 KB

Alternatives to gemini-live-api

All alternatives →

Compare with agent-reproduce-align, google_contacts or m06-error-handling

gemini-live-api: common questions

Which Live API models does it support?

The source lists gemini-3.8-live (GA, recommended default), gemini-live-2.5-flash-native-audio (GA), and gemini-3.5-transcribe-live-preview (Preview).

Can it handle one-shot generateContent calls?

No. The source says non-live calls such as generateContent, embeddings, and image or video generation should use the gemini-api skill.

Where is the generated code written?

It is written to a folder the user supplies, with a venv and requirements.txt. The source says the system Python environment is never modified.

How do I install gemini-live-api?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is gemini-live-api free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is gemini-live-api safe to use?

It scores 91 of 100. Grades: maintenance A, licence A, quality A. Security check: grade C (asks for administrator rights (sudo)). Review the code before you install. How grades work.

What are alternatives to gemini-live-api?

Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.

gemini-live-api Install

Add to stack

Loading.