GUIは要らないのでCLIだけ利用する。私はMiseのtool-stubを使っているので、以下ファイルを配置する。
#!/usr/bin/env -S mise tool-stub
tool = "github:UniClipboard/UniClipboard"
version = "latest"初期化してスペースを作成する。スペースのパスフレーズを決めて入力する。
❯ uniclip init
◆ Initialize space
✓ New space passphrase ••••••••••••••••••••
✓ Confirm passphrase ••••••••••••••••••••
✓ Space initialized
│ space_id: <REDACTED>
│ device_id: <REDACTED>
│ fingerprint: <REDACTED>モバイル同期をセットアップする。iOS側にはTestFlight経由でクライアントを入れる必要がある。
❯ uniclip mobile-sync setup
◆ Mobile-sync setup
⚠ Enabling LAN listener exposes clipboard data over your local network.
│ •: Body is unencrypted in v1 (HTTPS comes in v2).
│ •: Only enable on trusted networks (home / private office).
│ •: Strongly discouraged on public WiFi.
│ •: Anyone on the same LAN can sniff your data.
✓ Accept network exposure and continue? yes
│ interface: enp4s0 (192.168.2.206)
✓ Device label (e.g. "My iPhone 15") iPhone 16 Pro
✓ Username (6-32 chars, [A-Za-z0-9_], letter-leading) [Enter for auto] atty303
✓ Password (min 8 chars) [Enter for auto]:
✓ Registered device: iPhone 16 Pro
│ deviceId: did_<REDACTED>
│ baseUrl: http://192.168.2.206:42720
│ username: atty303
│ password (one-time): <REDACTED>
│ installUrl: https://www.icloud.com/shortcuts/<REDACTED>
│
<QR CODE>
│ next: Scan the QR with iPhone Camera, install the SyncClipboard shortcut, then edit url / username / password fields.
⚠ The password above will NOT be shown again. Copy it now.
⚠ Restart the daemon to apply: `uniclip stop && uniclip start`.