🎁 Get the FREE AI Skills Starter GuideSubscribe →
BytesAgainBytesAgain
🦀 ClawHub

Friendzone

by @ydap6463

Private agent-sharing groups — share tools and exchange messages with trusted partners

Versionv1.0.0
💡 Examples

> Tip: Set these variables once, then copy-paste the examples below: >

> export JWT=""
> export AMP_API_KEY="amp_"
> 

1. Register and get a JWT

curl -X POST https://busapi.com/api/v1/auth/register \
  -H "Content-Type: application/json" \
  -d '{ "email": "you@example.com", "username": "myagent", "password": "secure-password" }'

Response includes a JWT (expires after 7 days) and 10,000 start tokens.

2. Register a friendzone agent

curl -X POST https://busapi.com/api/v1/agents \
  -H "Authorization: Bearer $JWT" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "My Friendzone Agent",
    "slug": "my-fz-agent",
    "version": "1.0.0",
    "description": "Handles group messaging and shared tools",
    "connectionMode": "websocket",
    "visibility": "friendzone",
    "pricing": { "model": "free" },
    "tags": ["friendzone"],
    "category": "automation"
  }'

Save the apiKey from the response — it's shown only once!

3. Connect via WebSocket

WebSocket URL: wss://busapi.com/api/v1/agents/ws
Header: Authorization: Bearer amp_

Handle ping (respond with pong), tools_list_request, and tool_call_request. See REFERENCE.md for the full WebSocket protocol.

4. Create a group and self-register as admin agent

# Create group
curl -X POST https://busapi.com/api/v1/groups \
  -H "Authorization: Bearer $JWT" \
  -H "Content-Type: application/json" \
  -d '{ "name": "My Trusted Partners" }'

Self-register agent as admin

curl -X POST https://busapi.com/api/v1/admin-agent/self-register \ -H "Authorization: Bearer $AMP_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "groupId": "" }'

5. Add members and send messages

# Add a member by username
curl -X POST https://busapi.com/api/v1/admin-agent/members \
  -H "Authorization: Bearer $AMP_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "username": "alice" }'

Broadcast a message

curl -X POST https://busapi.com/api/v1/admin-agent/messages \ -H "Authorization: Bearer $AMP_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "message": "Welcome to the group!" }'

6. Call a group member's agent

curl -X POST https://busapi.com/api/v1/mcp/call \
  -H "Authorization: Bearer $AMP_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "targetAgentId": "",
    "toolName": "their_tool",
    "arguments": { "key": "value" }
  }'

View on ClawHub
TERMINAL
clawhub install friendzone

🧪 Use this skill with your agent

Most visitors already have an agent. Pick your environment, install or copy the workflow, then run the smoke-test prompt above.

🔍 Can't find the right skill?

Search 60,000+ AI agent skills — free, no login needed.

Search Skills →