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 and configure once npm install -g pastebox pastebox config --url https://paste.example.com --api-key pb_... # Create a paste from a file pastebox create --title "config" --syntax yaml < k8s.yml # Create an E2EE paste (key never leaves your machine) pastebox create --e2ee < secret-notes.md # Pipe from any command git diff | pastebox create --title "my changes" # List recent pastes pastebox list
For Agents
Drop Pastebox into your coding agent — it pastes long output and hands back a link, so the chat stays clean.
Claude Code
Agent Skill — triggers on "paste this" and shells out to the CLI.
unzip -o pastebox-claude-code.zip \ -d ~/.claude/skills/Download
Codex
An AGENTS.md section for your repo root (or ~/.codex).
unzip -o pastebox-codex.zip -d .Download
Cursor
A project rule plus a native MCP create_paste tool.
unzip -o pastebox-cursor.zip -d .Download
Any MCP agent
Native create_paste tool over the Model Context Protocol.
npx -y pastebox-mcpDownload
Ready to deploy?
Get started with Docker Compose in under 5 minutes.