Skip to main content
With local mode, the agent itself runs on your own machine. Client.local() returns a client with the same sessions API as the cloud.

Why local mode

  • Private. The agent and its tools run on your machine; only model calls go to H. With your own model server, nothing leaves it.
  • No startup wait. No cloud agent to start: a session begins working right away.
  • Faster tool calls. Each click, keystroke, and screenshot runs next to the agent, with no round trip through H’s cloud.
With local browser or desktop control, only the browser or desktop is yours and the agent runs on H’s platform. In local mode, the agent runs on your machine too.
1

Install the SDK

Install the SDK with the driver for the environment your agent uses: browser for a local browser, desktop for a local desktop.
Install
2

Sign in

Model calls go to H with your API key. Sign in once, or set HAI_API_KEY:
CLI
3

Run a session

Pass the agent spec inline. This one drives Chrome on your machine:
Python
The first run downloads the local runtime, about 60 MB. Later runs reuse it.

Limits

Bring your own model

Point local mode at any OpenAI-compatible server, such as Holo4 served with vLLM or llama.cpp. Your H API key is never sent to it.
Python

Next steps

Drive your own browser

The Chrome a local browser drives, and how to bring your own.

Local inference

Serve Holo4 on your own hardware.

Custom tools

Give the agent functions from your own code.

Observe & steer

Watch a run, redirect it mid-task, and read the answer.