Upgrade
How to upgrade bproxy to a new version without losing state.
Upgrade the CLI and daemon
Section titled “Upgrade the CLI and daemon”npm update -g @dimdasci/bproxyVerify:
bproxy --versionUpgrade the extension
Section titled “Upgrade the extension”- Download the new
bproxy-extension-v{version}.zipfrom GitHub Releases - Extract to the same directory you used for the original install (overwrite existing files)
- Open
chrome://extensions - Find the bproxy extension and click the reload icon (↻)
What persists across upgrades
Section titled “What persists across upgrades”- Tokens persist — your daemon token (
~/.bproxy/token) and extension token (~/.bproxy/extension-token) remain valid. No re-pairing is needed unless the protocol version changes. - State directory —
~/.bproxy/is preserved as-is. Session artifacts intmp/are ephemeral and may be cleaned by the daemon on restart. - Auto-start registration — if you ran
bproxy service install, the launchd/systemd entry continues to work after normal npm updates.
Protocol version mismatch
Section titled “Protocol version mismatch”If a new version changes the protocol version (rare), the extension popup will show a connection error after upgrading only one side. To resolve:
- Upgrade both CLI/daemon and extension to the same release
- Restart the daemon:
bproxy service restart - If the extension still shows an error: re-pair with
bproxy service startand enter the new pairing code
The bproxy doctor command will report protocol mismatches explicitly:
bproxy doctor# "protocol": { "ok": false, "cli": 2, "daemon": 1 }Upgrade with auto-start
Section titled “Upgrade with auto-start”If the daemon is registered as a system service:
bproxy service stopnpm update -g @dimdasci/bproxybproxy service startThe service registration does not need to be reinstalled — it references bproxy-service by PATH.