At a Glance
- Install the Guava CLI with
brew install goguava-ai/tap/guava. - Run
guava run --edgeto install Guava Edge and talk to a demo agent. - Scaffold your own agent with
guava create --edge my-agent. - 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.
Install the CLI
- Homebrew
- Install script
Try the demo
Runguava run --edge outside of an agent project to start the built-in demo.
- Your browser opens the Guava Edge terms of use. Agree with your email address, and the CLI continues on its own.
- 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.
Create an agent
Scaffold an edge project withguava create --edge.
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
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 aguava.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.
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.
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:- Phone numbers, SIP, WebRTC, and campaigns. Use
listen_for_wake()instead oflisten_phone,listen_webrtc,listen_sip, orcall_phone. transfer,reach_person,set_voicemail_action, and DTMF.- SMS and the REST APIs.
- Helpers that call Guava’s hosted API:
DocumentQA, the intent helpers, andDatetimeFilter. If you need retrieval or an LLM, run one locally.
Updating and uninstalling
guava run --edge only installs what’s missing. To update the Guava Edge binaries and models, run:
~/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, orguava self-upgradeif 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.
RuntimeErrorwhen starting the agent. Run the agent withguava run --edgeinstead ofpython main.py.