Agent-zero a0-setup-cli
Guide the user through installing and connecting the A0 CLI on the host machine so Dockerized Agent Zero can work on real local files. Use when asked to install A0, set up the CLI connector, connect Agent Zero to local files, or troubleshoot host-vs-container setup confusion.
git clone https://github.com/agent0ai/agent-zero
T=$(mktemp -d) && git clone --depth=1 https://github.com/agent0ai/agent-zero "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/a0-setup-cli" ~/.claude/skills/agent0ai-agent-zero-a0-setup-cli && rm -rf "$T"
skills/a0-setup-cli/SKILL.mdA0 CLI Host Setup
Use this skill to guide the user through installing
a0 on their host machine and connecting it to Agent Zero.
Core Boundary
- Agent Zero stays in Docker or its sandboxed runtime.
installs and runs on the user's host machine.a0- The whole point is to let Agent Zero work on the real files on the user's computer.
Response Flow
1. Ask whether they already tried
Start here:
Have you already tried installing
? If so, what command did you run, where did you run it, and what happened?a0
If they already tried, diagnose that attempt before repeating instructions.
2. Stop container installs immediately
If the user is inside the Agent Zero container,
/a0, docker exec, or another sandbox shell, stop and say:
does not get installed inside the Agent Zero container. Exit to your normal host terminal first. Agent Zero stays in Docker;a0belongs on your machine.a0
Do not keep giving install commands until they are back on the host.
3. Identify the host OS only as needed
If the platform is unclear, ask one short question:
Are you on macOS/Linux shell or Windows PowerShell on the host machine?
Then use the matching installer.
4. Use the installer-first flow
Treat these public installer URLs as placeholders for now. Use them first, but be ready to switch to the manual
uv tool install path if the raw GitHub URL is blocked, private, or unreachable.
macOS / Linux:
curl -LsSf https://raw.githubusercontent.com/agent0ai/a0-connector/main/install.sh | sh
Windows PowerShell:
irm https://raw.githubusercontent.com/agent0ai/a0-connector/main/install.ps1 | iex
The installer will install
uv if needed, then run uv tool install --upgrade <package-spec> for the CLI.
5. Use the manual uv tool install
fallback when needed
uv tool installIf the placeholder installer URL is unavailable, switch to a manual
uv tool install flow instead of stopping.
Public Git fallback:
uv tool install --upgrade git+https://github.com/agent0ai/a0-connector
Local checkout or internal mirror examples:
uv tool install --upgrade /path/to/a0-connector uv tool install --upgrade git+ssh://git.example.com/team/a0-connector.git
If they want to reuse the stock installer with a custom package source, explain that the installer honors
A0_PACKAGE_SPEC.
6. Tell them to run a0
a0After install, the next step is always:
a0
If the command is not found yet, tell them to open a new terminal and run
a0 again.
7. Explain how to connect
Tell the user what to expect:
opens the host picker first.a0- If Agent Zero is running locally,
may discover it automatically.a0 - If not, the user can enter the Agent Zero web URL manually in the custom URL field.
- The custom URL can be either a normal address with a port, such as
, or a tunnel URL.http://localhost:50001 - For Flare Tunnel, tell the user to open
, clickSettings > External Services > Flare Tunnel
, then copy and paste the HTTPS URL intoCreate Tunnel
exactly as shown.a0 - Tunnel URLs such as
do not need a port appended.https://example.trycloudflare.com
can prefill the target host without bypassing the picker.AGENT_ZERO_HOST
Example:
export AGENT_ZERO_HOST=http://localhost:50001 a0
Tunnel example:
export AGENT_ZERO_HOST=https://example.trycloudflare.com a0
8. Define success clearly
Successful setup looks like this:
starts on the host machine.a0- It connects to the user's Agent Zero instance or reaches the login step.
- The user can open a chat from the terminal.
- Agent Zero can now act on real files on the host through the connector flow while Agent Zero itself still runs in Docker.
Troubleshooting
- If the user says they installed inside Docker or shows
paths, redirect them to the host-machine install./a0 - If
gets a connectora0
, explain that the running Agent Zero build likely does not include the builtin404
support yet and should be updated._a0_connector - If the browser UI works but
does not, remind them the web UI can run without connector support but the CLI cannot.a0 - If Docker discovery does not find the instance, have them enter the exact Agent Zero URL with
, or create a Flare Tunnel inhost:port
and paste that HTTPS URL directly.Settings > External Services > Flare Tunnel
Example Requests And Responses
Example 1
User: "Help me set up the A0 CLI connector."
Respond like this:
- Ask whether they already tried and whether they are on the host machine.
- If the OS is unknown, ask whether they are in macOS/Linux shell or Windows PowerShell.
- Give the matching installer command.
- Tell them to run
.a0 - Explain what the host picker and successful connection should look like.
Example 2
User: "I'm inside the Agent Zero container. How do I install A0?"
Respond like this:
- Stop the flow.
- Explain that
must be installed on the host, not in the container.a0 - Tell them to exit Docker, open a normal terminal on the machine, then continue with the host installer.
Example 3
User: "The raw GitHub installer URL is blocked on our network."
Respond like this:
- Say the public installer URL is only a placeholder path.
- Switch to a manual
flow.uv tool install --upgrade <package-spec> - Offer examples for a local checkout, internal Git host, or the public Git URL if that one works.
- Then tell them to run
and connect to Agent Zero.a0