1
+---
2
+name: a0-setup-cli
3
+description: 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.
4
+version: 1.0.0
5
+author: Agent Zero Team
6
+tags: ["agent-zero", "a0", "cli", "connector", "docker", "setup", "local-files"]
7
+trigger_patterns:
8
+ - "install a0"
9
+ - "install a0 cli"
10
+ - "set up a0 cli"
11
+ - "set up a0 cli connector"
12
+ - "connect a0 to agent zero"
13
+ - "connect agent zero to local files"
14
+ - "let agent zero work on my local files"
15
+ - "install the terminal connector"
16
+ - "help me set up the a0 cli connector"
17
+ - "install a0 connector"
18
+---
19
+
20
+# A0 CLI Host Setup
21
+
22
+Use this skill to guide the user through installing `a0` on their host machine and connecting it to Agent Zero.
23
+
24
+## Core Boundary
25
+
26
+- Agent Zero stays in Docker or its sandboxed runtime.
27
+- `a0` installs and runs on the user's host machine.
28
+- The whole point is to let Agent Zero work on the real files on the user's computer.
29
+
30
+## Response Flow
31
+
32
+### 1. Ask whether they already tried
33
+
34
+Start here:
35
+
36
+> Have you already tried installing `a0`? If so, what command did you run, where did you run it, and what happened?
37
+
38
+If they already tried, diagnose that attempt before repeating instructions.
39
+
40
+### 2. Stop container installs immediately
41
+
42
+If the user is inside the Agent Zero container, `/a0`, `docker exec`, or another sandbox shell, stop and say:
43
+
44
+> `a0` does not get installed inside the Agent Zero container. Exit to your normal host terminal first. Agent Zero stays in Docker; `a0` belongs on your machine.
45
+
46
+Do not keep giving install commands until they are back on the host.
47
+
48
+### 3. Identify the host OS only as needed
49
+
50
+If the platform is unclear, ask one short question:
51
+
52
+> Are you on macOS/Linux shell or Windows PowerShell on the host machine?
53
+
54
+Then use the matching installer.
55
+
56
+### 4. Use the installer-first flow
57
+
58
+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.
59
+
60
+macOS / Linux:
61
+
62
+```bash
63
+curl -LsSf https://raw.githubusercontent.com/agent0ai/a0-connector/main/install.sh | sh
64
+```
65
+
66
+Windows PowerShell:
67
+
68
+```powershell
69
+irm https://raw.githubusercontent.com/agent0ai/a0-connector/main/install.ps1 | iex
70
+```
71
+
72
+The installer will install `uv` if needed, then run `uv tool install --upgrade <package-spec>` for the CLI.
73
+
74
+### 5. Use the manual `uv tool install` fallback when needed
75
+
76
+If the placeholder installer URL is unavailable, switch to a manual `uv tool install` flow instead of stopping.
77
+
78
+Public Git fallback:
79
+
80
+```bash
81
+uv tool install --upgrade git+https://github.com/agent0ai/a0-connector
82
+```
83
+
84
+Local checkout or internal mirror examples:
85
+
86
+```bash
87
+uv tool install --upgrade /path/to/a0-connector
88
+uv tool install --upgrade git+ssh://git.example.com/team/a0-connector.git
89
+```
90
+
91
+If they want to reuse the stock installer with a custom package source, explain that the installer honors `A0_PACKAGE_SPEC`.
92
+
93
+### 6. Tell them to run `a0`
94
+
95
+After install, the next step is always:
96
+
97
+```bash
98
+a0
99
+```
100
+
101
+If the command is not found yet, tell them to open a new terminal and run `a0` again.
102
+
103
+### 7. Explain how to connect
104
+
105
+Tell the user what to expect:
106
+
107
+- `a0` opens the host picker first.
108
+- If Agent Zero is running locally, `a0` may discover it automatically.
109
+- If not, the user can enter the Agent Zero web URL manually.
110
+- `AGENT_ZERO_HOST` can prefill the target host without bypassing the picker.
111
+
112
+Example:
113
+
114
+```bash
115
+export AGENT_ZERO_HOST=http://localhost:50001
116
+a0
117
+```
118
+
119
+### 8. Define success clearly
120
+
121
+Successful setup looks like this:
122
+
123
+- `a0` starts on the host machine.
124
+- It connects to the user's Agent Zero instance or reaches the login step.
125
+- The user can open a chat from the terminal.
126
+- Agent Zero can now act on real files on the host through the connector flow while Agent Zero itself still runs in Docker.
127
+
128
+## Troubleshooting
129
+
130
+- If the user says they installed inside Docker or shows `/a0` paths, redirect them to the host-machine install.
131
+- If `a0` gets a connector `404`, explain that the running Agent Zero build likely does not include the builtin `_a0_connector` support yet and should be updated.
132
+- If the browser UI works but `a0` does not, remind them the web UI can run without connector support but the CLI cannot.
133
+- If Docker discovery does not find the instance, have them enter the exact Agent Zero URL or set `AGENT_ZERO_HOST`.
134
+
135
+## Example Requests And Responses
136
+
137
+### Example 1
138
+
139
+User: "Help me set up the A0 CLI connector."
140
+
141
+Respond like this:
142
+
143
+1. Ask whether they already tried and whether they are on the host machine.
144
+2. If the OS is unknown, ask whether they are in macOS/Linux shell or Windows PowerShell.
145
+3. Give the matching installer command.
146
+4. Tell them to run `a0`.
147
+5. Explain what the host picker and successful connection should look like.
148
+
149
+### Example 2
150
+
151
+User: "I'm inside the Agent Zero container. How do I install A0?"
152
+
153
+Respond like this:
154
+
155
+- Stop the flow.
156
+- Explain that `a0` must be installed on the host, not in the container.
157
+- Tell them to exit Docker, open a normal terminal on the machine, then continue with the host installer.
158
+
159
+### Example 3
160
+
161
+User: "The raw GitHub installer URL is blocked on our network."
162
+
163
+Respond like this:
164
+
165
+- Say the public installer URL is only a placeholder path.
166
+- Switch to a manual `uv tool install --upgrade <package-spec>` flow.
167
+- Offer examples for a local checkout, internal Git host, or the public Git URL if that one works.
168
+- Then tell them to run `a0` and connect to Agent Zero.