Share code snippets securely
Self-hosted paste service with end-to-end encryption, CLI tool, webhooks, and full control over your data.
End-to-End Encryption
Mode B encrypts content in the browser. The key lives only in the URL fragment and never reaches the server.
Envelope Encryption
Mode A uses XChaCha20-Poly1305 with per-paste keys wrapped by a master key. Military-grade AEAD cipher.
Burn After Read
Pastes can self-destruct after a single view. Perfect for sharing sensitive credentials.
TTL Expiration
Set time-to-live on pastes. Expired content is automatically cleaned up by a background worker.
Webhooks
Get notified on paste events via HTTP webhooks with HMAC-SHA256 signed payloads and automatic retries.
Telegram Notifications
Link Telegram chats to receive instant notifications when new pastes are created.
Syntax Highlighting
Powered by highlight.js with support for 190+ languages and markdown rendering via markdown-it.
Self-Hosted
Deploy on your own infrastructure. Your data stays on your servers. No third-party dependencies.
Powerful CLI
Create, retrieve, and manage pastes right from your terminal.
# Install globally npx @pastebox/cli config --url https://paste.example.com # Create a paste from a file npx @pastebox/cli create --title "config" --syntax yaml < k8s.yml # Create an E2EE paste (key never leaves your machine) npx @pastebox/cli create --e2ee < secret-notes.md # Pipe from any command git diff | npx @pastebox/cli create --title "my changes" # List recent pastes npx @pastebox/cli list
Ready to deploy?
Get started with Docker Compose in under 5 minutes.