> Use Amp with Zed on macOS
This page shows how to install the Amp CLI from Sourcegraph, then connect it to Zed using an ACP adapter called `amp-acp` - ampcode.com ![]()
1. Installing Zed. If you do not have it yet, then open it once so it can finish setup - zed.dev
1. Make sure you have Node.js installed, because Zed will run the adapter using `npx` - nodejs.org
1. Install the Amp CLI by pasting this into Terminal - ampcode.com ![]()
curl -fsSL https://ampcode.com/install.sh | bash
4. Close Terminal, open it again, then run Amp. The first run will prompt you to log in - [ampcode.com ![]()
amp
If you want to log in explicitly, you can run this.
amp login
5. Find the full path to the `amp` command, because Zed needs it. Copy the output.
which amp
6.Tell Zed about Amp. In Zed, open Settings (Cmd + ,), then edit `settings.json` and paste this block. Replace `/usr/local/bin/amp` with the exact path you got from `which amp` - [github.com ![]()
{ "agent_servers": { "Amp": { "command": "npx", "args": ["-y", "amp-acp"], "env": { "AMP_EXECUTABLE": "/usr/local/bin/amp", "AMP_PREFER_SYSTEM_PATH": "1" } } } }
7.Restart Zed, then open the Agent panel and add the external agent named “Amp”, and start a new thread - [zed.dev
1. Open a project folder in Zed, start a thread with “Amp”, and ask for something small first, like “Explain this file” or “Find where this function is used”.
If it does not work, first confirm Amp works in Terminal by running `amp` (and `amp login` if needed), then re-check the `AMP_EXECUTABLE` path in Zed matches `which amp` exactly - [github.com
If you want to understand what ACP is and why this works, read the ACP overview - [zed.dev ![]()