DEV Community

Klip
Klip

Posted on

Why I Encrypted My Mac Clipboard History with SQLCipher (And Kept It Offline)

If you use a clipboard manager on macOS, it inevitably sees everything you copy: API tokens, one-time codes, client emails, terminal commands, and internal links.

Most tools ask for two things that made me uncomfortable:

  1. Cloud sync (sending every copied string to a remote server)
  2. macOS Accessibility permissions (which grant broad control over UI events)

When I built Klip, a native macOS menu bar clipboard history app (macOS 14.0+), I wanted the speed of searchable clipboard history without turning my clipboard into a cloud log.

How Klip handles local privacy in practice

  • 100% offline, zero network calls: Everything stays on your Mac under ~/Library/Application Support/Klip/. No cloud sync, no telemetry, no analytics.
  • SQLCipher encryption with Keychain key storage: History entries are stored locally in an encrypted SQLCipher database, with the encryption key kept in the macOS System Keychain.
  • No Accessibility permission required: Press ⌘K (customizable in Settings → General) to search or filter by Text, Images, Links, or Files (Tab), then hit ⏎ to put the selected item back on the system clipboard and paste with ⌘V.
  • Per-app exclusions & lock-screen pause: In Settings → Privacy, you can exclude password managers or sensitive apps, pause recording manually anytime, or auto-pause when the screen locks.

Clearing history without losing what you need

You can pin frequently used commands or templates so they survive Clear History (Keep Pinned) in Settings → General.

If you want a lightweight, offline clipboard history manager for macOS 14+:

How do you keep sensitive snippets out of your clipboard history on macOS? Happy to hear how others set up their workflow.

Top comments (0)