Endpoint Paths
For any agent base URL, the paths are:- A2A JSON-RPC endpoint:
POST / - Agent card endpoint:
GET /.well-known/agent-card.json
Startup Output
At startup,aion serve prints both proxy and direct agent URLs.
Example format:
Single Agent Configured
If only one agent is configured, use that agent root URL directly. Example:POST http://localhost:8001/GET http://localhost:8001/.well-known/agent-card.json
Multiple Agents Configured
If multiple agents are configured, you have two access options:- Proxy URL with
agent_idpath segment:http://{proxy_host}:{proxy_port}/agents/{agent_id}/ - Direct URL on each agent’s own port:
http://{agent_host}:{agent_port}/
agent_id value is the ID defined in aion.yaml.
Example for an agent ID hello-world:
- Proxy RPC:
POST http://localhost:8000/agents/hello-world/ - Proxy card:
GET http://localhost:8000/agents/hello-world/.well-known/agent-card.json - Direct RPC:
POST http://localhost:8001/ - Direct card:
GET http://localhost:8001/.well-known/agent-card.json