liveapi-service

liveapi-service is a skill for Claude Code, Codex from hamzabellouch/agent-skills. It costs 117 tokens per session (2,181 once invoked), scanned B, a copy of gemini-live-api, MIT.

A code generator for client services that connect to Gemini Enterprise Live API, a Google service for real-time voice, video, and text communication over WebSockets.

In plain words
What is it for?
It is for creating a client in a chosen programming language, plus a demo application that tests text, audio, video, transcription, and interruption handling.
Why use it?
It removes much of the setup needed for authentication, continuous data streaming, and reconnecting sessions when a connection is interrupted.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit It is for creating a client in a chosen programming language, plus a demo application that tests text, audio, video, transcription, and interruption handling.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/hamzabellouch/agent-skills/gemini-live-api
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add hamzabellouch/agent-skills --skill gemini-live-api
Clone the repo
git clone --depth 1 https://github.com/hamzabellouch/agent-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for liveapi-service

README.md
[![agentmods](https://agentmods.dev/badge/skills/hamzabellouch/agent-skills/gemini-live-api/github.svg)](https://agentmods.dev/skills/hamzabellouch/agent-skills/gemini-live-api)
Your own site
<a href="https://agentmods.dev/skills/hamzabellouch/agent-skills/gemini-live-api"><img src="https://agentmods.dev/badge/skills/hamzabellouch/agent-skills/gemini-live-api/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for liveapi-service

Your own site · 80×15
<a href="https://agentmods.dev/skills/hamzabellouch/agent-skills/gemini-live-api"><img src="https://agentmods.dev/badge/skills/hamzabellouch/agent-skills/gemini-live-api.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 117 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,181 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin 95% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00117 $0.02181
Opus 5 $0.00059 $0.01091
Sonnet 5 $0.00023 $0.00436
Haiku 4.5 $0.00012 $0.00218

Measured 9d ago against content hash ea3b48263c0f, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade B, and why

liveapi-service scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

site-packages, and never instruct the user to run `sudo pip install`.
Origin

This is a copy

95% identical to gemini-live-api — 6 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

AI API and Agent Platform/gemini-live-api/SKILL.md · 221 lines

How it starts

The opening of the file, as written. The whole thing — 221 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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).

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:

    gcloud auth application-default login
    
  • A destination output folder supplied by the user (e.g. /tmp/liveapi_out) 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):

  • client_server_messages.md: Public reference for the ClientMessage / ServerMessage schemas used by the Live API.
  • client_server_messages.proto: The proto definition generated from client_server_messages.md.
  • session_manager.md: Describes how to correctly handle sessions, buffering, and resumption on disconnection.

Steps

Step 1: Copy the reference files

Copy client_server_messages.md, client_server_messages.proto, and session_manager.md from this skill's references/ folder into the user's destination output folder. These files become the source of truth for the generated client.

Read the full file on GitHub · 221 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 221 lines · 117 tokens per session scan B ea3b48263c0f

Subscribe to this mod's changes

liveapi-service is a skill published in the GitHub repository hamzabellouch/agent-skills (4 stars, last pushed 1mo ago), licensed MIT. It adds 117 tokens to every session and 2,181 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). It is 95% identical to gemini-live-api, differing in 6 lines, and is treated as a copy.