ACP Editor Integration
Clawbot Agent can run as an ACP server, letting ACP-compatible editors talk to Clawbot over stdio and render:
- chat messages
- tool activity
- file diffs
- terminal commands
- approval prompts
- streamed thinking / response chunks
ACP is a good fit when you want Clawbot to behave like an editor-native coding agent instead of a standalone CLI or messaging bot.
What Clawbot exposes in ACP mode
Clawbot runs with a curated clawbot-acp toolset designed for editor workflows. It includes:
- file tools:
read_file,write_file,patch,search_files - terminal tools:
terminal,process - web/browser tools
- memory, todo, session search
- skills
- execute_code and delegate_task
- vision
It intentionally excludes things that do not fit typical editor UX, such as messaging delivery and cronjob management.
Installation
Install Clawbot normally, then add the ACP extra:
pip install -e '.[acp]'
This installs the agent-client-protocol dependency and enables:
clawbot acpclawbot-acppython -m acp_adapter
For Zed registry installs, Zed launches Clawbot through the official ACP Registry entry. That entry uses a uvx distribution that runs:
uvx --from 'clawbot-agent[acp]==<version>' clawbot-acp
Make sure uv is available on PATH before using the registry install path.
Launching the ACP server
Any of the following starts Clawbot in ACP mode:
clawbot acp
clawbot-acp
python -m acp_adapter
Clawbot logs to stderr so stdout remains reserved for ACP JSON-RPC traffic.
For non-interactive checks:
clawbot acp --version
clawbot acp --check
Browser tools (optional)
Browser tools (browser_navigate, browser_click, etc.) depend on the
agent-browser npm package and Chromium, which aren't part of the Python
wheel. Install them with:
clawbot acp --setup-browser # interactive (prompts before ~400 MB download)
clawbot acp --setup-browser --yes # accept the download non-interactively
This is the standalone command. The Zed registry's terminal-auth flow (clawbot acp --setup) also offers the browser bootstrap as a follow-up question after model selection, so most users never need to run --setup-browser directly.
What it does:
- Installs Node.js 22 LTS into
~/.clawbot/node/if missing npm install -g agent-browser @askjo/camofox-browserinto that prefix (no sudo needed —npm's--prefixpoints at the user-writable Clawbot-managed Node)- Installs Playwright Chromium, or uses a detected system Chrome/Chromium when available
The bootstrap is idempotent — re-running it is fast and skips work that's already done.
Editor setup
VS Code
Install the ACP Client extension.
To connect:
- Open the ACP Client panel from the Activity Bar.
- Select Clawbot Agent from the built-in agent list.
- Connect and start chatting.
If you want to define Clawbot manually, add it through VS Code settings under acp.agents:
{
"acp.agents": {
"Clawbot Agent": {
"command": "clawbot",
"args": ["acp"]
}
}
}
Zed
Zed v0.221.x and newer installs external agents through the official ACP Registry.
- Open the Agent Panel.
- Click Add Agent, or run the
zed: acp registrycommand. - Search for Clawbot Agent.
- Install it and start a new Clawbot external-agent thread.
Prerequisites:
- Configure Clawbot provider credentials first with
clawbot model, or set them in~/.clawbot/.env/~/.clawbot/config.yaml. - Install
uvso the registry launcher can runuvx --from 'clawbot-agent[acp]==<version>' clawbot-acp.
For local development before the registry entry is available, use a custom agent server in Zed settings:
{
"agent_servers": {
"clawbot-agent": {
"type": "custom",
"command": "clawbot",
"args": ["acp"]
}
}
}
JetBrains
Use an ACP-compatible plugin and point it at:
/path/to/clawbot-agent/acp_registry
Registry manifest
The source copy of Clawbot' official ACP Registry metadata lives at:
acp_registry/agent.json
acp_registry/icon.svg
The upstream registry PR copies those files into the top-level clawbot-agent/ directory in agentclientprotocol/registry.
The registry entry uses a uvx distribution that points directly at the clawbot-agent PyPI release:
uvx --from 'clawbot-agent[acp]==<version>' clawbot-acp
The registry CI verifies that the pinned version exists on PyPI, so the manifest's version and uvx package pin must always match pyproject.toml. scripts/release.py keeps them in lockstep automatically.
Configuration and credentials
ACP mode uses the same Clawbot configuration as the CLI:
~/.clawbot/.env~/.clawbot/config.yaml~/.clawbot/skills/~/.clawbot/state.db
Provider resolution uses Clawbot' normal runtime resolver, so ACP inherits the currently configured provider and credentials. Clawbot also advertises a terminal auth method (--setup) for first-run registry clients; this opens Clawbot' interactive model/provider setup.
Session behavior
ACP sessions are tracked by the ACP adapter's in-memory session manager while the server is running.
Each session stores:
- session ID
- working directory
- selected model
- current conversation history
- cancel event
The underlying AIAgent still uses Clawbot' normal persistence/logging paths, but ACP list/load/resume/fork are scoped to the currently running ACP server process.
Working directory behavior
ACP sessions bind the editor's cwd to the Clawbot task ID so file and terminal tools run relative to the editor workspace, not the server process cwd.
Approvals
Dangerous terminal commands can be routed back to the editor as approval prompts. ACP approval options are simpler than the CLI flow:
- allow once
- allow always
- deny
On timeout or error, the approval bridge denies the request.
Troubleshooting
ACP agent does not appear in the editor
Check:
- In Zed, open the ACP Registry with
zed: acp registryand search for Clawbot Agent. - For manual/local development, verify the custom
agent_serverscommand points toclawbot acp. - Clawbot is installed and on your PATH.
- The ACP extra is installed (
pip install -e '.[acp]'). uvis installed if launching from the official Zed registry entry.
ACP starts but immediately errors
Try these checks:
clawbot acp --version
clawbot acp --check
clawbot doctor
clawbot status
Missing credentials
ACP mode uses Clawbot' existing provider setup. Configure credentials with:
clawbot model
or by editing ~/.clawbot/.env. Registry clients can also trigger Clawbot' terminal auth flow, which runs the same interactive provider/model setup.
Zed registry launcher cannot find uv
Install uv from the official uv installation docs, then retry the Clawbot Agent thread from Zed.