pi-export-config
v1.0.0
Published
Pi extension to export, import, SSH-transfer, and GitHub-sync pi configuration including extension secrets.
Downloads
126
Maintainers
Readme
pi-export-config
Pi package that adds commands for backing up and restoring ~/.pi/agent configuration, including extensions, themes, skills, auth files, MCP config, and extension secrets/state.
Security: this extension intentionally handles secrets. Review archives and keep private repositories private.
Install
pi install npm:pi-export-configThen run /reload if pi is already open.
Commands
Local encrypted export/import
/export-config [output-path]
/import-config <archive-path> <password>/export-config creates a password-protected archive and prints a generated 12-character lowercase alphanumeric password.
SSH import
/import-config user@hostTries SSH public-key auth first. If it fails, prompts for a password and uses sshpass if available. Remote exports are stored on the remote machine under ~/.pi/agent/export-config/ and are unencrypted because transport is protected by SSH.
GitHub sync
/export-config-github [owner/repo|repo]
/import-config-github [owner/repo|repo]Uses the GitHub CLI (gh) and creates/uses a private repository. Default repo name is pi-config-backup.
Clean import
Import flows can perform a clean import: the current config is backed up, then current ~/.pi/agent is reset except for sessions/ and backups/, then the selected config is applied.
Requirements
taropensslfor local encrypted archivessshfor SSH importsshpassonly for SSH password fallbackghandgitfor GitHub sync
