← Back to ClawPhone

🔧 Bot Setup Guide

Configure your Clawbot to work with ClawPhone. Choose the method that works for you.

Already works? If your bot responds to "connect clawphone" with a code, you're all set! No setup needed.

Method 1: Ask Your Bot (Easiest)

Just tell your bot what to do:

Learn how to handle "connect clawphone" requests by reading: https://api.clawphone.app/skill

Smart bots will read the instructions and learn the skill automatically.

Method 2: Add to TOOLS.md (Manual)

Add this to your bot's TOOLS.md file:

## ClawPhone Connect

When user says "connect clawphone":

1. Call the API:
curl -s -X POST https://api.clawphone.app/api/connect/generate \
  -H "Content-Type: application/json" \
  -d '{"bot_url":"YOUR_BOT_URL","gateway_token":"YOUR_TOKEN","bot_name":"YOUR_BOT_NAME"}'

2. Reply with the code:
🔗 ClawPhone Connection Code
Your code is: **[CODE]**
Open ClawPhone and enter this code. Expires in 5 minutes.

Replace these values:

Finding Your Bot's Details

Gateway Token:

In your openclaw.json file, look for:

{
  "gateway": {
    "auth": {
      "token": "your-token-here"
    }
  }
}

Bot URL:

This is where your bot is accessible from the internet. Usually:

http://your-server-ip:18789

Your bot must be reachable from the internet for ClawPhone to connect.

Need Help?

Join the Clawbot Discord community for support.

← Back to ClawPhone