All plugins

hermes-gemini-live

Realtime duplex voice with the Gemini Live API, built around handing real work to Hermes. A single control in the composer (not a floating panel): tap, speak, hear the model, and when the ask needs files, a terminal, the web or memory the voice model delegates the job to the api server and keeps talking, reading the outcome aloud when it lands. Three verbs rather than thirty schemas — hermes_task starts, hermes_tasks reads the call's task board, and hermes_task_update denies, steers or stops a task. A task that stops to ask permission reaches the user as a spoken prompt and a "Hermes needs you" indicator with Approve and Deny buttons; only the user's press approves it, never the voice model. Multi-task is one Live session plus a board, not a session per task. Mute drops the uplink without hanging up, and the call survives composer remounts, so opening a session mid-sentence does not kill it. Full-proxy architecture: the plugin backend owns the upstream Live socket and the key, and the renderer is never given either, because the Live API carries the credential in the socket URL. Ships no Python dependencies of its own, which keeps it out of the uv workspace and lets one clone serve several profiles. Tested model behaviour is published in the README, including that gemini-3.8-live-extended-thinking accepts a function declaration and then delegates only about 2 times in 5, which is why gemini-3.8-live is the default. Disclosure — pressing Start captures microphone audio and streams it through the local backend to generativelanguage.googleapis.com using GEMINI_API_KEY from the Hermes home's .env; delegated work runs as a Hermes run in the serving profile's own memory with the profile's full toolset via the local api_server and API_SERVER_KEY, and those runs' results (up to 4000 characters each), the task board and approval prompts are sent back to Gemini as text. Nothing is sent anywhere else and no telemetry is emitted.

skappafrost6Voicev0.1.0Updated 1 month ago

About

Realtime duplex voice with the Gemini Live API, built around handing real work to Hermes. A single control in the composer (not a floating panel): tap, speak, hear the model, and when the ask needs files, a terminal, the web or memory the voice model delegates the job to the api server and keeps talking, reading the outcome aloud when it lands. Three verbs rather than thirty schemas — hermes_task starts, hermes_tasks reads the call's task board, and hermes_task_update denies, steers or stops a task. A task that stops to ask permission reaches the user as a spoken prompt and a "Hermes needs you" indicator with Approve and Deny buttons; only the user's press approves it, never the voice model. Multi-task is one Live session plus a board, not a session per task. Mute drops the uplink without hanging up, and the call survives composer remounts, so opening a session mid-sentence does not kill it. Full-proxy architecture: the plugin backend owns the upstream Live socket and the key, and the renderer is never given either, because the Live API carries the credential in the socket URL. Ships no Python dependencies of its own, which keeps it out of the uv workspace and lets one clone serve several profiles. Tested model behaviour is published in the README, including that gemini-3.8-live-extended-thinking accepts a function declaration and then delegates only about 2 times in 5, which is why gemini-3.8-live is the default. Disclosure — pressing Start captures microphone audio and streams it through the local backend to generativelanguage.googleapis.com using GEMINI_API_KEY from the Hermes home's .env; delegated work runs as a Hermes run in the serving profile's own memory with the profile's full toolset via the local api_server and API_SERVER_KEY, and those runs' results (up to 4000 characters each), the task board and approval prompts are sent back to Gemini as text. Nothing is sent anywhere else and no telemetry is emitted.

hermes-gemini-live

tests
license: MIT

Full-duplex Gemini Live voice inside Hermes Agent's
Desktop app, with real work delegated to Hermes while you keep talking.

Press the mic in the composer, speak, hear Gemini answer. Ask for something that needs files,
a terminal, the web, or memory, and the voice model hands the job to Hermes over the api server,
keeps the conversation going, and reads the outcome aloud when it lands. Several jobs can be in
flight at once; when one stops because it needs your permission, the lane says so out loud.

Your GEMINI_API_KEY stays server-side. This is not a preference: the Live API carries the key
in the websocket URL, so handing it to a renderer would put a credential in a browser process.
Audio relays through Hermes' own backend, which holds the key.


Requires

  • Hermes Agent with the Desktop app. The composer control is a Desktop plugin; the CLI,
    TUI and messaging gateways get the delegated work but no microphone.
  • A running gateway with the api_server platform (default port 8642). Without it the
    call still works as pure conversation and the panel states that Hermes work is unavailable.
  • A Google AI Studio API key. The free tier works; there is no OAuth path here.
  • Nothing to install on the Python side. websockets, aiohttp and httpx already ship in
    the Hermes runtime, and this plugin deliberately declares no dependencies (see
    Why there is no pyproject.toml).

Install

One command, into the Hermes home your shell points at:

hermes plugins install skappafrost/hermes-gemini-live

It will say "custom (unreviewed) source — not from the Hermes catalog" until the catalog entry
below is merged upstream; that warning is about review status, not about the code. Because the
manifest declares requires_env: GEMINI_API_KEY, the installer prompts for the key and writes it
into the home's .env for you. If you install by hand, add it yourself:

# macOS/Linux ~/.hermes  ·  Windows %LOCALAPPDATA%\hermes
echo 'GEMINI_API_KEY=your-key' >> ~/.hermes/.env

Installing by hand works too, and is what you want if you plan to edit the plugin:

cd ~/.hermes/plugins && git clone https://github.com/skappafrost/hermes-gemini-live.git
cd ~/.hermes && hermes plugins enable hermes-gemini-live

Restart Hermes Desktop. Two independent reasons, both real: plugin API routes are mounted
once at web-server import, and the Desktop half is a copy under desktop-plugins/ that is
only refreshed when the app scans at start-up. After any later edit to desktop/plugin.js the
app must restart again.

Verify without making a call:

hermes plugins validate plugins/hermes-gemini-live   # 14 checks, including the SDK surface lint
hermes plugins doctor hermes-gemini-live
python scripts/check_setup.py                        # key, model, and per-profile run lane

One profile is not enough

Profiles are separate homes and do not inherit the default home's plugins. hermes -p alpha plugins enable hermes-gemini-live answers "No plugin named …" until that profile has a folder
for it. Point each profile at one shared clone so there is a single source of truth:

# macOS/Linux
ln -s ~/.hermes/plugins/hermes-gemini-live ~/.hermes/profiles/alpha/plugins/hermes-gemini-live

# Windows (PowerShell) — a real junction, not a symlink you lack privileges for
New-Item -ItemType Junction -Target "$env:USERPROFILE\.hermes\plugins\hermes-gemini-live" `
  -Path "$env:USERPROFILE\.hermes\profiles\alpha\plugins\hermes-gemini-live"

On Windows, ln -s inside Git Bash silently performs a recursive copy instead of linking —
prefer PowerShell's New-Item -ItemType Junction. Each home then needs its own enable and, for
delegated runs, its own API_SERVER_KEY (see Troubleshooting).

What you get

Composer controlOne row in the composer's action area: tap to start, tap Stop to hang up. Chrome is copied from core's own voice surfaces, so it reads as part of the app.
State you can seeConnecting · Listening · Speaking · Thinking · Hermes is working · N tasks · Hermes needs you · Muted, each with its own spinner, meter and clock — a long wait never looks like a crash.
Mute without hanging upDrops the microphone at the last step before the socket: session, context and running tasks stay alive, and you stop paying audio-in tokens.
Real work, delegatedThree verbs, not thirty schemas: hermes_task starts a job, hermes_tasks reads the call's board, hermes_task_update(task, action) denies, steers or stops one of them (approving a parked run is a user button press, never a model call).
Survives your own clickingThe call lives outside the React component's lifecycle, so opening a session or switching panes mid-sentence does not end it.

Configuration

Every value is read from the environment of the profile serving the call. A variable that is
set but blank is a refusal, never a silent fall-through. Put them next to the key in the
same home's .env.

KeyDefaultWhat it does
GEMINI_LIVE_API_KEY → GEMINI_API_KEY—Live credential, server-side only
GEMINI_LIVE_MODELgemini-3.8-liveAny Live model id; models/ is added once. See which one to pick
GEMINI_LIVE_THINKING_LEVELhighOnly for ...-extended-thinking, which requires a level; high/low accepted, minimal/auto refused
GEMINI_LIVE_VOICEAoedePuck Charon Kore Fenrir Aoede — case-sensitive. Aoede (soft) and Kore (firm) are the two documented female voices. Careful: the endpoint answers setupComplete to any voiceName, so this short whitelist is what catches a typo instead of silently giving you the default voice
GEMINI_LIVE_SILENCE_MS1200How long silence must run before the turn ends (400–5000)
GEMINI_LIVE_PREFIX_MS300Lead-in kept before speech (100–1500)
GEMINI_LIVE_ECHO_CANCELLATIONonKeep ON unless you know why — see loudspeaker note
GEMINI_LIVE_NOISE_SUPPRESSION · GEMINI_LIVE_AUTO_GAINonCapture tuning
GEMINI_LIVE_HALF_DUPLEXoffStop sending mic while the model speaks; for a speaker that beats the canceller. Costs talk-over interruption
GEMINI_LIVE_API_SERVER_URLhttp://127.0.0.1:8642The gateway the lane posts runs to
GEMINI_LIVE_API_SERVER_PROFILEderived from the serving homePin which profile delegated runs belong to
GEMINI_LIVE_SESSION_KEYunsetStable memory scope for delegated runs
GEMINI_LIVE_INSTRUCTIONS—Extra persona sentences appended to the system instruction

Troubleshooting

SymptomWhat it actually meansFix
Panel says backend: 404 {"detail":"Plugin not found"}This home has the plugin disabled — not a routing bug. The mount happens once, but the runtime gate re-reads plugins.enabled on every request.hermes plugins enable hermes-gemini-live in the home the Desktop is serving
Hermes work is unavailable: no API_SERVER_KEY for profile 'alpha'A multiplexed gateway authorises /p/<profile>/v1/… with that profile's own key and deliberately does not inherit the owner's (api_server.py:1530-1545).Put API_SERVER_KEY in that profile's .env
Control call answers 404 run_not_found for a run you startedOwnership is by idempotency scope, and the submitting session key is that scope.Send the same X-Hermes-Session-Key you submitted with
The model chats but never does the workgemini-3.8-live-extended-thinking chooses to answer instead of delegating about 3 times in 5 — measured, not a wiring fault.Use the default gemini-3.8-live
Your speaker makes the model interrupt itselfServer-side sensitivity is not adjustable (threshold, voiceActivityConfig, serverVad, pushToTalk all close 1007).Keep GEMINI_LIVE_ECHO_CANCELLATION on, or set GEMINI_LIVE_HALF_DUPLEX=1
Edits to desktop/plugin.js do nothingThe app copies it at start-up.Restart Hermes Desktop, then compare the two plugin.js mtimes
uv lock complains about two workspace members named the sameOnly affects plugins that declare pyproject.toml/python_dependencies.Not this plugin — see below

Measured against the real endpoint

These are not opinions; each was run against generativelanguage.googleapis.com with one key
and one question that a model cannot answer without calling something ("current time in Tokyo —
do not guess").

ModelSetupFunction calling
gemini-3.8-liveaccepted, audio at audio/pcm;rate=240008/8
gemini-3.1-flash-live-previewaccepted4/4, both the delegate and a canonical test function
gemini-2.5-flash-native-audio-latestacceptedcalled
gemini-3.8-live-extended-thinkingaccepted only with thinkingConfig.thinkingLevel2/5 with behavior: NON_BLOCKING, 0/5 without

The delegate is where the models differ most

Five trials per configuration, same question, same strong order in the system instruction, 90 s
window. Extended-thinking scores higher on speech quality and on agentic benchmarks, but the one
thing a voice lane needs — noticing it cannot know and asking for help — is unreliable there. The
2/5 is a decision, not a dropped frame: a second run kept the socket open 90 s past
turnComplete (Google warns turnComplete no longer means idle for that model) and the rate did
not move, while both successful calls landed after turnComplete (5.9 s and 13.5 s). In the
misses the model answered within the same ~3 s, i.e. it never hesitated. Nothing on the wire
changes it: toolConfig, mode: ANY and function scheduling are unsupported on this endpoint,
so a call cannot be mandated. Hence the default.

There is no thinking knob on gemini-3.8-live, and it is already at maximum

Reading usageMetadata.thoughtsTokenCount on a trick arithmetic question:

Sent in generationConfigThought tokensTotal
nothing941980
thinkingBudget: -1 (dynamic)9391004
thinkingBudget: -1 + includeThoughts10551655

thinkingLevel is refused outright ("Thinking level is not supported for this model"),
thinkingBudget parses but does nothing (941 vs 939 is the same number), and includeThoughts
raises only the reported count because the thoughts ride along in the response. The model
spends ~940 thought tokens per turn on its own.

Wire contract, as accepted and as refused

Accepted in setup: contextWindowCompression.slidingWindow, sessionResumption,
inputAudioTranscription, outputAudioTranscription, tools.functionDeclarations (with
behavior: NON_BLOCKING on the declaration — on the Tool entry the endpoint answers
Unknown name "behavior" at 'setup.tools[0]'),
realtimeInputConfig.automaticActivityDetection.{silenceDurationMs,prefixPaddingMs}, and
realtimeInput.text.

Rejected with close code 1007: threshold, voiceActivityConfig, serverVad, pushToTalk,
turnCoverage, turnComplete inside realtimeInput, toolConfig at both setup and
setup.generation_config, and responseModalities: ["AUDIO","TEXT"].

Limits, stated rather than discovered mid-call

  • Google owns the context trim. The sliding window cuts at 80% of the window toward half of
    that and never trims the system instruction. Without it an audio-only session hard-stops near
    15 minutes. There is no way to delete context mid-session (RemoveContext has no Live
    equivalent), so a long call is bounded by that trim plus goAway.
  • goAway is terminal — the socket dies right after. The panel says so instead of going quiet.
  • No upstream cancel or truncate. Interruption is the server's VAD; the client can only stop
    its own playback.
  • 64k tokens/minute for these Live models (no RPM/RPD/TPD per Google). Audio tokens stream
    continuously, so the practical limit is call length, not message count.
  • A Hermes run is slow: 75.5 s measured for a one-word answer, and 88 s for a real web
    lookup. That is why the lane answers the model with a receipt immediately and delivers the
    result later as a spoken note — a tool that waits is a dead microphone.
  • A result never talks over the model. The note is queued and handed over in the next ~1 s
    gap in its speech, so it finishes the sentence it was saying before reading anything; several
    results queue in order, and a question from a run parked on an approval jumps that queue
    because the run behind it is standing still. The panel sees every transition immediately —
    only the note to the model waits.
  • The report is written for a voice model. The delegated prompt tells the Hermes run to
    finish in prose that reads well aloud: conclusion first, at most four short sentences, no
    markdown or bare paths. The full answer stays in the Hermes session, so "đọc kỹ phần đó lại"
    is a follow-up question, not a re-run.
  • Multi-task is one Live session plus a board, not a session per task. Four runs can be in
    flight (a run parked on an approval keeps its worker while it waits), each keeps the id the
    model saw in its receipt, and finished tasks stay on the board for the rest of the call.
    Closing the call is the only thing that forgets them: sessionResumption is enabled and its
    handle is forwarded, but nothing resumes from it yet, so a new call starts empty.
  • A delegated run is routed to /p/<profile>/ when the serving home is a named profile —
    an unprefixed run would resume in the default profile's memory.
  • Not supported: mobile/Discord capture, wake word (core's wake reaction is unconditional and
    the microphone lease admits one owner — see below), appearing as a row in core's own voice
    engine dropdown (that menu starts core's engines and offers no plugin seam), and memory
    write-back from the panel.

Why wake word is not here

Hermes ships a real wake-word listener (tools/wake_word.py). It cannot be reused from a
plugin lane for two reasons that are visible in core: emitGatewayEvent for wake.detected
returns void and core then starts its own chained conversation unconditionally
(apps/desktop/src/app/contrib/wiring.tsx), and the cross-process microphone lease
(runtime/wake-word.lock) admits exactly one owner. A plugin that tried its own listener would
either double-fire or be refused. Adding it properly is a core change, not a plugin one.

Why there is no pyproject.toml

Deliberate, and load-bearing. Hermes builds a uv workspace out of every plugin that looks
buildable, and a buildable member keeps its declared [project].name — so one clone enabled in
two profiles gives uv lock "Two workspace members are both named X", which breaks the
lockfile and therefore hermes update. Membership is decided by
pm/plugin_declarations.py: is_member = not external and (pyproject or install_requirements).
With neither, this plugin is invisible to the resolver, is never written into a generation, and
cannot be blamed for a broken build during an update. Its three runtime imports
(websockets, aiohttp, httpx) already ship in the Hermes runtime.

hermes update therefore cannot touch this plugin. One command can: hermes plugins update hermes-gemini-live runs git stash push --include-untracked and git reset --hard HEAD inside
the plugin folder, so keep any local edits committed.

Development

__init__.py                  # register(): fail fast on a missing key, log the serving home
hermes_gemini_live/
  config.py                  # every read, fail-closed; model-conditional thinking; status_dict
  wire.py                    # setup frame + frame normaliser (the only place wire names live)
  live_client.py             # the socket; redacts the key from every error string
  agent_lane.py              # /v1/runs client, task board, worker pool, speakable text
  tools.py                   # the three function declarations
  relay.py                   # browser socket ⇄ Live socket, receipt-first tool handling
dashboard/plugin_api.py      # GET /status, WS /relay — mounted at /api/plugins/<name>/
desktop/plugin.js            # the composer control (uncompiled ESM, no JSX)
tests/                       # 86 tests, no network

Two rules that are easy to break by accident:

  • The Desktop half is a single uncompiled ESM file. Only @hermes/plugin-sdk, react and
    react/jsx-runtime resolve, there is no build step and no JSX — everything goes through
    createElement. hermes plugins validate lints exactly this.
  • Tests must not touch the network or the microphone. tests/test_relay.py drives the relay
    against a scripted Live peer, and each test ends through exactly one pump so no assertion
    depends on which task the loop finished first.

Run them with any Python that has pytest, pytest-asyncio, httpx, starlette and fastapi:

python -m pytest -q   # 86 passed here; 2 of them need a Hermes checkout on PYTHONPATH
                      # and skip cleanly without one, which is what CI sees

The renderer path — a real microphone, a real speaker, real interruptions — is only provable by
making a call. CI cannot cover it, and this README does not claim it does.

How this differs from other voice plugins

The Hermes catalog already carries Gemini Live voice — notably gemini-live-bridge, which
this README describes from its own catalog entry, not from a guess. It is the better pick if you
want a transcript-and-meters experience: a status-bar minibar, model catalog, thinking level,
session token meter and auto-redial through session resumption, and it is documented as having
no agent tools.

This plugin's bet is the opposite: a single control in the composer, and the voice model being
able to make Hermes do things — files, terminals, the web, memory — while the conversation
continues. That is where almost all of the work here went, and it is why the lane has a task
board, a spoken approval prompt answered by the user's own Approve/Deny press, and a measured table of which Live models
actually delegate (they do not all). Choose on that axis:

You wantPick
Transcript, token meter, model picker, reconnectgemini-live-bridge
"Add this to the repo, then tell me what changed" by voicethis plugin
Bothnothing stops you — they are separate sockets, but each holds a microphone, so run one at a time

Chained voice modes in core (hermes-talk, hermes-speech, deepgram-voice, …) are a third
thing again: STT → agent → TTS turns, not a duplex model.

Publishing to the Hermes plugin catalog

hermes plugins install hermes-gemini-live needs a catalog entry merged into hermes-agent by a
maintainer: a YAML pin under plugin-catalog/ with a full 40-character commit SHA, no
self-updating code, and declared capabilities matching what actually registers.
plugin-catalog/hermes-gemini-live.yaml in this repo is that entry, ready to copy into a PR from
the repository owner (rule 5 of the catalog's admission policy).

License

MIT — see LICENSE.

README from the reviewed commit cf549e7; it updates when the author re-pins.

More by skappafrost

2 plugins by skappafrost in the catalog.

Developer Mode

Explore built-in Hermes toolsets and actions.

HermesAgent

Developer?

Create a Hermes extension for Desktop or agent workflows.

Developer Section