Skip to main content

Commands

holo --help lists every command, and holo <command> --help its options.

Global options

Put these before the command, as in holo --json sessions list.

Run

Chat

holo chat, or holo alone, takes --agent, --local, --model-url, --model, --workspace, and --no-sandbox.
  • A session stays open for 10 minutes after each answer.
  • While an agent drives this machine, your typing goes to your apps, so the prompt only listens for Esc twice.
  • With --local, /resume, /live, and /share are off, since they need a cloud session.

Compact

holo compact SESSION_ID (also holo sessions compact SESSION_ID) requests compaction and returns when the API accepts it. It does not wait for the summary or start a new turn. Follow session events for reset_history before sending a message that depends on the compacted context. In chat, /compact uses the current session.

Memories

Memory is hosted and scoped to your organization. Commands use your saved login and the global endpoint options. For set and update, pass - as VALUE to read stdin. --forever keeps the note until deletion; --expires-in MINUTES sets an expiry. Without either, the note is kept until deletion. Every write restarts retention. holo --json memories list includes the full values, total, and page.

Login

Approvals

When the agent holds a tool call for a human decision, holo shows the call and why it waits, then asks you in the terminal. The usual one is a shell command that needs approval. With --json or --quiet, or without a terminal, nobody can answer: the run ends, and --json lists the held calls in pending_approvals. A run from holo mcp ends the same way and tells the host which call waited. To answer from code, send tool approvals.

Shell mode

An agent in shell mode, such as h/holo-code, runs commands on this machine, including mcporter for the MCP tools in ~/.config/hai/mcp.json. This machine decides where and how, and what it sets wins over what the agent asks. The sandbox is on wherever it is installed. On macOS, holo downloads it on your first session in shell mode. On Linux and Windows, install it first.

holo local

Serves this machine to a cloud agent loop. Not --local. Use these commands for a session started elsewhere, such as a registered agent or the web app. Each prints the session ID it serves: set it as the session_id of the agent’s environment for this machine. holo local desktop downscales and recompresses screenshots before upload. The desktop environment’s screenshot_max_width caps width again on the agent’s side, so the smaller limit applies. In an interactive terminal, holo local desktop also stops on Esc twice, with the same desktop permissions. If the kill switch cannot arm, it says so: use holo local stop.

Environment variables

HAI_API_KEY is read from, in order: --api-key, the process environment, then ~/.config/hai/.env. XDG_CONFIG_HOME, when set, replaces ~/.config.

Files

Treat all of these as sensitive. holo sends agents.md and your skills as the agent.instructions and agent.skills overrides. Your own -o overrides win.

Runtime

--local resolves hai-agent-runtime in this order:
  1. hai-agent-runtime on PATH
  2. The managed install under ~/.hai/agent-runtime/bin/<version>/
  3. A sha256-verified download of the pinned version, on first run
holo doctor shows which one it will use.

Troubleshoot

Start with holo doctor. Fix the first failing row. If a coding agent’s run fails, try the smallest version in a terminal:
If that works, the problem is the host: check that holo whoami finds a saved key, and that the host’s MCP env block has the variables you need. The terminal prints each step. Hosts get the same steps as MCP log messages. holo sessions events <session-id> shows a cloud session’s full history. With --local, the runtime logs to ~/.hai/agent-runtime/logs/. Logs can hold anything that was on screen, so read What the agent can see before you share them.