pastebridge is a two-lane clipboard between two machines you own on the same network. Paste or pipe terminal output on one, read it on the other, and send the command back — long enough that retyping it on a phone was never going to happen. No relay, no cloud, and nothing you paste is written to disk.
One file, on the machine with the problem. It opens a browser at 127.0.0.1:8787, or use -headless where there is no browser at all. Output can also be piped straight in.
A TLS listener starts on your local network and prints an address and a six-digit PIN. Off until you ask for it — and off means no listener exists.
In the browser it already has. Enter the PIN once. Nothing to install.
Both ends, simulated in this page. Switch sharing on in the laptop view, pair from the phone view with the PIN it shows, then paste into either lane and watch it land on the other side. Nothing you type leaves the page.
Pasted output often carries more than you intended: API tokens, connection strings, internal hostnames, paths. Whatever you send is visible to every paired device and stays in memory until the lane is cleared or the process stops.
Nothing inspects, parses or validates what appears here. Text arrives exactly as it was typed at the other end, and the absence of a warning is not an assurance. Read every command before you run it.
Pasted output often carries more than you intended: API tokens, connection strings, internal hostnames, paths. Whatever you send is visible to every paired device and stays in memory until the lane is cleared or the process stops.
Nothing inspects, parses or validates what appears here. Text arrives exactly as it was typed at the other end, and the absence of a warning is not an assurance. Read every command before you run it.
Here the two panes talk through a function call; the real app uses TLS on your LAN. Pairing, clearing and Export behave like the app. The demo holds 60 entries; the app holds 500.
curl.exe -fLO https://github.com/PeerHold/pastebridge/releases/download/v1.1/pastebridge-v1_1.zip
curl.exe -fLO https://github.com/PeerHold/pastebridge/releases/download/v1.1/pastebridge-v1_1.zip.sha256
$want = (Get-Content pastebridge-v1_1.zip.sha256 -Raw).Trim().Split(' ')[0].ToLower()
$got = (Get-FileHash pastebridge-v1_1.zip -Algorithm SHA256).Hash.ToLower()
if ($got -eq $want) { Expand-Archive pastebridge-v1_1.zip -DestinationPath . -Force; .\pastebridge-v1_1.exe } else { Write-Error 'Checksum failed' }
curl.exe -fLO https://github.com/PeerHold/pastebridge/releases/download/v1.1/pastebridge-arm64-snapdragon-v1_1.zip
curl.exe -fLO https://github.com/PeerHold/pastebridge/releases/download/v1.1/pastebridge-arm64-snapdragon-v1_1.zip.sha256
$want = (Get-Content pastebridge-arm64-snapdragon-v1_1.zip.sha256 -Raw).Trim().Split(' ')[0].ToLower()
$got = (Get-FileHash pastebridge-arm64-snapdragon-v1_1.zip -Algorithm SHA256).Hash.ToLower()
if ($got -eq $want) { Expand-Archive pastebridge-arm64-snapdragon-v1_1.zip -DestinationPath . -Force; .\pastebridge-arm64-snapdragon-v1_1.exe } else { Write-Error 'Checksum failed' }
Which Mac file? Apple menu → About This Mac. Any M-series chip (M1 or later) is Apple silicon; anything named Intel takes the Intel file. The Intel build also runs on Apple silicon through Rosetta, but the Apple silicon build will not start on an Intel Mac.
-headless skips the local browser and switches sharing on at
startup, which is the pair you want on a machine with no screen. The
others worth knowing: -pin fixes the PIN instead of a fresh
one per run, -exit-on-idle quits after a stretch with
nothing attached and defaults to five seconds, so pass
-exit-on-idle 0 alongside -headless or it will
stop before you can pair (the Raspberry Pi command above already does).
-port and -share-port move the two listeners
off 8787 and 8788. Piped input goes into a lane without a browser:
dmesg | pastebridge for the log lane,
echo "systemctl restart nginx" | pastebridge -lane cmd for
the command lane. If pastebridge is already running on that machine, the
text is handed to it over loopback and the pipe exits; if not, this run
takes the text and serves it. On macOS,
xattr clears the download quarantine flag, without which the
unsigned binary is refused. It runs only after the checksum passes.
Archives and checksums are on GitHub releases. A matching hash proves the file arrived intact, not what it does; the checks below test behavior.
You're on a phone, a console with no clipboard, or a machine whose only screen is on another desk. The command you need is long and full of quotes and braces, and the output you need to read is two hundred lines. Both of those move badly between screens.
psql: error: connection to server at "db01" failed:
FATAL: remaining connection slots are reserved…
Paste it, or pipe it straight in with
journalctl -n 100 | pastebridge on a machine with no
browser at all. It lands on the other device immediately, whitespace
intact, with a copy button of its own. Long stack traces are clipped
so they don't bury everything else.
Search it, read the docs, ask a colleague, or hand it to whatever model you use. That part is yours and happens in your client: pastebridge has no model, no API key and no outbound connection, so it isn't in that conversation at all.
$ psql -h db01 -U postgres -c "select…" → psql -h db01 -U postgres -c "select…"
One command per entry, each with its own copy button, because
selecting text on a phone is a fight and retyping a long command is
worse. A leading $ or # is stripped, so you
copy the command, not the prompt. Run it, pipe the result back, and
go round again.
The most recent 500 entries stay in memory, on the host and in paired browsers, until you clear the lane or stop the process. Clearing a lane clears it on every device.
~/.pastebridge/cert.pem
~/.pastebridge/key.pem
The certificate and key, kept so you don't accept a new warning on every restart. Delete them and the next run makes a fresh pair.
# 1. Nothing goes out. Expect zero outbound packets from pastebridge, including at startup. # Other programs will show up, and so will your paired device while sharing is on. sudo tcpdump -i any -n 'not (host 127.0.0.1 or host ::1) and not port 22' # 2. Only loopback is listening until you switch sharing on. ss -ltnp | grep pastebridge # 3. The only things on disk are the certificate and its key. ls -la ~/.pastebridge/ # 4. One file, nothing linked in. ldd ./pastebridge-linux-v1_1
Repeat check 2 after switching sharing on and off: off means the
listener is gone, not idle. On macOS, use otool -L instead
of ldd.
The full text, privacy notes and imprint are inside the app, offline, each with a version and date.
New versions and checksum changes go out here. If you verify hashes before running a binary, this is how you hear there's a new one.
A plain file with no tracking attached. Whoever serves the copy you are reading may keep ordinary access logs.
Everything here is free, and staying that way. If something saved you an afternoon, send some BTC.
Found a bug? Open an issue on GitHub, or find me on Bluesky at @peerhold.
On-chain, to a wallet I hold.
Also resolves at 0xPeerHold.x.