Shell mode
The agent works by command. It runs code, edits files, and drives apps and your Chrome from the same shell.
Visual mode
The agent works by sight. It looks at the screen, clicks, and types. The default mode.
Shell mode
The agent gets a shell on your machine. It runs commands, edits files, installs what a task needs, and starts tests and servers. When something only shows in a window, it drives the screen and your Chrome from the same shell.1
Install
2
Create the agent, once
3
Run it from your project
HAI_SHELL_WORKSPACE is the folder the agent works in. Set it the same way when you start Python.On macOS, the first session asks for desktop permissions. To stop the agent, press Esc twice, or run holo local stop in any terminal.4
Answer when it asks
holo stops before each command that needs approval: y approves, a approves and always allows, n denies. From Python or the API, answer from code.What the agent can do
- Run commands, each with a timeout. A server or a watcher keeps running in the background.
- Read, write, and edit files, with its file tools or with commands.
- Look at an image or a screenshot.
- Drive apps and your signed-in Chrome with
cua, a command line it runs in the shell. In Chrome it opens its own tab and leaves yours alone. - Send you a file as an attachment. The file also stays on your disk.
Settings
"not_required"), commands are sandboxed where the machine has the sandbox and run as you where it does not ("if_available"), and the three lists are empty.
Your machine has the last word. Set these before you start holo or Python:
Workspace
The agent works in one folder: a new one under~/hai/ for each session, or the one HAI_SHELL_WORKSPACE names.
- Files you attach to a message land in
files/in the workspace. - With approvals or the sandbox on, the file tools only act in the workspace, and never inside a
.gitfolder. - With neither on, the agent reaches whatever you can.
Approvals
With"command_approval": "required", the agent asks before each command, except:
- The agent’s
allowed_commands. - Commands you chose to always allow on this machine. They are saved in
~/.config/hai/allowed-commands, which starts withcua, the command that drives your screen.
git status allows git status --short, and not git stash. In a chain with &&, ;, or |, every command must be allowed. $(...), backticks, subshells, and redirection to a file always ask.
Answer
A command that waits shows inpending_approvals with its reason, and the session status is awaiting_tool_results. Approving runs it once. Denying tells the agent why, so it can try something else.
call_id is the held call’s tool_req.id. If nobody can answer, the run ends. That is the case for holo --json, holo --quiet, a pipe, and a coding agent. A command still waiting when the session ends is denied.
Sandbox
On macOS, every command runs inside Anthropic’s sandbox-runtime. The SDK downloads it on your first shell session: 41 MB, under~/.hai/sandbox-runtime. If the download fails, commands run as you, with a warning at each session.
Inside it, commands can:
- Write in the workspace, and in their own temp and cache folders.
- Read everything you can, except SSH, cloud, npm, pip, and GitHub CLI credentials, the keychain, Chrome’s profile, shell history, and environment variables that look like tokens.
- Reach
pypi.org,files.pythonhosted.org, andregistry.npmjs.org. - Use git in an existing repository.
git init,git clone, and config changes are blocked.
allowed_domains (a host, or a wildcard such as *.example.com) and writable_folders (absolute, or under ~/) add to that, and what you added is printed when the session starts. With github.com allowed, commands read public repositories over HTTPS. Your SSH keys and git credentials stay unreadable, so the agent commits and you push.
The sandbox does not cover cua. Through your mouse and keyboard, the agent can do whatever you can.
To write your own rules, put them in ~/.config/hai/sandbox.json, in sandbox-runtime’s settings format. The file replaces the built-in rules, and the agent’s allowed_domains and writable_folders with them.
Linux and Windows
The sandbox is off until you install it and turn it on.bubblewrap, socat, and ripgrep. A sandbox.json, or an agent that requires the sandbox, turns it on too.
- A command made only of
cuacalls runs outside the sandbox, so the agent can see and drive your screen. Mixed with anything else,cuastays inside and cannot reach the screen. - On Windows, commands run as a separate
srt-sandboxuser. Each takes several seconds, andcurlcannot open HTTPS.git,pip, andnodecan. sandbox-runtime lists its known limitations.
Visual mode
The agent looks at the screen, clicks, and types. Use it when the task stays in app windows and the agent needs no shell.1
Install
2
Create the agent, once
h/holo-desktop, a ready-made agent.3
Run it
4
Grant desktop permissions
Your terminal, or the app that launches Python, needs desktop permissions. The first session asks for them and stops with an error until you grant them. Run it in a normal desktop session, so it can reach the display.
Settings
settle_s takes 0 to 10 and defaults to 0.5. screenshot_max_width takes 1 to 1920 pixels, defaults to 1920, and never upscales. lazy defaults to False: the desktop connects when the session starts, with a first screenshot.
The Python SDK and holo set session_id, the desktop’s command channel. Set it yourself only to connect from another client.
Limits
Both modes run on macOS, Windows, and Linux, from the Python SDK and theholo CLI. When a session starts, the SDK opens a connection from your process. The agent’s actions arrive over it and run on your machine. Watch and steer and changes work as in the cloud.
- The agent acts as you. Prefer a dedicated machine over your main one.
- One agent drives a machine at a time. A new session from the same Python process takes over and cancels the earlier one. Another process waits, then fails with
DesktopBusyError. - A run stops after 150 steps or 30 minutes by default.
- When your process exits or the connection drops, its sessions are cancelled.
- What the agent sees, runs, and reads goes to H with the session. See What H receives.
- In shell mode with approvals or the sandbox on, each command runs in a shell of its own. Only files carry over from one to the next.
- The session file endpoints serve cloud browsers. In shell mode the files are on your disk.
holo local desktopshrinks screenshots before upload.
Connect from another client
The Python SDK andholo connect your machine for you, for an inline agent and for one you name. For a session started from TypeScript, the H Platform, or another machine, serve the desktop yourself. Do the same when HAI_AUTO_BRIDGE=0 turns auto-connect off.
CLI
holo local desktop --shell --workspace ~/Projects/app. holo local lists its flags.