guava is the primary interface for working with Guava. It handles authentication, project scaffolding, local runs, deployment, phone number provisioning, conversation history, org management, outbound campaigns, and WebRTC widget codes. Projects can be written in Python or TypeScript/Node — the base image you pick determines the runtime. The Guava SDK is included in the project template.
Quick reference
Targeting a project
Most commands take an optional positional argument that tells the CLI which project to act on. If you omit it, the CLI uses the current directory — so running commands from inside your project folder always works. There are two flavors:
The difference:
[dir]-style commands need your project files on disk (they build, read config, or run code locally), so they only accept a path. [target]-style commands act on an already-deployed project, so they also accept a project ID — letting you manage a deployment from anywhere without the source checked out.
A
[dir] argument that isn’t a real directory silently falls back to the current directory. Double-check the path if a command seems to act on the wrong project.Command reference
guava login
Authenticates the CLI against Guava via OAuth. Opens your default browser to a sign-in page and stores the resulting credentials locally so subsequent commands can call the API on your behalf.
guava logout
Clears stored credentials. No parameters.
guava create
Scaffolds a new Guava project on disk. The base image sets the runtime: Python (python-sandbox:*) generates main.py + pyproject.toml and installs dependencies with uv sync (unless --skip-deps is set); TypeScript/Node (node-sandbox:*) generates main.ts + package.json, which you install yourself with npm install (or pnpm install / yarn install). Either runtime also writes README.md, a guava-docs.md reference for AI coding assistants, and the guava.toml config. For outbound projects it also creates the matching campaign on the server.
guava create runs in interactive mode by default — the CLI prompts for anything you don’t pass. In non-interactive mode (when stdin is not a TTY, or when you pass --no-prompt), there are no prompts: required flags must be supplied or the command errors, and optional flags fall back to documented defaults.
Positional argument
Non-interactive mode flags — in interactive mode you can omit any of these and the CLI will prompt; in non-interactive mode they behave as noted under “Required”.
Inbound-only (
--direction inbound):
Outbound-only (
--direction outbound):
Passing an inbound-only flag with
--direction outbound (or vice-versa) will result in an error.guava run
Runs the agent locally on your machine. The runtime comes from guava.toml’s base_image; if there’s no config, it’s inferred from your manifest file (pyproject.toml → Python, package.json → Node). Python projects run uv run main.py; Node projects run node --import tsx main.ts (requires node_modules — run npm install first). Anything after -- is forwarded straight to your entry point, which is useful for one-off flags your agent reads from argv.
guava update
Edits the fields in guava.toml — project name, base image, and instance tier — without re-scaffolding the project. Use this whenever you want to bump the Python sandbox version or move between tiers.
Like create, guava update runs in interactive mode by default and prompts for each field, showing the current value as the default. In non-interactive mode (--no-prompt or no TTY), no prompts run and any field you don’t pass simply keeps its current value — nothing is required.
Non-interactive mode flags — in interactive mode the CLI prompts for each of these; in non-interactive mode, any flag you omit leaves the existing value unchanged.
guava deploy update has been removed. Running it will display a message directing you to use guava update instead.guava self-upgrade
Updates the guava binary itself to the latest released version. No parameters.
guava deploy up
guava deploy down
guava deploy purge
Permanently deletes a project’s deployments, container images, uploaded bundles, build history, and database records. Call logs and conversation history are retained. Unlike deploy down (which just stops the running sandbox), this cannot be undone.
guava deploy scale
Scales an already-running deployment up or down by setting the desired pod-replica count. Use this to handle traffic spikes or scale back when idle without redeploying.
guava deploy status
guava deploy logs
guava deploy build-logs
guava deploy list
Lists all deployments for the authenticated user as a table (NAME, STATUS, REPLICAS, PROJECT ID). ls is an alias for list.
guava deploy changed
Checks whether project files have changed since the last deploy.
guava numbers list
Lists every phone number your active org owns. ls is an alias for list. No parameters.
guava numbers buy
Purchases a phone number and stores it in
guava.toml. On the next deploy, the number is injected into your sandbox as the GUAVA_AGENT_NUMBER environment variable.
guava conversations list
Lists past conversations (calls) for your active org, newest first. All filters are optional and can be combined; results are paginated via --after.
guava conversations get | transcript | recording
Inspect a single past call by ID — get returns the metadata and outcome, transcript returns the speaker-by-speaker text, and recording downloads the raw audio.
All take a positional call_id. recording also accepts -o, --output <path> (default <call_id>.wav).
guava org
Lists the orgs you belong to and lets you switch which one the CLI acts on. The active org determines which numbers, deployments, conversations, and campaigns the other commands see.
guava campaigns
Manage outbound campaigns from the CLI: inspect their state, pause/resume/delete them, and upload contact lists. Each campaign is referenced by its code, a gcmp--prefixed identifier (e.g. gcmp-xxxxxxxxxxxxxxxxxxxx) shown by guava campaigns list or on the dashboard.
add-contacts arguments
Every contact must include a
phone_number field in E.164 format (e.g. +15555550100).
guava webrtc create-code
Creates a WebRTC code (grtc-...) and prints it to stdout. Attach an agent to it with listen_webrtc, then call it from the browser. Use --ttl for a code that auto-expires; omit it for one that stays valid indefinitely.
guava widget
Mints a short code that lets a browser-based WebRTC widget connect to your deployed agent. Use --ttl for a code that auto-expires; omit it for one that stays valid indefinitely.
guava say
Generates sample text-to-speech (TTS) audio from input. Allows testing for pronunciation and spelling outside of a live agent call. Returns a link to generated audio.
The guava.toml file
Every Guava project has a guava.toml file in its root directory, created by guava create or guava deploy up. It stores the project’s configuration and deployment state. The CLI reads it to identify the project and track deployments.
Projects created with CLI versions 0.29.0 and lower will have a JSON
.guava file. The CLI will automatically migrate to the new guava.toml on the next save.guava.toml
Instance tiers
Base images & dependencies
When you create a project, you choose a base image. During deployment, your code and dependencies are built on top of this image to produce the final container that runs in the cloud. You can change the base image later withguava update.
The base image also determines the project runtime: python-sandbox:* images run Python, node-sandbox:* images run TypeScript/Node.
Available base images:
python-sandbox:3.14python-sandbox:3.13python-sandbox:3.12python-sandbox:3.11python-sandbox:3.10node-sandbox:26node-sandbox:24node-sandbox:22
Dependency detection
During the build, the system installs your dependencies automatically based on the files present in your project root. It checks each set of files in order and uses the first match. Python:
Node / TypeScript:
For local Node runs (
guava run), also run npm install (or pnpm install / yarn install) first so node_modules exists.
Troubleshooting
- “Please run
guava login” — Your session has expired or you haven’t logged in yet. Runguava loginto re-authenticate. - “No main.py / main.ts found” —
deploy uprequires an entry point in your project directory (main.pyfor Python,main.tsfor Node). Make sure you’re running the command from the right folder. - Deploy didn’t pick up my changes — If nothing changed since the last deploy, the build step is skipped automatically. Use
guava deploy up --rebuildto force a full rebuild. - Build failed — Run
guava deploy build-logsto see the full build output and diagnose the issue. - Missing files in deployment —
deploy upexcludesguava.toml, hidden files/dirs,__pycache__, andnode_modulesfrom the upload. Make sure your files aren’t in an excluded path. - Dependencies not installing — The build system auto-detects dependencies from your manifest/lockfiles. For Python that’s
pyproject.toml,requirements.txt,uv.lock,poetry.lock, orrequirements.in; for Node it’spackage.json,package-lock.json,pnpm-lock.yaml, oryarn.lock. Make sure one is present in your project root. For local Node runs, also runnpm installsonode_modulesexists.