How to discover and run ACP agents via REST and Python SDK
This page shows how you can discover available ACP agents and run them synchronously, asynchronously, or with streaming outputs, using both REST API and Python SDK.
You can discover available agents on your ACP server to know which agents you can run. Use REST for simple interactions or Python SDK for richer, programmatic control.Send a GET request to the /agents endpoint to list available agents:
Copy
Ask AI
curl http://localhost:8000/agents
Use the Python SDK to list agents programmatically:
Copy
Ask AI
import asynciofrom acp_sdk.client import Clientasync def list_agents(): async with Client(base_url="http://localhost:8000") as client: async for agent in client.agents(): print(agent)if __name__ == "__main__": asyncio.run(list_agents())
If you’re interested in discovering agents across multiple ACP servers using a registry-based approach, check out the BeeAI Platform.