617 Lines
- TypeScript 66.8%
- Markdown 18.5%
- Yaml 8.4%
- JSON 6.3%
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. Afterpi install, restart pi (or run/reload). Verify withpi list(package should be listed) and by typing/in pi:syncmust 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./synchangs on "Fetching snapshot…" — the machine cannot reach the snapshot server. Test from that machine:curl -sI https://pi-sync.tranoia.com/(or your--serverURL).- Wrong hash →
Nothing stored for this hash on …— check you copied the full 64-char hash from/sync initon the main machine. /sync <code> --yesskips the restore confirmation dialog (useful in scripts).
Security notes
- Snapshots are AES-256-GCM encrypted
- The server has no auth
License
MIT