Every button, menu and setting of Space Backup is a command, and every command is a tool your AI agent can call. Connect Claude, Cursor or VS Code over the Model Context Protocol, give your agent the Space Backup skill, or script the command line and the APIs directly.
Agent quick startConnect an AI appRemote MCPDownload the skillCLI referenceTold to “install Space Backup from spacebackup.net”? Do these in order:
"ok":true = installed and running):curl -fsSL https://spacebackup.net/install.sh | shirm https://spacebackup.net/install.ps1 | iexplatforms.macos), drag Space Backup to Applications and open it once. The command: "/Applications/Space Backup.app/Contents/MacOS/spacebackup"Linux result: warnings are optional steps that did not work (the install is fine), next are the steps below with full paths.
"linger":false, tell the user to run sudo loginctl enable-linger $USER (the service stops at logout otherwise, so no backups at night). The installer never runs sudo; do not run it without asking.claude mcp add --scope user space-backup -- spacebackup mcp (Windows: -- sbctl mcp). If spacebackup is not on PATH, give the full path: ~/.local/bin/spacebackup on Linux, %LOCALAPPDATA%\Programs\SpaceBackup\sbctl.exe on Windows, the app path above on macOS. Restart the agent session (or /mcp) so the tools appear.account_signin with the user's email (CLI: spacebackup account signin <email>). A mail brings a link and a 6-digit code: the user clicks the link, or gives you the code and you call account_code <code>. Then account_status: signed in, the company, encryption ready.status (the daemon runs, the company, devices). Then do what the user asked: the skill below has the common jobs and the rules.Space Backup includes a local MCP server: sbctl mcp on
Windows, spacebackup mcp on macOS and Linux. It comes with the normal install (version 0.16.23
or later) and talks to the Space Backup app running on the same computer, as you. Nothing listens on the network.
Every command is a tool (status, folders_add, now, runs_show,
restore, photos_search, …) with a JSON input schema; the answer is the command's JSON.
Tools that delete, remove, overwrite or change keys and access are marked destructive, so your AI app asks you
first. Long-running watches are bounded (at most 5 minutes per call).
claude mcp add --scope user space-backup -- spacebackup mcp # macOS, Linux
claude mcp add --scope user space-backup -- sbctl mcp # Windows
Settings → Developer → Edit Config (claude_desktop_config.json), then restart Claude Desktop.
macOS: "/Applications/Space Backup.app/Contents/MacOS/spacebackup"; Linux:
"/home/YOU/.local/bin/spacebackup".
{
"mcpServers": {
"space-backup": {
"command": "C:\\Users\\YOU\\AppData\\Local\\Programs\\SpaceBackup\\sbctl.exe",
"args": ["mcp"]
}
}
}
~/.cursor/mcp.json (all projects) or .cursor/mcp.json (one project):
{ "mcpServers": { "space-backup": { "command": "spacebackup", "args": ["mcp"] } } }
.vscode/mcp.json, or the user configuration (MCP: Open User Configuration):
{ "servers": { "space-backup": { "type": "stdio", "command": "sbctl", "args": ["mcp"] } } }
A stdio server: command sbctl (Windows, %LOCALAPPDATA%\Programs\SpaceBackup\sbctl.exe) or
spacebackup (macOS, Linux), argument mcp. Check it by hand:
printf '%s\n' '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{}}' \
'{"jsonrpc":"2.0","id":2,"method":"tools/list"}' | spacebackup mcp
Everything about the tools, their annotations, streams, timeouts and secrets: the MCP reference.
No Space Backup on the agent's computer? Connect it to your Space Backup account instead:
https://spacebackup.net/account/mcp
It is a remote MCP server (Streamable HTTP) with OAuth 2.1: your AI app opens the Space Backup sign-in (the same email link or code as the website), you choose Allow, Allow reading only or Deny, and the agent then acts as you, with your role (owner, admin or member) and nothing more. It manages the company: devices and their last backup, members and invitations, groups, albums, shares, the relay balance, and asks a PC to back up now. Reading tools are marked read-only and every change destructive, so your AI app asks you first. It can never open files, photos or keys: they stay end-to-end encrypted on your PCs. Every call is in your company's audit log; disconnect an agent any time under Your account, AI agents.
Settings → Connectors → Add custom connector → paste the URL → Connect.
claude mcp add --transport http space-backup https://spacebackup.net/account/mcp
# then in Claude Code: /mcp → space-backup → Authenticate
{ "mcpServers": { "space-backup": { "url": "https://spacebackup.net/account/mcp" } } }
{ "servers": { "space-backup": { "type": "http", "url": "https://spacebackup.net/account/mcp" } } }
Point it at the URL: a request without a token answers 401 with the protected resource metadata, which names the
authorization server (https://spacebackup.net/account: dynamic client registration or a client id
metadata document, PKCE S256, scopes read and write). Limits: 60 calls a minute and 1000 an
hour per connection, 120 changes an hour per member. Tools, protocol and limits: the MCP
reference, Remote.
An Agent Skill that teaches your agent to do the common jobs well (back up a folder, run now and wait, restore safely to a new folder first, find photos, check health, read exit codes) and the rules: never delete or remove anything unless you said so, and never print the company key.
Download space-backup-skill.zipRead SKILL.mdUnzip into ~/.claude/skills/ (all projects) or
.claude/skills/ of a project, so that space-backup/SKILL.md is inside.
Settings → Capabilities → Skills → upload
space-backup-skill.zip.
Point them at SKILL.md and its references, or at /llms-full.txt.
The same commands on every platform: sbctl on Windows, spacebackup on macOS and Linux.
--json gives one JSON document per command (one object per line for streams), the exit codes are
documented, and the CLI never prompts.
sbctl status --json # Windows; spacebackup on macOS and Linux
sbctl folders add "D:\Projects" --dest auto:2 --frequency weekly
sbctl now --wait --json # exit 0 ok, 4 partial: see runs show last
sbctl runs show last --json
sbctl restore "D:\Projects\Quote" --date 2026-10-28 --to "D:\Restored" --json
sbctl explain "D:\Projects\quote.xlsx"
sbctl photos search "beach 2025" --json
| Exit code | Meaning |
|---|---|
| 0 | OK |
| 1 | error |
| 2 | bad usage (nothing was done) |
| 3 | Space Backup is not running (start) |
| 4 | partial: some items or destinations failed |
| 5 | needs administrator / root |
| 6 | not invited to the company yet |
| 7 | this computer needs another name |
The full CLI reference (every command, option and JSON field).
Sign-in, companies, devices, keys, shares, albums, links, relay billing: the HTTP API behind spacebackup.net/account.
How Space Backup computers and phones talk to each other: discovery, backups, reads, tickets.
The relay that connects computers that cannot reach each other directly, and the upload door for phones.
All machine-readable specifications: /manual/api/.
/llms.txt: a map of everything above. /llms-full.txt: the skill, the MCP reference and the CLI reference in one plain-text file.