Personal iOS app for chatting with OpenClaw agents. Built with SwiftUI, powered by Tailscale + Railway.
┌─────────────┐ Tailscale ┌──────────────┐
│ iPhone │◄──────────────────►│ Railway │
│ (Clawk) │ (WireGuard VPN) │ (Relay) │
└─────────────┘ └──────────────┘
│
▼
┌──────────────┐
│ OpenClaw │
│ Gateway │
└──────────────┘
├── backend/ # Node.js relay (deploy to Railway)
│ ├── server.js
│ └── package.json
├── Clawk/ # SwiftUI iOS app
│ └── ...
└── README.md
cd backend
railway login
railway init
railway upGet your public URL: railway domain
Open Clawk/Clawk.xcodeproj in Xcode.
Update Config.swift with your Railway URL.
On first launch, the app shows a QR code. Scan with any device to pair.
Or manually POST to /pair:
curl -X POST https://your-app.railway.app/pair \
-H "Content-Type: application/json" \
-d '{"deviceToken": "your-device-token", "deviceName": "Kish iPhone"}'From OpenClaw (or any HTTP client):
curl -X POST https://your-app.railway.app/message \
-H "Content-Type: application/json" \
-H "x-device-token: your-device-token" \
-d '{
"message": "Approve this clip for upload?",
"actions": ["Approve", "Reject", "Later"]
}'{
"type": "card",
"message": "Your message here",
"actions": ["Button 1", "Button 2"]
}{
"type": "input",
"message": "What's your ETA?",
"inputType": "text"
}{
"type": "list",
"message": "Choose a clip:",
"actions": ["Clip 1", "Clip 2", "Clip 3"]
}cd backend
npm install
npm startOpen in Xcode, run on device or simulator.
- Install Tailscale on your iPhone
- Install Tailscale on Railway (use Tailscale SSH or subnet routes)
- Or: Keep Railway public but use token auth (what we do here)
For fully private setup:
- Run relay on your Tailscale network (home machine or VPS with Tailscale)
- Point iOS app to Tailscale IP
- No public internet needed