617 Lines
  • TypeScript 66.8%
  • Markdown 18.5%
  • Yaml 8.4%
  • JSON 6.3%
README.md

pi-sync

/sync for pi: sync settings, extensions, skills, prompts, themes, instructions, sessions, and credentials. Snapshots are encrypted and identified by a single secret code.

Install

pi install npm:@tranoia/pi-sync

Then restart pi (or /reload).

Usage

/sync                          auto-sync
/sync init [--server URL]      create your identity + first snapshot, prints the code
/sync <code> [--server URL]    bootstrap this machine from that code
/sync status                   identity fingerprint, last sync
/sync push | pull              manual overrides
/sync destroy                  delete the server snapshot, stop syncing

Workflow: run /sync init on your main machine. On any other machine, pi install npm:@tranoia/pi-sync, then /sync <code>. /sync pushes local changes when they are newer, pulls when the server is newer.

Troubleshooting

  • /sync <code> does nothing at all — the extension is almost certainly not loaded in that session. After pi install, restart pi (or run /reload). Verify with pi list (package should be listed) and by typing / in pi: sync must appear in the command menu. If pi is older than the version this package was built for, extension load errors appear in the startup banner.
  • /sync hangs on "Fetching snapshot…" — the machine cannot reach the snapshot server. Test from that machine: curl -sI https://pi-sync.tranoia.com/ (or your --server URL).
  • Wrong hash → Nothing stored for this hash on … — check you copied the full 64-char hash from /sync init on the main machine.
  • /sync <code> --yes skips the restore confirmation dialog (useful in scripts).

Security notes

  • Snapshots are AES-256-GCM encrypted
  • The server has no auth

License

MIT

Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover