Run PromptBackup on Kubernetes
For a home lab or a small team: one PromptBackup on your cluster, shared by several computers on your network. It runs with its own PostgreSQL 17, and your saved chats stay on your network.
PromptBackup has no login: anyone who can reach it can read and change the saved chats. Run it only on a network you trust.
1. What you need
- A Kubernetes cluster and
kubectlaccess to it. - A default StorageClass for two volumes: 5 GB for the database and 2 GB for the nightly backups.
- Intel, AMD or ARM nodes: the image is built for both.
2. Deploy it
Download the manifest, and put in the address people will type: a node's IP address or name.
curl -fsSLO https://promptbackups.com/kubernetes.yaml
sed -i 's/REPLACE-WITH-NODE-ADDRESS/192.168.1.43/' kubernetes.yaml
Apply it, and give the database a random password that nobody needs to know:
kubectl apply -f kubernetes.yaml
kubectl -n promptbackup create secret generic promptbackup-db \
--from-literal=DB_PASSWORD="$(openssl rand -base64 24)"
kubectl -n promptbackup rollout status deploy/promptbackup
Then open http://192.168.1.43:31880, with your node's address. Your AI tools connect to
http://192.168.1.43:31880/mcp.
On macOS, sed needs sed -i ''. Port 31880 taken? Change
nodePort in the file. Already run PostgreSQL 17? Remove the promptbackup-db parts and point
DB_URL and DB_USERNAME at your database.
3. Connect your AI tools
On each computer, with your node's address instead of 192.168.1.43. The commands are for a macOS or Linux terminal, or Git Bash on Windows.
Claude Code
claude mcp add --scope user --transport http prompt-backup http://192.168.1.43:31880/mcp
curl -fsSL https://promptbackups.com/claude-instructions.md >> ~/.claude/CLAUDE.md
The first line connects PromptBackup for all your projects. The second adds the instructions to back up every answer; run it once. Then restart Claude Code.
GitHub Copilot
In VS Code, run MCP: Open User Configuration and add PromptBackup to servers:
"prompt-backup": { "type": "http", "url": "http://192.168.1.43:31880/mcp" }
Then add the instructions and use Copilot Chat in Agent mode. For IntelliJ and the Copilot CLI, follow the Docker page with this address.
Claude Desktop
Claude Desktop starts PromptBackup's bridge inside the pod, so the computer needs kubectl with access to
the cluster. Open Settings › Developer › Edit Config and add to mcpServers:
"prompt-backup": {
"command": "kubectl",
"args": ["-n", "promptbackup", "exec", "-i", "deploy/promptbackup", "-c", "app", "--",
"java", "-jar", "/app/prompt-store.war", "mcp-stdio"]
}
Quit Claude Desktop and open it again. The first time Claude uses a PromptBackup tool, choose Always allow.
Chrome extension
From version 1.3, the extension can save to a server on your network: enter
http://192.168.1.43:31880 under Server in its toolbar popup and click
Save settings; Chrome asks once to let it reach that address. The extension comes with the
Windows setup, version 1.3 from PromptBackup 1.3.0.
4. Your data
- Your saved chats are in the volume
promptbackup-db. The nightly backups are inpromptbackup-backups, and the app's Backup page lists them. - Update:
kubectl -n promptbackup set image deploy/promptbackup app=connctedkart/promptbackup:<version>, with a version from Docker Hub. Your data stays. - Only for one computer, not the whole network: use
kubectl -n promptbackup port-forward svc/promptbackup 18080:18080andhttp://localhost:18080. - Remove:
kubectl delete namespace promptbackupalso deletes the volumes with your data, so export it first on the Backup page.
The image is connctedkart/promptbackup on Docker Hub. Just one computer? Run it with Docker Compose. Stuck? Contact us.