LB Publisher
How to connect
Five minutes on the computer. One minute on the phone.
1. On your computer
- You need Python 3.9 or newer — it is already on macOS and most Linux. On Windows, get it from python.org.
- Download lb_publisher_server.py — a single file, nothing to install.
- Run it in the terminal:
python3 lb_publisher_server.py. It creates the~/LBPublisherfolder and prints a connection string likelbp://192.168.0.102:8787#…. Withpip install qrcodeit also shows a QR code. - If macOS asks “Allow incoming connections?”, choose Allow.
Options
| Option | What it does |
|---|---|
--dir path | Use another queue folder |
--name "My channel" | The name shown in the app |
--port 8788 | Use another port |
--new-token | Issue a new key — connected phones are disconnected |
--lang en|ru | Language of the server messages |
2. On your iPhone
- Install LB Publisher.
- Tap Scan QR code — or Paste the connection string — then Check and save.
3. The network
| Where is the phone | What you need |
|---|---|
| At home, on the same Wi-Fi | Nothing. A guest network with device isolation won’t work. |
| Away from home | Free Tailscale on the computer and the phone, one account. Use the 100.x.y.z connection string. |
| A VPN is on the phone | Allow local network in the VPN app, or pause it while downloading. |
4. Teach your agent
Copy AGENTS.md into your agent’s instructions — CLAUDE.md for Claude Code, AGENTS.md or the system prompt for Kimi, Codex and others. The short version: one clip is one folder ~/LBPublisher/<id>/ with video.mp4 and post.json, written last.
{
"title": "3 facts in 10 seconds",
"format": "short",
"publish_date": "2026-11-27",
"caption": "You missed the third one 👀 #facts",
"ai_label": true
}For a full YouTube video use "format": "long", a description with chapters and an optional thumbnail.jpg.
5. Posting
- Open the clip in the app and tap a platform. The video goes to Photos, the caption to the clipboard, the platform opens.
- Paste the caption and post.
- Come back — the app asks “Posted?”. You can add the link to the post.