Voice. Untethered.

Build voice agents that run all models locally. Currently available in preview for M4 Apple silicon devices. Free for non-commercial use.

Install Guava Edge

Install the SDK and start building.

Everything lands in ~/.guava/ — binaries, models and an isolated Python environment. Around 4 GB in total.

  1. 1
    Install the CLIVia Homebrew
    brew install goguava-ai/tap/guava
  2. 2
    Install edgeDownloads the on-device stack
    guava edge install
  3. Then create an agent and run it. The first run installs its dependencies:
  4. 3
    Create an agentScaffolds an on-device agent
    guava create --edge my-agent
  5. 4
    Run itStarts the agent on this machine
    cd my-agent && guava run --edge

Troubleshooting

  • No Homebrew? curl -fsSL https://goguava.ai/install.sh | sh installs to ~/.local/bin/guava.
  • CLI asks you to log in or says “could not check EULA status”? brew upgrade guava (or guava self-upgrade for the install script) updates it.
Before you start

What edge needs.

Hardware

Edge runs the whole stack on the Neural Engine and GPU, so the chip is the requirement.

  • Apple Silicon M4 or later
  • macOS, 16 GB memory or more
  • ~4 GB free disk

What gets installed

Self-contained under ~/.guava/, and removable by deleting it.

  • The edge server and audio binaries
  • Speech, language and voice models
  • An isolated Python 3.13 environment

Licence

Free for non-commercial use. The installer asks you to agree with your email address the first time you run it.

Older Macs. M2 and earlier are not supported. M3 runs with degraded performance.

How it differs

No phone line. Wake triggers instead.

Edge agents are not dialled — they wake. Say “Hey Guava”, press Enter, or write your own trigger for a button, a sensor, or anything else that can block until something happens. Everything else is the SDK you already know. SDK documentation

@agent.on_wakeword
@agent.on_wakeword(model: str | None = None)

Starts a call when someone says the wakeword. Detection runs in-process on the local microphone, so the audio it listens to never leaves the machine. The bundled model answers to “Hey Guava”.

Parameters

modelstroptional
Path to a nanowakeword-compatible ONNX model. Defaults to the bundled “Hey Guava” model.

Behaviour

  • The model loads when the decorator runs, so a bad path fails at startup rather than at the first wake.
  • A detection needs three consecutive high-confidence frames and then cools down for 1.5 s, so one utterance starts one call.
  • Listening pauses while a call is active and resumes when it ends.
import guava

agent = guava.Agent(name="Nova", purpose="Help the user.")

@agent.on_wakeword  # "Hey Guava"
def on_wake(call: guava.Call):
    call.set_task("help", objective="Ask how you can help.")

# Or answer to your own wakeword:
# @agent.on_wakeword(model="./models/hey_nova.onnx")

agent.listen_for_wake()
@agent.on_press_enter

Starts a call when Enter is pressed in the terminal running the agent. The simplest trigger, and the one to reach for while developing.

Parameters

None. Works with or without parentheses.

Behaviour

  • Prints “Press Enter to start a call...” and prints it again after every call.
  • Needs an interactive terminal. If stdin is closed, the trigger stops and listen_for_wake() returns. Under a service manager, use on_wakeword or on_wake instead.
  • Enter pressed during a call is ignored.
import guava

agent = guava.Agent(name="Nova", purpose="Help the user.")

@agent.on_press_enter
def on_wake(call: guava.Call):
    call.set_task("help", objective="Ask how you can help.")

agent.listen_for_wake()
@agent.on_wake(*, trigger: Callable[[], None])

Starts a call when your own function returns. Use it for a hardware button, a sensor, a timer, a message queue: anything that can block until it is time to talk.

Parameters

triggerCallable[[], None]required
Blocks until the agent should wake, then returns. Keyword-only; its return value is ignored.

Behaviour

  • Runs on a background thread. It is called once at startup and again after each call ends, never while a call is active.
  • If trigger raises, the error is logged and the trigger stops for the rest of the process. Handle errors you expect to recover from inside it.
  • Always called with parentheses: a bare @agent.on_wake is an error.
import time
import guava

agent = guava.Agent(name="Fern", purpose="Look after the houseplants.")

def wait_for_dry_soil():
    while read_moisture() > 30:  # your sensor read
        time.sleep(60)

@agent.on_wake(trigger=wait_for_dry_soil)
def on_wake(call: guava.Call):
    call.set_task("water", objective="Tell the user the plant needs water.")

agent.listen_for_wake()

The handler

Every trigger calls its handler with a guava.Call once the call connects, exactly like on_call_start. Set tasks, read variables, end the call: the same API as the cloud.

Combining triggers

Register any mix, or stack decorators on one handler. The first trigger to fire starts the call, and the rest are ignored until it ends.

listen_for_wake()

Starts every registered trigger and blocks. Pass variables={…} to seed each call. All of these are edge-only and raise RuntimeError outside guava run --edge.

Try it

No agent yet? Run one of ours.

Fern is a house plant that keeps an eye on its soil and asks for water when it gets dry. Off a Raspberry Pi the soil is simulated, so it runs without any hardware.

Press Enter to ask how it's doing, or type water to water it. Read the source

$ pip install guava-sdk
$ python -m guava.examples.edge.plant

[plant] moisture  45% [#########           ] happy
[plant] -> thirsty: soil is dry (29%)

Fern: Hi, it's your plant. My soil's getting a
      little dry, about 29 percent. Can I have
      some water please?

Grace is a barista who takes a coffee order, then reads it back with a price worked out in code, so the agent never makes one up.

Say “Hey Guava” or press Enter to order. Read the source

$ pip install guava-sdk
$ python -m guava.examples.edge.barista

Grace: Hi! What can I get you?
You:   A large latte for Sam, please.

+------------ GUAVA COFFEE ------------+
| SAM                                  |
| large latte                    $5.00 |
+--------------------------------------+

Grace: Great, that's a large latte for Sam.
       That'll be 5 dollars.

Run it on the laptop in front of you.

Free for non-commercial use, no API key, and no data ever leaves the machine.