All plugins

hermes-whatsapp-voice

Live voice calls with Hermes over WhatsApp, on the linked-device (personal number) setup most Hermes users already have, with no WhatsApp Business account. Call your bot's number and talk to your Hermes: the voice uses Hermes's own persona (a short briefing fetched from Hermes) and hands real work to Hermes mid-call. Or let Hermes call you for things that matter: whatsapp_call_owner rings only the configured owner number (it has no destination parameter) and reports answered, no answer or declined, so the agent can fall back to another channel, including from cron. A short summary of each call arrives in WhatsApp, and each call keeps a record with timing metrics (hermes whatsapp-voice calls). Speech runs on Gemini Live (gemini-3.8-live by default), reusing the Gemini key Hermes already has; every call setting (languages, pauses, timeouts, any Live setup field) is configurable. Optional chat-session mode (context_mode: core_session, off by default) makes the call part of the owner's WhatsApp chat with Hermes. Setup is a dashboard tab (pairing QR, settings, test call) or an agent runbook skill. Disclosure — runs a separate sidecar process (Rust, built on whatsapp-rust) that the user starts or installs as a systemd/launchd user service; the binary is downloaded from this repo's GitHub release, built and attested by its release workflow, and checked against checksums pinned in the repo (plus the build attestation when the gh CLI is present). The sidecar becomes an extra linked device of the bot's WhatsApp number through an unofficial protocol, stores that session in the plugin's data directory, and answers only the owner's number. During calls it streams audio to generativelanguage.googleapis.com with GOOGLE_API_KEY or GEMINI_API_KEY (read via get_secret), along with the persona briefing, the outgoing call's reason and ask_hermes results as text. It calls the local api_server with API_SERVER_KEY for ask_hermes (a full Hermes turn with the owner's tools), the persona briefing (at startup and after each call) and the post-call summary, a run that may write to Hermes memory and whose result is sent to the owner on WhatsApp. The dashboard tab's backend saves only this plugin's settings (through hermes config set), starts and stops pairing, places test calls to the owner, and restarts the sidecar service (systemctl --user or launchctl). A pre_gateway_dispatch hook sends the owner's WhatsApp DM texts into an active chat-session call instead of a second text reply (slash commands, media, groups and other chats are untouched). Chat-session mode (opt-in) also runs a loopback service inside Hermes's process that reads the owner's WhatsApp DM session (system prompt, recent history, tool schemas) and sends it to Gemini, runs only the tools listed in voice_tools through Hermes in that session, and writes the call into that session. It never answers Hermes approval prompts: a command that needs approval is denied during the call and the owner is told to ask again in the WhatsApp text chat; it imports private Hermes modules (listed in the repo's CORE_PATCHES.md) and falls back to the default mode if they change. Optional recording (record_calls, off) saves the owner's side of each call as WAV in the plugin's data directory, locally only. An advanced voice_api_url setting can point the Live connection at another endpoint, which then receives the Gemini key and call audio. No telemetry.

ashwanthbalakrishnan5156Voicev0.2.2Updated 12 days ago

About

Live voice calls with Hermes over WhatsApp, on the linked-device (personal number) setup most Hermes users already have, with no WhatsApp Business account. Call your bot's number and talk to your Hermes: the voice uses Hermes's own persona (a short briefing fetched from Hermes) and hands real work to Hermes mid-call. Or let Hermes call you for things that matter: whatsapp_call_owner rings only the configured owner number (it has no destination parameter) and reports answered, no answer or declined, so the agent can fall back to another channel, including from cron. A short summary of each call arrives in WhatsApp, and each call keeps a record with timing metrics (hermes whatsapp-voice calls). Speech runs on Gemini Live (gemini-3.8-live by default), reusing the Gemini key Hermes already has; every call setting (languages, pauses, timeouts, any Live setup field) is configurable. Optional chat-session mode (context_mode: core_session, off by default) makes the call part of the owner's WhatsApp chat with Hermes. Setup is a dashboard tab (pairing QR, settings, test call) or an agent runbook skill. Disclosure — runs a separate sidecar process (Rust, built on whatsapp-rust) that the user starts or installs as a systemd/launchd user service; the binary is downloaded from this repo's GitHub release, built and attested by its release workflow, and checked against checksums pinned in the repo (plus the build attestation when the gh CLI is present). The sidecar becomes an extra linked device of the bot's WhatsApp number through an unofficial protocol, stores that session in the plugin's data directory, and answers only the owner's number. During calls it streams audio to generativelanguage.googleapis.com with GOOGLE_API_KEY or GEMINI_API_KEY (read via get_secret), along with the persona briefing, the outgoing call's reason and ask_hermes results as text. It calls the local api_server with API_SERVER_KEY for ask_hermes (a full Hermes turn with the owner's tools), the persona briefing (at startup and after each call) and the post-call summary, a run that may write to Hermes memory and whose result is sent to the owner on WhatsApp. The dashboard tab's backend saves only this plugin's settings (through hermes config set), starts and stops pairing, places test calls to the owner, and restarts the sidecar service (systemctl --user or launchctl). A pre_gateway_dispatch hook sends the owner's WhatsApp DM texts into an active chat-session call instead of a second text reply (slash commands, media, groups and other chats are untouched). Chat-session mode (opt-in) also runs a loopback service inside Hermes's process that reads the owner's WhatsApp DM session (system prompt, recent history, tool schemas) and sends it to Gemini, runs only the tools listed in voice_tools through Hermes in that session, and writes the call into that session. It never answers Hermes approval prompts: a command that needs approval is denied during the call and the owner is told to ask again in the WhatsApp text chat; it imports private Hermes modules (listed in the repo's CORE_PATCHES.md) and falls back to the default mode if they change. Optional recording (record_calls, off) saves the owner's side of each call as WAV in the plugin's data directory, locally only. An advanced voice_api_url setting can point the Live connection at another endpoint, which then receives the Gemini key and call audio. No telemetry.

Live voice calls with Hermes over WhatsApp. Call your
bot's number and talk to your agent, or let Hermes ring you when something can't wait. It works with
the personal-number setup most Hermes users already have (WhatsApp linked as a device): no WhatsApp
Business or Cloud API account needed.

Features

📞 Call your bot
Talk to Hermes like a person. The voice hands real work to Hermes mid-call: "move my 3pm to
tomorrow", "what did Sam say about the invoice?"

🔔 Hermes calls you
For things that matter, Hermes rings instead of texting: an urgent reminder, an alert, a cron job
that needs a decision. No answer? It falls back to another channel.

⚡ Natural and fast
Speech-to-speech with Gemini Live: ready about 0.2 s after you pick up, sub-second replies, and you
can talk over it.

🧠 Your assistant, not a stranger
The voice takes its name, personality and memory from your Hermes. Optional chat-session mode makes
the call part of your WhatsApp chat with it.

🔒 Owner-only by design
It answers only your number and calls only your number. No tool takes a destination, so a prompt
injection can't make it call anyone else.

🧩 Nothing to build
Prebuilt, attested sidecar binaries download on first run. Pair, configure and watch calls from a
tab in the Hermes dashboard.

🌍 Speaks your language
Pin the languages you speak, and your main one for speech recognition. Tamil, Hindi, Portuguese,
Japanese and two dozen more.

🧪 Whole calls under test
Every PR runs simulated calls (dropped sockets, slow tools, hangups) in CI, and real-model tests run
before each release.

After each call you get a short summary on WhatsApp, and every call keeps a record with its
transcript and timing (hermes whatsapp-voice calls).

Quick start

Requirements

  • Hermes >= 0.21.6 on Linux or macOS.
  • A separate WhatsApp number for the bot: Hermes's WhatsApp bot mode, or any spare number. In
    self-chat mode the bot is your own number, and you can't call yourself.
  • Gemini set up in Hermes with an API key. The plugin reuses the key of Hermes's Gemini provider
    (GOOGLE_API_KEY, else GEMINI_API_KEY), so there is nothing extra to enter. Without one,
    hermes model (choose Gemini) adds it. Google login (Cloud Code OAuth) does not work for the
    Live API. The live models have a free tier, but Google may use free-tier data. On the paid tier a
    call costs roughly 3 to 5 cents a minute with the default settings (estimated from real calls; each
    call's token use is in its metrics).
  • Optional, but needed for the voice agent to reach Hermes: the Hermes
    API server enabled.
    It must have an API_SERVER_KEY.

Install

Let your agent do it. Paste this into Hermes (or any coding agent on that machine):

Set up live WhatsApp voice calls for my Hermes by following this runbook step by step:
https://raw.githubusercontent.com/ashwanthbalakrishnan5/hermes-whatsapp-voice/main/skills/setup/SKILL.md

The runbook is written for agents, and it stops to ask you only for your
number and to scan a QR code. After installing, Hermes can also load it as
hermes-whatsapp-voice:setup.

Or by hand:

hermes plugins install ashwanthbalakrishnan5/hermes-whatsapp-voice --enable

1. Set your number

This is the only number that will ever be called, and the only caller that will be answered.

hermes config set plugins.entries.hermes-whatsapp-voice.settings.owner_number +15551234567

2. Link the sidecar to the bot's WhatsApp number (once)

Easiest: open the Hermes dashboard, go to the WhatsApp Voice tab, click Pair with
WhatsApp
, and scan the QR from the bot's phone (WhatsApp > Linked devices > Link a device).
From a terminal instead:

hermes whatsapp-voice pair                        # shows a QR code
hermes whatsapp-voice pair --phone +15550001111   # the BOT's number; prints a pair code

The first run also fetches the sidecar binary for your platform from this repo's GitHub release.
You don't need Rust or any other toolchain. The download is checked against checksums pinned in
this repo (sidecar/release-checksums.txt). If the GitHub CLI is installed, its GitHub build attestation is checked too, which
proves it was built from this repository by its release workflow. Prebuilt binaries cover linux
amd64/arm64 and macOS arm64. To build it yourself instead (Rust 1.94+, cmake, a C compiler), run
hermes whatsapp-voice install --from-source.

Why a separate link when Hermes is already logged in to WhatsApp? WhatsApp lets each linked
device keep only one live connection. Sharing Hermes's WhatsApp session would make the two
connections knock each other offline, and Hermes's messaging would break. Only the bot's phone
can approve a new device, so the link happens once. It uses one of WhatsApp's four linked-device
slots.

3. Enable the Hermes API server (recommended)

# in Hermes's .env (~/.hermes/.env by default)
API_SERVER_ENABLED=true
API_SERVER_KEY=<a long random string>

Restart the gateway after this.

4. Run the sidecar

hermes whatsapp-voice serve      # foreground, to try it out
hermes whatsapp-voice service    # prints a systemd user unit (Linux) or launchd plist (macOS)

To keep it running, save the printed unit and enable it as the comments in it describe. Check it
with:

hermes whatsapp-voice status
hermes whatsapp-voice call "Testing the new voice line"

Using it

Call your bot's number from your phone. Or ask Hermes to call you:

Call me at 7:30 tomorrow about the flight check-in, and if I don't answer, set an urgent reminder.

whatsapp_call_owner works from cron runs too, so a scheduled job can escalate to a phone call:

hermes cron create "0 9 * * 1-5" \
  "If anything on my calendar today is marked urgent, call me about it with whatsapp_call_owner."

The tool waits until the call is answered, declined or unanswered, and returns that status. On
no_answer/rejected/failed it tells the agent to use another channel.

How it works

 your phone ──WhatsApp call──▶ bot number ──▶ hermes-wa-voice (linked device, Rust)
                                                 │  call audio (16 kHz in, 24 kHz out, resampled)
                                                 ▼
                                            Gemini Live (speech-to-speech)
                                                 │  ask_hermes(...) tool calls
                                                 ▼
                                            Hermes API server (/v1/runs)
  • hermes-wa-voice is a small sidecar built on
    whatsapp-rust. It links to the bot's WhatsApp number
    as one more linked device (WhatsApp allows four), answers calls from your number only, and places
    calls to your number only.
  • Call audio is bridged to Gemini Live (gemini-3.8-live by default) for natural, interruptible
    speech-to-speech.
  • The voice model gets two tools:
    • ask_hermes, which runs a Hermes turn through the API server and speaks the result when it
      arrives;
    • end_call, which hangs up after a goodbye.
  • The Hermes plugin adds two agent tools: whatsapp_call_owner(reason, details?) and
    whatsapp_call_status(call_id?). It also adds a hermes whatsapp-voice command for setup.

Configure

Everything is configurable from the WhatsApp Voice tab in the Hermes dashboard, the Desktop
app's plugin settings, or hermes config set. That covers the voice, the model, your own
instructions (language, tone, call length), and any Gemini Live option via live_config. The
voice takes its name and personality from your own Hermes. Full reference:
docs/configuration.md.

What this plugin does that you should know about

  • Long-running process. The sidecar runs as a separate process that you start (serve, or the
    systemd/launchd unit). The plugin itself only talks to it over loopback HTTP, authenticated with a
    random token stored in the plugin's data directory.

  • Stored credentials. The sidecar's WhatsApp linked-device session is stored at
    <hermes home>/plugin-data/hermes-whatsapp-voice/whatsapp.db (the folder is private, mode 700).
    Anyone with that file can act as that linked device. Unlink it any time from the bot's phone
    (Linked devices).

  • Network calls.

    • WhatsApp servers (signaling and call media relays).
    • generativelanguage.googleapis.com (Gemini), using the Gemini key Hermes already has. It
      receives call audio during calls, plus, as text: the persona briefing (Hermes's name,
      personality and what it knows about you), the reason and details of an outgoing call, and the
      results of ask_hermes requests.
    • Your local Hermes API server, using API_SERVER_KEY, for ask_hermes (which runs a full
      Hermes turn with your tools), the persona briefing (fetched at startup and after each call),
      and the post-call summary. That summary run asks Hermes to note anything worth remembering, so
      it can write to Hermes's memory.
    • github.com, to download the sidecar binary on first pair/serve/install (or from the
      dashboard's Pair button).
    • If you change voice_api_url, that address instead of Gemini's: it gets the Gemini key and
      the call audio.

    Nothing else, and no telemetry.

  • Who it talks to. It only answers calls from owner_number and only calls owner_number.
    Neither tool takes a destination parameter, so a prompt injection cannot make it call anyone else.
    Calls from other numbers are left alone, so the bot's other devices can still take them.

  • Commands it runs.

    • The dashboard tab's backend (inside the Hermes dashboard, behind its login): hermes config set for this plugin's settings (only keys declared in plugin.yaml); the sidecar's pair;
      and systemctl --user restart or launchctl kickstart for the sidecar service.
    • The CLI: gh attestation verify when the GitHub CLI is logged in, and cargo build for
      install --from-source.
    • The setup skill (only when an agent follows it) appends API_SERVER_ENABLED and a generated
      API_SERVER_KEY to Hermes's .env if they're missing.
  • Chat-session mode (context_mode: core_session, off by default). serve also runs a
    loopback service (context_listen, same token) inside Hermes's own process. For each call it
    sends Gemini your WhatsApp chat's system prompt, recent history (history_chars) and the tool
    schemas of voice_tools, runs the voice's tool calls through Hermes in that chat (only tools
    listed in voice_tools), and writes the call into the chat. It never answers Hermes's approval
    prompts: a command that needs approval is denied, and the voice tells you to ask again in the text
    chat. It relies on Hermes internals listed in CORE_PATCHES.md.

  • Recordings (record_calls, off by default) save your side of each call as a WAV file in the
    plugin's private data folder. Nothing is uploaded; delete them any time.

  • Secrets are read through Hermes (get_secret) and passed to the sidecar in its environment.
    The plugin never reads .env itself. The sidecar's local API only binds to a loopback address.

Caveats

  • WhatsApp calling here uses an unofficial, reverse-engineered protocol (via whatsapp-rust).
    WhatsApp updates can break it, and automated use may violate WhatsApp's Terms of Service. Use a
    number you can afford to lose.
  • One call at a time. Group calls and video are not supported.
  • A Gemini Live connection lasts about 10 minutes. The sidecar resumes the session transparently, but
    a resume can fail and end a long call.

Development

python -m pip install -r requirements-dev.txt
ruff check . && python -m pytest tests/ -q
cd sidecar && cargo test

Testing calls

cargo test runs whole calls through the real call code (sidecar/src/calls/sim.rs) against a fake
phone, a fake Gemini Live server and a fake Hermes. The fakes speak the real wire formats, so each
test scripts a situation that has broken calls before: a goAway or a dropped socket mid-call, a
slow or cancelled tool, a hangup, a silent owner, the chat session being unavailable. It needs no
keys, costs nothing and runs in CI on every PR.

Every call (real or simulated) records how it went in GET /calls under metrics: time to the
first audio, each reply delay, the longest silence, tool calls in a row without speaking, token
usage and who ended the call. After a real call that went wrong, read those first.

The real model is tested only on request, since it costs money (a few cents a run):

cd sidecar
GEMINI_API_KEY=... cargo test live_model -- --ignored --nocapture
# HWV_MODEL=<model> to try another model; HWV_TEST_AUDIO=question.wav (16 kHz mono) to also
# play a spoken question, e.g. one saved with record_calls.

Before a release, also make one real call from your phone and check its metrics: WhatsApp's
protocol itself can only be tested with a real phone.

Layout: the repo root is the Hermes plugin (plugin.yaml, __init__.py, tools.py, cli.py,
sidecar_client.py), and sidecar/ is the Rust sidecar. Tagging vX.Y.Z builds attested release
binaries (.github/workflows/release.yml). Then commit the release's SHA256SUMS as
sidecar/release-checksums.txt. Keep version in plugin.yaml and sidecar/Cargo.toml in step
with the tag.

Contributing

Bug reports, fixes and features are welcome: see CONTRIBUTING.md. Issues labelled
good first issue are a good place to start.
Security issues go through private reporting, not public issues.

Star history

Credits

  • whatsapp-rust (MIT) does the WhatsApp protocol and the
    call media work.
  • Gemini Live provides the voice.

License

MIT

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

Developer Mode

Explore built-in Hermes toolsets and actions.

HermesAgent

Developer?

Create a Hermes extension for Desktop or agent workflows.

Developer Section