Space Backup

Space Backup for developers & AI agents

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 reference

Agent quick start

Told to “install Space Backup from spacebackup.net”? Do these in order:

  1. Install Space Backup on this computer (per user, no admin or root; prints one JSON result, "ok":true = installed and running):
    • Linux: curl -fsSL https://spacebackup.net/install.sh | sh
    • Windows (PowerShell): irm https://spacebackup.net/install.ps1 | iex
    • macOS: download the .dmg (/download/; the file is in /download/latest.json, platforms.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.

  2. Linux: if the result says "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.
  3. Connect the local MCP server: 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.
  4. Sign in: 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.
  5. Check: status (the daemon runs, the company, devices). Then do what the user asked: the skill below has the common jobs and the rules.

1. Connect your AI app (MCP)

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 Code

claude mcp add --scope user space-backup -- spacebackup mcp     # macOS, Linux
claude mcp add --scope user space-backup -- sbctl mcp           # Windows

Claude Desktop

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

~/.cursor/mcp.json (all projects) or .cursor/mcp.json (one project):

{ "mcpServers": { "space-backup": { "command": "spacebackup", "args": ["mcp"] } } }

VS Code

.vscode/mcp.json, or the user configuration (MCP: Open User Configuration):

{ "servers": { "space-backup": { "type": "stdio", "command": "sbctl", "args": ["mcp"] } } }

Any other MCP client

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.

2. Remote MCP for cloud agents

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.

Claude (claude.ai, Desktop, mobile)

Settings → Connectors → Add custom connector → paste the URL → Connect.

Claude Code

claude mcp add --transport http space-backup https://spacebackup.net/account/mcp
# then in Claude Code: /mcp → space-backup → Authenticate

Cursor

{ "mcpServers": { "space-backup": { "url": "https://spacebackup.net/account/mcp" } } }

VS Code

{ "servers": { "space-backup": { "type": "http", "url": "https://spacebackup.net/account/mcp" } } }

Any MCP client

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.

3. The Space Backup skill

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.md

Claude Code

Unzip into ~/.claude/skills/ (all projects) or .claude/skills/ of a project, so that space-backup/SKILL.md is inside.

Claude apps

Settings → Capabilities → Skills → upload space-backup-skill.zip.

Other agents

Point them at SKILL.md and its references, or at /llms-full.txt.

4. The command line

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 codeMeaning
0OK
1error
2bad usage (nothing was done)
3Space Backup is not running (start)
4partial: some items or destinations failed
5needs administrator / root
6not invited to the company yet
7this computer needs another name

The full CLI reference (every command, option and JSON field).

5. APIs

Account service

Sign-in, companies, devices, keys, shares, albums, links, relay billing: the HTTP API behind spacebackup.net/account.

Reference · openapi.yaml

Peer protocol

How Space Backup computers and phones talk to each other: discovery, backups, reads, tickets.

Reference · peer-protocol.yaml

Space Relay

The relay that connects computers that cannot reach each other directly, and the upload door for phones.

Reference · relay-protocol.yaml

All machine-readable specifications: /manual/api/.

6. For agents reading this site

/llms.txt: a map of everything above. /llms-full.txt: the skill, the MCP reference and the CLI reference in one plain-text file.