Copy here, paste there
Text, links, images and files you copy land on the clipboard of your other devices a moment later. Files can also be saved to Downloads, shared from the phone or downloaded in the web app.
Copy on your laptop, paste on your phone. PrivatePaste is a self-hosted clipboard sync with an end-to-end encrypted, searchable history, for Windows, macOS, Linux, Android, Edge and the web.
Free and open source (MIT) · v0.6.4 · Windows, macOS, Linux, Android, Edge and web · no iOS yet
One small container. No cloud relay, no analytics, no third-party requests.
Text, links, images and files you copy land on the clipboard of your other devices a moment later. Files can also be saved to Downloads, shared from the phone or downloaded in the web app.
Every clip is kept with the device it came from, so what you copied last Tuesday is one search away. Filter it by type, too. Search runs on your devices, because the server can't read your clips.
On the desktop apps, copies your password manager marks as private are never uploaded, and you can block other apps too. Android only sends what you share. The Edge extension can't see those marks, so copies from password managers sync too (encrypted); it has a Pause syncing switch.
Clips are encrypted on your devices and unlocked with your passphrase. The server keeps only ciphertext, so even someone who steals it can't read them. Add an Android phone by scanning a code from a device that is already unlocked.
Everyone signs in with their own name and password. One shared history shows who copied what.
Pinned clips get their own tab on every device and survive clearing and auto-delete.
Your devices talk to your server, and to nothing else.
What protects your clips, and what doesn't.
PP_DB_KEY, which hides that metadata from someone who takes the disk without the server's configuration.Runs anywhere that runs containers. The image is ghcr.io/dynamicsninja/privatepaste, for amd64 and arm64.
In your Dokploy project, click Create Service, then Compose. Give it a name, for example privatepaste, and choose Raw as the provider.
Paste this into the editor and save.
services:
privatepaste:
image: ghcr.io/dynamicsninja/privatepaste:0.6.4
restart: unless-stopped
stop_grace_period: 15s
environment:
PP_DB_KEY: ${PP_DB_KEY}
PP_PASSWORD: ${PP_PASSWORD}
volumes:
- privatepaste-data:/data
expose:
- 8080
volumes:
privatepaste-data:On the Environment tab, paste these two lines and fill them in:
PP_DB_KEY: a random key that encrypts everything. Generate one with openssl rand -base64 32.PP_PASSWORD: a strong password you'll sign in with.PP_DB_KEY= PP_PASSWORD=
On the Domains tab, add your hostname for service privatepaste on port 8080, with HTTPS on. Point the hostname's DNS at your Dokploy server.
Click Deploy. Open your domain and sign in with the name owner and your PP_PASSWORD, then choose the passphrase that encrypts your clips.
On a server with Docker and Docker Compose, for example a VPS.
mkdir privatepaste && cd privatepaste
docker-compose.ymlPrivatePaste, with Caddy in front for HTTPS. Caddy gets a certificate for your domain by itself.
services:
privatepaste:
image: ghcr.io/dynamicsninja/privatepaste:0.6.4
restart: unless-stopped
stop_grace_period: 15s
environment:
PP_DB_KEY: ${PP_DB_KEY}
PP_PASSWORD: ${PP_PASSWORD}
volumes:
- privatepaste-data:/data
expose:
- 8080
caddy:
image: caddy:2
restart: unless-stopped
ports:
- "80:80"
- "443:443"
environment:
PP_DOMAIN: ${PP_DOMAIN}
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile:ro
- caddy-data:/data
- caddy-config:/config
depends_on:
- privatepaste
volumes:
privatepaste-data:
caddy-data:
caddy-config:CaddyfileCaddy reads your domain from PP_DOMAIN and passes everything to PrivatePaste.
{$PP_DOMAIN} {
reverse_proxy privatepaste:8080
}.env with your domain and keysPut your domain in the second line. This generates the key that encrypts everything (PP_DB_KEY) and your sign-in password (PP_PASSWORD), then shows the password.
cat > .env <<EOF PP_DOMAIN=paste.example.com PP_DB_KEY=$(openssl rand -base64 32) PP_PASSWORD=$(openssl rand -base64 18) EOF grep PP_PASSWORD .env
Add an A record (and an AAAA record for IPv6) for your domain with the server's address, and open ports 80 and 443 in its firewall.
docker compose up -d
Open your domain with https:// and sign in with the name owner and the password from .env, then choose the passphrase that encrypts your clips.
Leave out the caddy service and the Caddyfile. Attach privatepaste to your proxy's Docker network (called proxy here; use its real name) and route your domain to port 8080. Don't publish the port: the sign-in rate limit trusts the client IP your proxy forwards, so the server must be reachable only through the proxy.
services:
privatepaste:
# ... as above, plus:
networks:
- proxy
networks:
proxy:
external: trueTo upgrade, back up /data, change the image tag to the new version and redeploy. See Backups in the self-hosting guide.
Keep PP_DB_KEY safe, apart from your backups. Without it the data can't be recovered. More settings, backups and proxy notes are in the self-hosting guide.
Install an app and sign in with your server's address, the name owner and your password, then unlock it with your passphrase (or, on Android, scan a code from Add a device). Add the other people on the web app's People page.
An installer (MSI) for your user, no admin prompt. It isn't code-signed yet, so SmartScreen asks first: click More info, then Run anyway.
A zip with the app. It isn't notarized yet: right-click PrivatePaste.app and choose Open.
A tar.gz for x64. Works best in an X11 session; on Wayland the clipboard and hotkey are limited.
An APK for Android 10 or newer. Download it on the phone, open it and allow Install unknown apps for your browser when Android asks.
For a computer where you can't install the desktop app. Get it from Microsoft Edge Add-ons; updates arrive on their own. It syncs copies while Edge is running.
Nothing to install: the web app is built into your server. Open your domain in any modern browser.
All files, and older versions, are on GitHub Releases. More in the desktop, Android and Edge extension guides.
Yes. Clips are encrypted on your devices with a key unlocked by your passphrase, and the server stores only ciphertext. It still sees who copied what kind of clip, when, from which device, and how big it is. In the web app the decryption code comes from your server, so a stolen server that is kept running could alter it; the apps don't have that risk.
Sign in with your name and password, then unlock with the passphrase. On Android you can scan a code instead: open Settings, then Add a device on a device that is already unlocked. The code works once, for 10 minutes. The web app unlocks with the passphrase too.
Then nobody can read the history, not even the server's owner. The owner can reset encryption in the web app's Settings, which deletes the whole history, pinned clips included, and starts over with a new passphrase.
Not yet. On an iPhone or iPad you can use the web app in the browser.
The image is built for amd64 and arm64, so on a Raspberry Pi it needs a 64-bit OS.
Nothing. It's free and open source under the MIT licence, with no paid tier. You only pay for the machine you run it on.
PrivatePaste runs on a server you own, keeps a searchable history, and works across networks and platforms, the web included. KDE Connect sends from device to device on your local network. The Windows cloud clipboard and Apple's Universal Clipboard go through your Microsoft or Apple account and stay inside their own ecosystems.
PP_DB_KEY?Then the server's data can't be recovered: everything on it is encrypted with it, including the clips your passphrase protects. Keep it somewhere safe, for example in a password manager, apart from your backups.
We're considering running PrivatePaste for you, end-to-end encrypted, for a few euros a month. Leave your email and we'll tell you if it happens.