ACP adapter that bridges Amp Code to Agent Client Protocol
Project description
acp-amp
acp-amp is an open source ACP adapter for Amp Code. It runs as a standard ACP agent over stdin and stdout and can be used from any ACP client, for example Zed or SuperQode. We built it to bring Amp to Python based ACP clients and to extend Amp usage beyond TypeScript only setups. This lets Python driven coding agents such as Toad, fast-agent, SuperQode, and other ACP clients use Amp natively.
In short, acp-amp bridges Amp into the ACP ecosystem and keeps the protocol surface clean and consistent for editors and clients. The default driver uses the Amp Python SDK, with a Node shim fallback.
Where you can use it
- Zed editor via
agent_servers - SuperQode via ACP agent config
- Any ACP client that can launch a subprocess and speak JSON-RPC over stdio
Python based ACP clients you can use today:
- Toad https://github.com/batrachianai/toad
- fast-agent https://github.com/evalstate/fast-agent
- SuperQode https://github.com/SuperagenticAI/superqode
Install (recommended)
uv tool install acp-amp
Install (pip)
pip install acp-amp
Install (dev)
pip install -e .
Install with uv
uv sync
Install Amp CLI if needed
Some Amp setups require the Amp CLI. If your SDK setup needs it, install:
npm install -g @sourcegraph/amp
Optional Node shim fallback
If you cannot use the Python SDK, you can run the Node shim instead.
acp-amp setup
cd ~/.acp-amp/shim
npm install
Run
acp-amp
By default the Python SDK driver is used. To force the Node shim:
acp-amp run --driver node
To force the Python SDK explicitly:
acp-amp run --driver python
Tests
pip install -e .[test]
pytest
Tests with uv
uv run pytest
Docs
pip install -e .[docs]
mkdocs serve
Docs with uv
uv run mkdocs serve
Use from an ACP client (example: SuperQode)
agents:
amp:
description: "Amp ACP adapter"
protocol: acp
command: acp-amp
args: []
Then connect:
superqode connect acp amp
Zed example
{
"agent_servers": {
"Amp": {
"command": "acp-amp",
"args": [],
"env": {
"AMP_API_KEY": "your-api-key-here"
}
}
}
}
Notes
- Stdout is reserved for ACP JSON-RPC messages, logs go to stderr
- The Node shim lives in
node-shim/and is launched automatically
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file acp_amp-0.1.2.tar.gz.
File metadata
- Download URL: acp_amp-0.1.2.tar.gz
- Upload date:
- Size: 13.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
397a439901d3a99d6e46884add50dc1cef9471c6badf252d2efd66782fa82477
|
|
| MD5 |
9571594b782a6a8cf01319c19cab72d4
|
|
| BLAKE2b-256 |
d6bf480ee91030834257b152896a6200b3de542136c836f55d656379a9d35f60
|
File details
Details for the file acp_amp-0.1.2-py3-none-any.whl.
File metadata
- Download URL: acp_amp-0.1.2-py3-none-any.whl
- Upload date:
- Size: 14.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c8c4c19aad800fbcc40bdee49dcca7a37fe223174392a313e3133ed6314112d0
|
|
| MD5 |
adbe60d74276221650ffbf5204d23191
|
|
| BLAKE2b-256 |
c1f1cb616f3203eabad80843dfa202ecd42d0eaf2b4b2c2c47ff5242bbc07eb1
|