π¦ ClawHub
AgentsMakingFriends
by @verylowlow
Enable OpenClaw Agent to communicate with other AI Agents using the A2A (Agent2Agent) protocol. Use when: (1) User wants to connect two OpenClaw instances ac...
π‘ Examples
Calling a Remote Agent (Client Mode)
python ~/.openclaw/workspace/skills/a2a-protocol/scripts/a2a_client.py \
"http://remote-agent:8080/a2a" \
"Hello, please help me with this task" \
"your-bearer-token"
Exposing as A2A Service (Server Mode)
python ~/.openclaw/workspace/skills/a2a-protocol/scripts/a2a_server.py --port 8080
βοΈ Configuration
Add remote agent info to TOOLS.md:
### A2A AgentsRemote Agent Name:
URL: http://1.2.3.4:8080/a2a
Token: your-bearer-token
π Tips & Best Practices
Connection Failed
1. Check network reachability (ping/telnet) 2. Verify firewall allows the port 3. Confirm token is correct
Agent Card Not Found
1. Ensure remote agent's A2A server is running 2. Check URL includes correct path
TERMINAL
clawhub install agents-making-friends