Run PromptBackup in Docker
For Linux and macOS, or if you prefer containers. PromptBackup and its own PostgreSQL database run on your computer, and only your computer can reach them. On Windows the setup is simpler: it also connects your AI tools for you.
1. What you need
- Docker Desktop (Windows, macOS) or Docker Engine with the Compose plugin (Linux).
- About 700 MB of disk space for the images, plus room for your saved answers.
- An Intel, AMD or ARM computer, Macs with Apple silicon included.
2. Start PromptBackup
In an empty folder, download the Compose file and start it:
curl -fsSLO https://promptbackups.com/docker-compose.yml
docker compose up -d
Then open http://localhost:18080. In Windows PowerShell, type
curl.exe instead of curl.
Port 18080 already taken? Start it with PROMPTBACKUP_PORT=18081 docker compose up -d,
and use that port in the steps below.
3. Connect your AI tools
The commands below are for a macOS or Linux terminal, or Git Bash on Windows.
Claude Code
claude mcp add --scope user --transport http prompt-backup http://localhost:18080/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 from the command palette. It opens your mcp.json;
make it contain PromptBackup:
{
"servers": {
"prompt-backup": { "type": "http", "url": "http://localhost:18080/mcp" }
}
}
If the file already lists other servers, add only the "prompt-backup" line inside
"servers". Then add the instructions that ask Copilot to back up every answer:
mkdir -p ~/.copilot
curl -fsSL https://promptbackups.com/copilot-instructions.md >> ~/.copilot/copilot-instructions.md
Reload VS Code (Developer: Reload Window) and use Copilot Chat in Agent mode, where it can use PromptBackup's tools.
GitHub Copilot in IntelliJ and other JetBrains IDEs
Click the GitHub Copilot icon in the status bar, choose Edit settings, and under
MCP click Edit in mcp.json. Add the same "prompt-backup" entry
inside "servers", as for VS Code.
Then paste the instructions under Settings › Tools › GitHub Copilot › Customizations › Global, and use Copilot Chat in Agent mode.
GitHub Copilot CLI
In Copilot CLI, run /mcp add, name the server prompt-backup, choose
HTTP and enter http://localhost:18080/mcp. It reads the same
~/.copilot/copilot-instructions.md as VS Code, so add the instructions as shown above if you haven't
yet.
Claude Desktop
Open Settings › Developer › Edit Config and add PromptBackup to mcpServers:
"prompt-backup": {
"command": "docker",
"args": ["exec", "-i", "promptbackup-app-1",
"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. On macOS, if Claude can't find docker, write its full path instead,
such as /usr/local/bin/docker.
4. Your data
- Your saved answers are in the Docker volume
promptbackup_db. Nightly backups are inpromptbackup_backups, and the app's Backup page lists them. - Update:
docker compose pull && docker compose up -d. Your data stays. - Stop:
docker compose down. Adding-valso deletes your data.
The browser extension
The Chrome extension, which saves answers from ChatGPT, Gemini, Claude and other sites, comes with the Windows setup
for now. On the same computer it finds PromptBackup at http://localhost:18080 on its own. From
PromptBackup 1.3.0 it can also save to one on another computer of your network: enter that address under
Server in its toolbar popup and click Save settings; Chrome asks once.
The image is connctedkart/promptbackup on Docker Hub. It's free under the same license as the setup. Running a cluster? See Kubernetes. Stuck? Contact us.