Skip to content

SuperagenticAI/acp-amp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

18 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

acp-amp

CI PyPI PyPI Downloads npm npm Downloads Python Node License GitHub Stars

ACP adapter for Amp Code β€” Use Amp in any Agent Client Protocol (ACP) compatible client like Zed.

πŸ“– Documentation β€’ ▢️ See Demo β€’ πŸ› Report Bug β€’ πŸ’‘ Request Feature


🎯 Choose Your Version

If you prefer... Install Package
Python pip install acp-amp PyPI
Node.js npm install -g @superagenticai/acp-amp npm

Both versions provide identical functionality β€” full Amp Code agent capabilities in ACP-compatible clients.


πŸš€ Quick Start

For Python Developers

# Install (recommended)
uv tool install acp-amp

# Run
acp-amp run

For Node.js Developers

# Install
npm install -g @superagenticai/acp-amp

# Run
acp-amp

For Zed Users (Quickest Setup)

Add to your Zed settings (~/.config/zed/settings.json):

{
  "agent_servers": {
    "Amp": {
      "command": "npx",
      "args": ["@superagenticai/acp-amp"]
    }
  }
}

No installation needed β€” npx downloads and runs automatically!


πŸŽ₯ Watch the Demo

Watch the demo


πŸ“‹ Prerequisites

Before using acp-amp, you need:

  1. Paid Amp credits required:

    • ACP access requires a paid Amp credit balance.
    • The free credit version does not work for ACP.
    • Top up a few dollars in Amp to include the ACP functionality.
  2. Amp CLI installed and authenticated:

    curl -fsSL https://ampcode.com/install.sh | bash
    amp login
  3. Runtime (one of):

    • Python 3.10+ and uv (for Python version)
    • Node.js 18+ (for Node.js version)

🐍 Python Version (Detailed)

The Python version is ideal for Python developers and integrates with Python-based ACP clients.

Installation

# Recommended
uv tool install acp-amp

# Alternative: pip
pip install acp-amp

Running

# Default: uses Python SDK
acp-amp run

# Explicit Python SDK
acp-amp run --driver python

# Node shim fallback (if Python SDK has issues)
acp-amp run --driver node

# Auto-detect (tries Python first, falls back to Node)
acp-amp run --driver auto

Driver Comparison

Driver Description When to Use
python Native Python SDK (amp-sdk) Default, best performance
node Node.js shim fallback If Python SDK has issues
auto Tries Python, falls back to Node Maximum compatibility

Setting Up Node Shim (Fallback Only)

Only needed if you want to use --driver node:

# Create shim files
acp-amp setup

# Install shim dependencies
cd ~/.acp-amp/shim
npm install

Zed Configuration (Python)

{
  "agent_servers": {
    "Amp": {
      "command": "acp-amp",
      "args": ["run"]
    }
  }
}

With explicit driver:

{
  "agent_servers": {
    "Amp": {
      "command": "acp-amp",
      "args": ["run", "--driver", "python"]
    }
  }
}

πŸ“¦ Node.js Version (Detailed)

The Node.js version is ideal for JavaScript/TypeScript developers and npm-based workflows.

Installation

# Global install
npm install -g @superagenticai/acp-amp

# Or run directly with npx (no install)
npx @superagenticai/acp-amp

Running

# If installed globally
acp-amp

# Using npx (no install needed)
npx @superagenticai/acp-amp

Zed Configuration (Node.js)

With global install:

{
  "agent_servers": {
    "Amp": {
      "command": "acp-amp"
    }
  }
}

With npx (no install needed):

{
  "agent_servers": {
    "Amp": {
      "command": "npx",
      "args": ["@superagenticai/acp-amp"]
    }
  }
}

πŸ”§ Zed Configuration (Complete Examples)

Minimal Setup

{
  "agent_servers": {
    "Amp": {
      "command": "npx",
      "args": ["@superagenticai/acp-amp"]
    }
  }
}

With API Key

{
  "agent_servers": {
    "Amp": {
      "command": "acp-amp",
      "args": [],
      "env": {
        "AMP_API_KEY": "your-api-key-here"
      }
    }
  }
}

Python with Specific Driver

{
  "agent_servers": {
    "Amp": {
      "command": "acp-amp",
      "args": ["run", "--driver", "python"],
      "env": {
        "AMP_API_KEY": "your-api-key-here"
      }
    }
  }
}

πŸ”Œ Other ACP Clients

SuperQode

agents:
  amp:
    description: "Amp Code agent"
    protocol: acp
    command: acp-amp
    args: []
superqode connect acp amp

Generic ACP Client

Any ACP client that can launch a subprocess and speak JSON-RPC over stdio:

# Python version
acp-amp run

# Node.js version
npx @superagenticai/acp-amp

Python ACP Clients

These Python-based ACP clients work great with acp-amp:


🌐 ACP Ecosystem

acp-amp works with any ACP-compatible client. See the official ACP ecosystem list on the Zed ACP page and the ACP Registry announcement for the latest editors and agents.

Agents on ACP (from the ecosystem list):

  • Gemini CLI (ACP Registry)
  • Claude Code (ACP Registry, via adapter)
  • Codex (ACP Registry, via adapter)
  • GitHub Copilot (ACP Registry)
  • JetBrains Junie (In Progress)
  • Goose
  • Kimi CLI
  • OpenCode (ACP Registry)
  • Stakpak
  • VT Code
  • Auggie CLI (ACP Registry)
  • Code Assistant
  • cagent
  • fast-agent
  • LLMling-Agent

✨ Features

  • Full Amp Code capabilities β€” All Amp features available in your ACP client
  • Multi-turn conversations β€” Thread continuity across interactions
  • Tool execution β€” Run tools with permission modes (default/bypass)
  • MCP server integration β€” Connect to Model Context Protocol servers
  • Image support β€” Send and receive images
  • Session management β€” Multiple concurrent sessions

πŸ—οΈ Project Structure

acp-amp/
β”œβ”€β”€ acp_amp/              # Python package (pip install acp-amp)
β”‚   β”œβ”€β”€ cli.py            # Command-line interface
β”‚   β”œβ”€β”€ server.py         # ACP server implementation
β”‚   └── driver/
β”‚       β”œβ”€β”€ python_sdk.py # Python SDK driver (default)
β”‚       └── node_sdk.py   # Node shim driver (fallback)
β”œβ”€β”€ node/                 # Node.js package (@superagenticai/acp-amp)
β”‚   └── src/
β”‚       β”œβ”€β”€ index.js      # Entry point
β”‚       β”œβ”€β”€ server.js     # ACP server implementation
β”‚       └── to-acp.js     # Event conversion
β”œβ”€β”€ node-shim/            # Minimal shim for Python's --driver node
└── docs/                 # Documentation

πŸ§ͺ Development

Python Development

# Clone and install
git clone https://github.com/SuperagenticAI/acp-amp.git
cd acp-amp
pip install -e .[test]

# Run tests
pytest

# With uv
uv sync
uv run pytest

Node.js Development

cd node
npm install
npm start

Documentation

pip install -e .[docs]
mkdocs serve
# Visit http://localhost:8000

πŸ› Troubleshooting

"amp: command not found"

Install the Amp CLI:

curl -fsSL https://ampcode.com/install.sh | bash
amp login

"SystemMessage object has no attribute 'get'" (Python)

Update to the latest version:

pip install --upgrade acp-amp

Python SDK issues

Use the Node shim fallback:

acp-amp run --driver node

Zed doesn't show the agent

  1. Check your settings.json syntax
  2. Restart Zed
  3. Check Zed's output panel for errors

More help

See Troubleshooting Guide


πŸ“„ License

Apache-2.0


πŸ™ Credits

Brought to you by Superagentic AI

Built with:

About

Python ACP Bridge to the AMP Code

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published