LB Publisher

How to connect

Five minutes on the computer. One minute on the phone.

1. On your computer

  1. You need Python 3.9 or newer — it is already on macOS and most Linux. On Windows, get it from python.org.
  2. Download lb_publisher_server.py — a single file, nothing to install.
  3. Run it in the terminal: python3 lb_publisher_server.py. It creates the ~/LBPublisher folder and prints a connection string like lbp://192.168.0.102:8787#…. With pip install qrcode it also shows a QR code.
  4. If macOS asks “Allow incoming connections?”, choose Allow.

Options

OptionWhat it does
--dir pathUse another queue folder
--name "My channel"The name shown in the app
--port 8788Use another port
--new-tokenIssue a new key — connected phones are disconnected
--lang en|ruLanguage of the server messages

2. On your iPhone

  1. Install LB Publisher.
  2. Tap Scan QR code — or Paste the connection string — then Check and save.

3. The network

Where is the phoneWhat you need
At home, on the same Wi-FiNothing. A guest network with device isolation won’t work.
Away from homeFree Tailscale on the computer and the phone, one account. Use the 100.x.y.z connection string.
A VPN is on the phoneAllow 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

  1. Open the clip in the app and tap a platform. The video goes to Photos, the caption to the clipboard, the platform opens.
  2. Paste the caption and post.
  3. Come back — the app asks “Posted?”. You can add the link to the post.