Skip to main content

How it works

Client.local() gives you the same sessions API as the cloud. Only model calls go to H, plus any cloud browser you use. With your own model server and your own desktop, nothing does, and each action runs next to the agent, with no network round trip. From the terminal, use holo --local. Where the agent loop runs is independent of what it drives: a cloud browser, or your desktop in visual or shell mode, with your Chrome.

Cloud vs local

Get started

Model calls go to H, so it needs an API key.
1

Install

This is for shell mode. For visual mode, use the desktop extra. The agent works in the folder you run the script from, so the environment lives outside it (Workspace). Run the script with ~/.venvs/hai/bin/python agent.py.
2

Run a session

Pass the agent spec inline:
Python
The first session downloads the local runtime once, under ~/.hai/agent-runtime. Later sessions reuse it.

Use your own model server

Run Holo4 on hardware you control. Your H API key is never sent to it, so you need no API key, but cloud environments cannot run. The model server can run on any machine you can reach. Client.local() starts the runtime on this machine: it asks your model server for each step and acts on your desktop.
1

Serve Holo4

On an NVIDIA GPU, follow the vLLM Holo4 recipe (base URL http://localhost:8000/v1). On a Mac, serve the Holo4 GGUF with llama.cpp (base URL http://localhost:8080/v1, tuned flags in macOS):
2

Point the runtime at it

Use the agent from Run a session, with its model set:
Python
With llama.cpp, use http://localhost:8080/v1. From the CLI, pass --model-url and --model to holo --local. Without either, Client.local() and holo read HAI_AGENT_RUNTIME_BASE_URL and HAI_AGENT_RUNTIME_MODEL.

Two model names

The agent’s model is the Holo version you serve: holo4-35b-a3b, holo4-27b, or holo3-1-35b-a3b. It sets the prompt format, so always set it: without it, the agent uses the Holo3.1 format. Inference.self_hosted(model=...) is your server’s own model name.

GPUs on another machine

No API key is sent to your server, so keep it private. Use an SSH tunnel and keep http://localhost:8000/v1:
SSH tunnel

Troubleshooting