Quickstart
Get up and running with ACP
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.
Initialize your project
Add the ACP SDK
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:
Start the ACP server
Your server should now be running at http://localhost:8000.
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.
Run the agent via HTTP
Your response should include the echoed message “Howdy!”.
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:
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.