remote-clauding
v1.0.0
Published
Share Claude Code sessions to your phone
Readme
Remote Clauding
Monitor and interact with Claude Code from your iPhone while Claude works on your PC.
Architecture
┌──────────────┐ WSS ┌───────────────┐ WSS ┌──────────┐
│ Your PC │ ─────────────► │ Cloud Relay │ ◄──────────── │ iPhone │
│ Agent + │ │ Server │ │ PWA │
│ VSCode Ext │ │ │ │ │
└──────────────┘ └───────────────┘ └──────────┘Four components:
- server/ - Cloud relay server (Node.js + WebSocket + Web Push)
- agent/ - Desktop agent that wraps Claude CLI
- vscode-ext/ - VSCode extension with "Share to Mobile" button
- web/ - Mobile PWA (React)
Quick Start (Local Dev)
1. Install dependencies
cd server && npm install
cd ../agent && npm install
cd ../web && npm install2. Generate VAPID keys (for push notifications)
npx web-push generate-vapid-keysCopy the keys into a .env file (see .env.example).
3. Start the relay server
cd server
# Set environment variables or create .env
npm run dev4. Build & serve the PWA
cd web
npm run build
# The server serves the PWA from web/dist/For development with hot reload:
cd web
npm run dev
# Open http://localhost:51735. Start the desktop agent
cd agent
# Set RELAY_URL=ws://localhost:3001 and AUTH_TOKEN
npm start6. Load the VSCode extension
- Open VSCode
- Go to Extensions sidebar
- Click "..." menu → "Install from VSIX..." or use dev mode:
- Open
vscode-ext/folder in VSCode - Press F5 to launch Extension Development Host
- Open
7. Use on iPhone
- Open the relay server URL in Safari
- Tap "Share" → "Add to Home Screen"
- Open the app → Grant notification permission
- In VSCode, click "Share to Mobile" in the status bar
Environment Variables
| Variable | Description | Default |
|----------|-------------|---------|
| AUTH_TOKEN | Shared secret token | dev-token-change-me |
| VAPID_PUBLIC_KEY | Web Push public key | (required for push) |
| VAPID_PRIVATE_KEY | Web Push private key | (required for push) |
| RELAY_URL | Relay server WebSocket URL | ws://localhost:3001 |
| PORT | Relay server port | 3001 |
| HTTP_PORT | Agent local API port | 9680 |
Deployment
Relay Server (Render.com)
- Create a new Web Service on Render
- Root directory:
server - Build command:
cd ../web && npm install && npm run build - Start command:
npm start - Set environment variables:
AUTH_TOKEN,VAPID_PUBLIC_KEY,VAPID_PRIVATE_KEY
The server also serves the PWA static files, so both are deployed together.
