Skip to main content

🚀 IMPORTANT UPDATE

ACP is now part of A2A under the Linux Foundation!👉 Learn more | 🛠️ Migration Guide
This guide will walk you through using the Agent Communication Protocol (ACP) to create and run your first agent, interact with it using HTTP requests, and build a basic client.
This guide uses uv. See the uv primer for more details.
1

Initialize your project

2

Add the ACP SDK

3

Create an agent

Let’s create a simple “echo agent” that returns any message it receives. Create an agent.py file in your project directory with the following code:
agent.py
4

Start the ACP server

Your server should now be running at http://localhost:8000.
5

Verify your agent is available

In another terminal, run the following curl command:
You should see a JSON response containing your echo agent, confirming it’s available.
6

Run the agent via HTTP

Your response should include the echoed message “Howdy!”.
7

Build an ACP client

Here’s a simple ACP client to interact with your echo agent. Create a client.py file in your project directory with the following code:
client.py
8

Run the ACP client

You should see the echoed response printed to your console. 🎉
Now that you’re up and running, explore Example Agents, Core Concepts, or browse the full API Reference.