Documentation

A0 CLI Connector

Connect Agent Zero to your terminal, local project files, and approved browser while Agent Zero stays safely sandboxed in Docker.

  • Install A0 CLI on the host machine
  • Connect to the running Agent Zero Web UI
  • Work with local files and terminal controls
  • Use Bring Your Own Browser when a browser profile should stay on your computer

Install A0 CLI

Run the installer on your host computer, not inside the Agent Zero container.

macOS / Linux

curl -LsSf https://cli.agent-zero.ai/install.sh | sh

Windows PowerShell

irm https://cli.agent-zero.ai/install.ps1 | iex

Open It And Connect

  1. Make sure Agent Zero is already running.
  2. Run a0 on your host machine.
  3. If Agent Zero is on the same computer, click Connect in the host picker.
  4. If Agent Zero is somewhere else, choose Enter URL manually and paste the Web UI address.
  5. Open or create a chat and confirm you can talk to Agent Zero from the terminal.
A0 CLI host picker

Useful launch options

a0 --host http://localhost:32080
a0 --no-auto-connect
a0 --no-docker-discovery

You can also set AGENT_ZERO_HOST=http://localhost:32080 before launching a0.

Use The Connected Shell

After connecting, the shell shows the Agent Zero address, active project, selected model, local folder, Agent Zero workspace, and message box.

A0 CLI connected shell
KeyAction
F3Toggle host file read/write access for the active CLI session.
F4Toggle remote code execution through the active CLI session.
F5Clear the visible chat log.
F6Open the chat list.
F7Nudge the active agent run.
F8Pause the active agent run.
Ctrl+POpen the command palette. Use this if your terminal captures function keys.
A0 CLI command palette

Slash Commands

Type a slash command in the message box and press Enter. Most commands are also available from Ctrl+P.

CommandUse it for
/newCreate a new empty chat.
/chatsList previous chats.
/projectOpen the project menu or switch directly with /project <name>.
/profilePick or set the active Agent Profile.
/presetsChoose a model preset.
/modelsEdit the active models.
/browserCheck or change Browser mode.
/attachAttach local image files to the next message.
/pause, /resume, /nudgeControl the active run.

Bring Your Own Browser

Bring Your Own Browser lets Agent Zero use Chrome, Edge, or Chromium on your computer through A0 CLI. Use it when a page, login, or browser profile should stay on your machine. Once A0 CLI is connected and host browser mode is active, you can start and steer the host browser from either A0 CLI or the Agent Zero Web UI.

  1. Keep A0 CLI connected to the Agent Zero chat.
  2. In Browser settings, choose Bring Your Own Browser.
  3. If you want Agent Zero to use an already-open Chrome window, open that browser first.
  4. Go to chrome://inspect/#remote-debugging.
  5. Enable Allow remote debugging for this browser instance.
Chrome remote debugging setting Chrome remote debugging allow prompt

Important: remote debugging grants control of that browser session, including saved data, cookies, site data, and navigation. Use it only with trusted Agent Zero instances and browser windows you intend Agent Zero to control.

Helpful browser commands

/browser status
/browser host on
/browser relaunch
/browser container
A0 CLI Browser commands A0 CLI Browser status A0 CLI host browser mode

/browser privacy reminds you how page text and screenshots are allowed to flow. Visit the Web UI to change the policy to local models only or be warned when using cloud LLMs. Use /browser relaunch when you want to manually open or relaunch the host browser and trigger the browser approval prompt.

Give Setup To Another Agent

If another agent is helping, paste one short setup brief instead of a long checklist.

Set up the A0 CLI connector for Agent Zero on this machine using the a0-setup-cli Skill.

Troubleshooting

  • Nothing appears locally: enter the Agent Zero web address manually or set AGENT_ZERO_HOST.
  • You installed from inside Docker: install A0 CLI on the host machine instead. Agent Zero stays in Docker.
  • Function keys do nothing: use Ctrl+P; some IDE terminals capture function keys.
  • Connector support is missing: update Agent Zero first.
  • Host browser cannot start: keep A0 CLI connected, verify Browser location is Bring Your Own Browser, and run /browser status.