privatepaste

Your clipboard on every device,
kept on your own server.

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

The PrivatePaste web history, the desktop history popup and the Android app showing the same clips, each marked with the person and device it came from

Why PrivatePaste

One small container. No cloud relay, no analytics, no third-party requests.

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.

A history you can search

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.

Private copies stay private

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.

End-to-end encrypted

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.

For a household or a small team

Everyone signs in with their own name and password. One shared history shows who copied what.

Pin what you reuse

Pinned clips get their own tab on every device and survive clearing and auto-delete.

How it works

Your devices talk to your server, and to nothing else.

  1. You copy something on any signed-in device: text, a link, an image or files.
  2. The app sends it to your server over HTTPS, encrypted on the device first. The server keeps only ciphertext it can't read.
  3. Your other devices get it at once over a live connection and put it on their clipboard. A device that was offline catches up when it reconnects.
  4. Everything stays searchable in the history on every device and in the web app, which decrypt and search it themselves, until you delete it or clear it.
Your server encrypted history Laptop Phone Browser HTTPS + live updates

Security

What protects your clips, and what doesn't.

Deploy it in a few minutes

Runs anywhere that runs containers. The image is ghcr.io/dynamicsninja/privatepaste, for amd64 and arm64.

  1. Create a Compose service

    In your Dokploy project, click Create Service, then Compose. Give it a name, for example privatepaste, and choose Raw as the provider.

  2. Paste the compose file

    Paste this into the editor and save.

    docker-compose.yml
    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:
  3. Set the environment

    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.
    Environment
    PP_DB_KEY=
    PP_PASSWORD=
  4. Add your domain

    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.

  5. Deploy and sign in

    Click Deploy. Open your domain and sign in with the name owner and your PP_PASSWORD, then choose the passphrase that encrypts your clips.

To 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.

Then connect your devices

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.

All files, and older versions, are on GitHub Releases. More in the desktop, Android and Edge extension guides.

Questions

Is it end-to-end encrypted?

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.

How do I add a new device?

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.

What if I forget the passphrase?

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.

Is there an iPhone app?

Not yet. On an iPhone or iPad you can use the web app in the browser.

Does it run on a Raspberry Pi?

The image is built for amd64 and arm64, so on a Raspberry Pi it needs a 64-bit OS.

What does it cost?

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.

How is it different from KDE Connect or the Windows and Apple clipboards?

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.

What if I lose 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.

Want a hosted version?

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.

Thanks, we'll let you know.

That doesn't look like an email address. Check it and try again.

Too many tries. Wait a minute and try again.

Your address couldn't be saved. Try again later.

Kept on our own server and shared with no one. See the privacy policy.