Skip to main content
Guava Edge runs speech recognition, the language model, and text-to-speech on your own Mac. No audio or data leaves the machine, and no API key is needed. Guava Edge is in developer preview, and is free for non-commercial use.

At a Glance

  1. Install the Guava CLI with brew install goguava-ai/tap/guava.
  2. Run guava run --edge to install Guava Edge and talk to a demo agent.
  3. Scaffold your own agent with guava create --edge my-agent.
  4. Run it with cd my-agent && guava run --edge.

Requirements

Guava Edge runs every model on the Mac’s Neural Engine and GPU, so the chip is the main requirement.
  • Apple silicon, M4 or later.
  • macOS with 16 GB of memory or more.
  • About 4 GB of free disk space.
M1 and M2 Macs are not supported. M3 Macs run with degraded performance: expect higher response latency and occasional audio dropouts.
Edge agents use the Python SDK. The TypeScript SDK does not support Guava Edge.

Install the CLI

Try the demo

Run guava run --edge outside of an agent project to start the built-in demo.
The first run installs Guava Edge:
  1. Your browser opens the Guava Edge terms of use. Agree with your email address, and the CLI continues on its own.
  2. The CLI downloads the Guava Edge server and audio binaries, sets up an isolated Python 3.13 environment, and downloads the speech, language, and voice models. This is about 4 GB.
The demo greets you once it’s ready. Say goodbye to end the conversation, press Enter to start another, and press Ctrl-C to quit.

Create an agent

Scaffold an edge project with guava create --edge.
This creates main.py, pyproject.toml, README.md, and guava-docs.md, a reference for AI coding assistants. The generated main.py looks like this:
main.py
Tasks, fields, and handlers work the same way as they do for cloud agents. See Tasks and Field for details.

Run your agent

guava run --edge starts the local Guava Edge server, points the SDK at it, and runs main.py. The first run installs the project’s dependencies, including guava-sdk[wakeword], which can take a few minutes. Say “Hey Guava” or press Enter to start a conversation. When it ends, the agent goes back to waiting.
Always run edge agents with guava run --edge. The wake triggers and listen_for_wake() raise a RuntimeError if you run main.py directly with python or uv run.

Wake triggers

Edge agents don’t take phone calls. Instead, a wake trigger starts a conversation through the local microphone and speaker. Each trigger calls its handler with a guava.Call once the conversation starts, just like on_call_start does for cloud agents. You can register any mix of triggers, or stack several decorators on one handler. The first trigger to fire starts the conversation, and the rest are ignored until it ends.

on_wakeword

Starts a conversation when someone says the wake word. Detection runs on the local microphone, and the bundled model answers to “Hey Guava”.
model is an optional path to a nanowakeword-compatible ONNX model. The model loads when the decorator runs, so a bad path fails at startup instead of at the first wake. Listening pauses during a conversation and resumes when it ends.

on_press_enter

Starts a conversation when you press Enter in the terminal running the agent. This is the simplest trigger to use during development.
This trigger needs an interactive terminal. If stdin is closed, the trigger stops. If you’re running under a service manager, use on_wakeword or on_wake instead.

on_wake

Starts a conversation when your own function returns. Use it for a hardware button, a sensor, a timer, or anything else that can block until it’s time to talk.
trigger runs on a background thread. It’s called once at startup, and again after each conversation ends. If it raises, the error is logged and the trigger stops for the rest of the process, so handle any errors you expect to recover from inside it. on_wake always takes trigger=..., so a bare @agent.on_wake is an error.

listen_for_wake

agent.listen_for_wake() starts every registered trigger and blocks. Pass variables={...} to seed each conversation’s variables, then read them with call.get_variable.
If no triggers are registered, listen_for_wake() logs a warning and returns immediately.

Features not available on Guava Edge

These are cloud features, and don’t work in edge agents: The on-device models are smaller than the ones in the cloud, so short, concrete task objectives and checklists matter more here.

Updating and uninstalling

guava run --edge only installs what’s missing. To update the Guava Edge binaries and models, run:
Guava Edge installs everything into ~/Library/Application Support/.guava/. Delete that folder to uninstall.

Troubleshooting

  • Asked to log in, or seeing “could not check EULA status”. Your CLI is out of date. Run brew upgrade guava, or guava self-upgrade if you used the install script.
  • The server fails to start. Guava Edge uses ports 8080 and 7010. Check that another Guava Edge server, or another app, isn’t already using them.
  • RuntimeError when starting the agent. Run the agent with guava run --edge instead of python main.py.