PasteVault
An open-source, E2EE pastebin with a VS Code-like editor
Quickstart
A) Share or download files from the terminal
macOS/Linux:
curl -fsSL https://raw.githubusercontent.com/arc53/pastevault/main/scripts/install.sh | sh
Windows PowerShell:
irm https://raw.githubusercontent.com/arc53/pastevault/main/scripts/install.ps1 | iex
Usage:
pastevault login
pastevault put ./report.pdf
pastevault put --burn --expires 1h ./secret.txt
echo "some text" | pastevault put -
pastevault get https://your-server.example/f/abc123#k=yourkey
pastevault get abc123#k=yourkey --stdout
pastevault whoami
pastevault logout
Every command, flag, JSON output shape and exit code is listed in docs/cli-reference.md.
The native CLI talks to https://api.pastevault.dev by default and emits public share links on https://pastevault.dev. pastevault login uses a browser link or short code flow on /device, and logged-in CLI uploads show up later in the web account dashboard. Override the defaults with PASTEVAULT_SERVER, PASTEVAULT_PUBLIC_URL, or --server when testing against another deployment.
For AI agents
PasteVault gives coding agents a way to get secrets without them passing through the chat, and to share files with people and other agents end to end encrypted:
pastevault agent init --name laptop # this machine's agent key
pastevault request OPENAI_API_KEY --why "run the evals" --wait
# → you open the printed /r/… link signed in and enter the value; the agent gets pv://secret/OPENAI_API_KEY
echo 'OPENAI_API_KEY=pv://secret/OPENAI_API_KEY' > .env.pv
pastevault run --env-file .env.pv -- npm test # value in the environment, masked in output
pastevault put .env --to build-bot # sealed to another agent: the link has no key
The same is available to agents as an MCP server (pastevault mcp) with a skill. In Claude Code:
/plugin install pastevault --marketplace arc53/pastevault
Codex, Gemini CLI, Cursor, Copilot and other MCP clients: see docs/agents.md. What the server can and cannot see: docs/security-model.md.
Native CLI updates
Direct binary installs check for a signed release in the background at most once a day. A verified update is staged without delaying the current command and installed on the next invocation. Homebrew-managed and non-writable installations only show a notification.
pastevault update # Check, confirm, and install now
pastevault update --check # Check without installing
pastevault update --yes # Install without confirmation
pastevault update --rollback # Restore the previous binary
pastevault config set-auto-update on # Automatic staging/installing (default)
pastevault config set-auto-update notify # Notify only
pastevault config set-auto-update off # Disable update checks
Set PASTEVAULT_NO_UPDATE_CHECK=1 to suppress passive checks for a particular environment. Automatic update output is written to stderr so machine-readable command output remains clean.
B) One command self-hosting (Node.js)
Requirements: Node.js 22.13+ or 24+ and npm.
npx pastevault up
C) Docker Compose (all-in-one)
Requirements: Docker and Docker Compose.
git clone https://github.com/arc53/pastevault.git
cd pastevault
docker compose -f docker-compose.all.yml up -d
Shutdown:
docker compose -f docker-compose.all.yml down
Features
- End-to-end encryption (XChaCha20-Poly1305) with client-side key generation
- Zero-knowledge: decryption key kept in URL fragment (#), never sent to server
- Optional password mode (PBKDF2) and per-paste expiry/burn-after-read
- Native Go client for terminal upload/download workflows, with
--json output and stable exit codes
- Agent-ready: API tokens, agent keys and shares sealed to an agent, secret requests answered in the browser, a local secret store with
pv://secret handles for pastevault run, an audit log, and an MCP server
- Markdown support with code syntax highlighting
- Simple REST API with validation and rate limiting
- SQLite (default) or PostgreSQL storage
CLI install paths
- Native client:
curl | sh on macOS/Linux, irm | iex on Windows
- Self-hosted server launcher:
npx pastevault up
- Homebrew:
brew install --cask arc53/DocsGPT-cli/pastevault
- Distribution details are documented in docs/distribution.md
Minimal configuration