5.6 KiB
Coding Agents and Editors
Agent Zero speaks the Agent Client Protocol (ACP) in both directions:
- Delegate to coding agents. Ask Agent Zero to hand a task to Claude Code, Codex, Pi, OpenCode, GitHub Copilot, Cursor, Grok Build, Antigravity or another Agent Zero. The agent runs on your computer with your own installation, sign-in and plan.
- Use Agent Zero from your editor. Editors that support ACP agents can chat with Agent Zero through A0 CLI.
Delegate to a coding agent
Before you start
You need two things on the same computer:
- A connection to Agent Zero. Open the Instance in
A0 Launcher with Host access on (new local Instances have
it), or run
a0in a terminal and connect it. - The coding agent, installed and signed in. Use it once in your terminal first, so its sign-in and model choice are ready.
| Agent | What it needs on your computer |
|---|---|
| Claude Code | claude, signed in, and Node.js |
| Codex | A Codex sign-in and Node.js |
| Pi | pi with a default model (in /model, press Ctrl+S) and Node.js |
| OpenCode | opencode with a configured provider |
| GitHub Copilot | copilot, signed in |
| Cursor CLI | agent, signed in |
| Grok Build | A Grok Build sign-in and Node.js |
| Antigravity | agy, signed in once in an interactive agy session |
| Agent Zero | a0 connected to another Agent Zero |
Agent Zero starts Claude Code, Codex, Pi and Grok Build through small pinned
adapters that npx downloads on first use. Your own claude and pi do the
work.
Ask for it
Describe the task and name the agent:
Ask Claude Code to make the parser in ~/projects/app accept trailing commas and run its tests.
Agent Zero writes a self-contained brief, runs the agent in that folder and reports back when it finishes, often after checking the result itself.
Expand the step that runs the agent to see what it did: each tool it used, followed by its own report.
- Follow-ups continue the same agent session: "Now ask Claude Code to add a test for empty input."
- Several agents can work at the same time, including two sessions of the same agent.
- Cautious runs: agents work as they would in your terminal. To limit one to reading and editing files in the project folder, say so: "Ask Claude Code to fix it, but only let it read and edit files."
- Other ACP agents work too. Give Agent Zero the agent's ACP command, for
example: "Use Goose over ACP with
goose acpto …". - In the container: to use an agent installed inside Agent Zero instead of on your computer, say "in the Agent Zero container".
Your accounts stay yours
Each agent uses its own installation, sign-in and billing. Agent Zero never signs in for you, reads or copies an agent's credentials, calls a model vendor directly, or switches accounts after a usage limit. When an agent needs a sign-in or reaches a limit, Agent Zero tells you and waits.
Troubleshooting
- "… is not installed": install the agent, or Node.js for the adapters above, and check that its command works in a new terminal.
- "… needs a sign-in": run the agent once in your terminal and sign in, then ask again.
- No connected computer: open the Instance in A0 Launcher, or run
a0and connect it to this Agent Zero. - The agent returns no answer: run it once in your terminal. An expired API key or a missing default model is the usual cause.
- Pi prints its version and skills before every answer: set
"quietStartup": truein~/.pi/agent/settings.json.
Use Agent Zero from your editor
In your editor's ACP agent settings, add an agent whose command is a0 with
the argument acp. For example, in Zed's settings.json:
{
"agent_servers": {
"Agent Zero": {
"type": "custom",
"command": "a0",
"args": ["acp"]
}
}
}
a0 acp connects to the Agent Zero that A0 CLI remembers, or finds a local
one in Docker. For any other instance, or when the editor says it cannot reach
Agent Zero, add "--host", "<your Agent Zero URL>" to args. When the instance asks for a
login, the editor runs a0 acp --login, which signs in and reuses A0's saved
session.
Each editor thread is an Agent Zero chat. The editor shows the mode, model preset and agent profile as session options. Agent Zero reads and edits files in your editor's project, runs commands there, and can use the stdio MCP servers you configured in the editor. Those servers run on your computer, and their commands and keys never leave it.
To change these defaults, open Plugins (the puzzle piece in the sidebar), choose Builtin, and click Config on Agent Client Protocol.
| Setting | What it does |
|---|---|
| Enable ACP | Allows editor sessions for this instance. |
| Default agent profile | Profile for new editor sessions. |
| Editor workspace access | Read and write, or read only. |
| Host code execution | Lets editor sessions run commands and editor MCP servers on your computer. |
| Session history | Lets editors list and resume earlier sessions. |



