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.Install
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.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.
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):Point the runtime at it
Use the With llama.cpp, use
agent from Run a session, with its model set:Python
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’smodel 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 keephttp://localhost:8000/v1:
SSH tunnel