Skip to main content

ACP adapter that bridges Amp Code to Agent Client Protocol

Project description

acp-amp

CI License

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:

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

acp_amp-0.1.2.tar.gz (13.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

acp_amp-0.1.2-py3-none-any.whl (14.1 kB view details)

Uploaded Python 3

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

Hashes for acp_amp-0.1.2.tar.gz
Algorithm Hash digest
SHA256 397a439901d3a99d6e46884add50dc1cef9471c6badf252d2efd66782fa82477
MD5 9571594b782a6a8cf01319c19cab72d4
BLAKE2b-256 d6bf480ee91030834257b152896a6200b3de542136c836f55d656379a9d35f60

See more details on using hashes here.

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

Hashes for acp_amp-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c8c4c19aad800fbcc40bdee49dcca7a37fe223174392a313e3133ed6314112d0
MD5 adbe60d74276221650ffbf5204d23191
BLAKE2b-256 c1f1cb616f3203eabad80843dfa202ecd42d0eaf2b4b2c2c47ff5242bbc07eb1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page