CLI plugin updates
The CLI plugin updates itself. A few hours after a release it installs the new version the same way it was installed, with the same channel. It installs nothing that does not carry PanDev's signature. If any step fails, the version you have keeps working.
Automatic updates come with the CLI plugin 2.5.25 and later. They cover the three ways the plugin is installed:
| Install | Platform | How the update is installed |
|---|---|---|
| Homebrew | macOS; Linux, where PanDev was installed with Homebrew | brew upgrade of the PanDev formula only |
Direct install (~/.pandev) | Linux, macOS without Homebrew | the channel's installer, with a rollback |
| MSIX package | Windows | the channel's installer, run by a one-time Task Scheduler task |
Not updated:
npx pandev. It never connects anywhere, andpandev updateis not part of that package. You get the current version on everynpx pandevrun.- The
.debpackage. It is built locally and is not published. - Versions before 2.5.25. They have no automatic updates. Update them once by re-running the install command from your platform guide: macOS, Linux, Windows.
The plugin updates itself. PanDev never asks for a password for an update and never sends you a file to install — not by email, in a chat, by phone or on a web page. If a message from PanDev names a command, it is only pandev update or the install command from your platform guide in this documentation. A message that asks for a password, attaches a file, or gives any other command or download address is fake: do not follow it, and tell your administrator. To check a file someone sent you, run pandev verify <file>.
How it works
- The check. The plugin's background process (the watcher) checks for updates 10 minutes after it starts, then every 6 hours plus a random delay of up to 30 minutes. It downloads the signed update manifest of its channel (
betaorprod) from GitHub. Inoffmode there is no check and no connection. - The decision. The plugin checks the manifest's signature and dates (see what the plugin checks) and compares the version with the installed one. A newer version is installed in
automode; innotifymode the plugin only announces it. - No waiting for agents. Since 2.5.27 the plugin installs a new version as soon as it finds one, even while an AI agent is working. The watcher is down for a few seconds (longer on Windows), and what agents log in those seconds may not be counted. Versions 2.5.25 and 2.5.26 waited for 5 quiet minutes in agent session logs, so on a machine where agents work all day they may never update themselves: run
pandev updatethere once. - The download. For a direct or Windows install, the release archive for your platform and the channel's installer go to a private folder; size and SHA-256 of both must match the signed manifest, or nothing is installed. For Homebrew, the plugin checks the formula in its tap against the manifest, and Homebrew checks the archive against the formula.
- The installation. The installer runs outside the watcher's own service: in a separate systemd user unit or a new session on Linux, in a one-time launchd job on macOS, in a one-time Task Scheduler task on Windows. Its output goes to a log file (see where to look).
- The confirmation. The new watcher starts and records the outcome. An installation that did not bring up the new version counts as a failed attempt. After two failed attempts that version is skipped until the next release;
pandev updatestill installs it by hand.
How each install type replaces itself:
- Direct install. The new version is unpacked next to the current one and test-started first. Only then does the installer stop the service and swap the files; on any failure the previous version comes back and starts again.
- Homebrew. The plugin refreshes the PanDev tap, checks that the formula in it is the one PanDev signed, and runs
brew upgradefor that formula only. It does not runbrew updateand does not upgrade or clean up other formulas. - Windows. The installer checks the package signature and the publisher (
CN=PanDev, O=PanDev, L=Almaty, C=KZ) and installs the package for your user, without administrator rights.
Windows stops every process of the package during the installation: the watcher, pandev-mcp.exe used by Claude Code or Claude Desktop, and any pandev running in an agent session. Since 2.5.27 this can happen while an agent is working, and a PanDev tool call at that moment fails. If an agent loses the PanDev MCP server afterwards, reconnect it: /mcp in Claude Code, restart Claude Desktop. A pandev update you run by hand also installs through the task and shows its log, and Windows usually closes this command midway too. Open a new window and run pandev status to see how the update ended.
If a Windows policy does not allow creating scheduled tasks, the plugin cannot install updates by itself. It switches to announcing them, downloads nothing, and asks Task Scheduler again at the next check.
What is signed
From version 2.5.25 each release publishes a signed update manifest for its channel next to the installers in the public repository pandev-metriks/pandev-cli. The prod channel gets its manifest with its first release that has automatic updates; until then update/prod.json does not exist.
| File | What it is |
|---|---|
update/beta.json, update/prod.json | the manifest: channel, version, release tag, signing time issued_at, expiry expires_at, paused, revoked, and the SHA-256 and size of every release archive, of the Homebrew formula and of the channel's installers |
update/beta.json.sig, update/prod.json.sig | an Ed25519 signature over the exact bytes of the manifest, Base64 on one line |
PanDev's release pipeline signs the manifest only after it has downloaded every published release file itself and checked the plugin code in each archive against a separate build of the same source. The signing key is kept in PanDev's key vault, outside GitHub, and cannot be exported. Someone who breaks into the GitHub repository can replace files there but cannot sign them.
The manifest is valid for 14 days from signing. An expired manifest installs nothing until PanDev publishes a fresh one — with the next release or by re-signing the current one. PanDev can pause updates of a channel (paused) or withdraw a version (revoked): plugins stop installing it at their next check.
What the plugin checks
The plugin installs a version only when all of these hold, in this order:
- The signature verifies with one of the two PanDev public keys built into the plugin.
- The manifest is for the channel it was downloaded as.
- It was signed no more than a day ahead of the computer's clock, and it is valid for no more than 14 days.
- It has not expired.
- It is not older than a manifest this computer has already seen — so an old manifest cannot roll the plugin back.
- Its version is newer than the installed one, is not withdrawn, and the channel is not paused.
- The downloaded archive and installer match the manifest in size and SHA-256. For Homebrew: the formula in the tap matches the manifest, and Homebrew checks the archive against the formula.
A failed check installs nothing; the reason is in pandev update --check and pandev status.
Public keys
| Key | Public key (Ed25519, Base64) | Fingerprint (SHA-256 of the 32 key bytes) |
|---|---|---|
pandev-cli-update — signs releases | XLRIcZXpoY0euzbXtKc0QCgf7+p3zDSqaylb13/ori4= | sha256:ff101c5c094e66786cae72ebe6c1eda1413f50444757cca7aa3b4df8e3aaf271 |
pandev-cli-update-reserve — reserve | COJ+CW0vEWgjDw4FV9ITEukCWfI8Ozvr5+nUgJQkfTw= | sha256:b068a8ef64fd7b4153358de6b155f57e426b159976111432ef87705b931a6bfc |
The reserve key signs nothing today. It lets PanDev replace the working key without leaving existing installs unable to check updates. pandev update --check and pandev verify print the name and the start of the fingerprint of the key that signed the manifest.
Modes
| Mode | What happens |
|---|---|
auto (default) | new versions install by themselves |
notify | new versions are announced in the terminal and in pandev status; pandev update installs them |
off | no checks and no connections; pandev update by hand still works |
pandev update --auto # install by themselves (default)
pandev update --notify # only announce
pandev update --off # neither
An administrator policy overrides your choice; pandev status then shows who set the mode.
The terminal notice
When something needs your attention — a new version in notify mode, a failed update, a skipped version, a manifest refused twice in a row, on Windows a policy that blocks the installation — a new terminal prints one line about it. It is printed:
- in interactive bash and zsh, to stderr; in PowerShell, by the prompt (the Git Bash hook does not print it);
- at most once a day for all terminals together;
- from a local file the watcher writes, without any network access.
No access to GitHub, a paused channel and a withdrawn version are not failures and print nothing. Turn the line off or back on:
pandev update --notice off
pandev update --notice on
Commands
pandev update --help lists the same commands.
| Command | What it does |
|---|---|
pandev update --check | shows what is available, and why it is or is not installed. Downloads nothing but the manifest |
pandev update | installs the new version of this install's channel now, showing every step |
pandev update --from <archive> | installs a downloaded release archive without GitHub, with the same checks; direct install only — see closed networks |
pandev update --auto|--notify|--off | sets the mode |
pandev update --notice on|off | turns the terminal notice on or off |
pandev verify <file> | tells whether a file is a PanDev release file signed in a current manifest |
Exit code: 0 — done, 1 — refused (the reason is printed), 2 — wrong arguments.
pandev verify
pandev verify checks a release archive, an installer or a Homebrew formula against the signed manifests of both channels:
$ pandev verify pandev-cli-plugin_2.5.25_Linux_amd64.tar.gz
✓ Signature valid: pandev-cli-plugin_2.5.25_Linux_amd64.tar.gz is pandev-cli-plugin_2.5.25_Linux_amd64.tar.gz of PanDev 2.5.25 (beta channel), signed with pandev-cli-update (sha256:ff101c5c094e6678...).
A file changed by a single byte is refused, with both checksums:
$ pandev verify pandev-cli-plugin_2.5.25_Linux_amd64.tar.gz
✗ sha256 of pandev-cli-plugin_2.5.25_Linux_amd64.tar.gz does not match the signed manifest: it is not the file PanDev published as pandev-cli-plugin_2.5.25_Linux_amd64.tar.gz (beta 2.5.25). Expected sha256 e2f81019096165d135f644251a0e132dfc6c75f9335a7938dbb7974bb1d42ec3, 58327497 bytes; this file is 43478426767d6279d1322d75e900e58b662e7a9b26dbe375d1113a4f1e750c12, 58327497 bytes.
- Only the current release of each channel is in its manifest. A file of an older release, or of the prod channel before its first manifest, gets
matches nothing in PanDev's signed manifests— or, for an installer or a formula, whose names carry no version, a checksum mismatch. Neither makes the file forged: it cannot be checked this way. Report a mismatch for an archive of the version the manifest names, or for an installer or formula downloaded together with the manifest. pandev verifytakes a channel's manifest from next to the file when<channel>.jsonand<channel>.json.siglie there, and downloads it from GitHub otherwise. Offline, one pair next to the file is enough.
pandev status
pandev status shows the update state of this computer without going online:
| Line | What it says |
|---|---|
Version | the installed version |
Channel | prod or beta, and where that is known from: the install receipt, the Homebrew formula, or the release list |
Install | Homebrew, direct install or MSIX package, and where |
Last update check | when, and the result: up to date, a version available, no access to GitHub, or why it was not updated |
Automatic updates | the mode and who set it: default, you, or your administrator |
Last automatic update | the last automatic installation and how it ended |
Terminal notice | on or off |
Updates | PanDev never asks you to run commands or enter passwords to update it |
Administrator policy
An administrator can set the mode for every user of a computer and keep PanDev at one version. The policy overrides the user's own setting and also applies to pandev update run by hand.
| Platform | Where |
|---|---|
| Linux | /etc/pandev/policy.json |
| macOS | managed preferences of the domain io.pandev from an MDM configuration profile (/Library/Managed Preferences/<user>/io.pandev.plist, then /Library/Managed Preferences/io.pandev.plist), or the file /Library/Application Support/PanDev/policy.json. The first one found applies |
| Windows | registry key HKLM\Software\Policies\PanDev |
Settings:
| File and macOS profile key | Windows registry value (REG_SZ) | Values |
|---|---|---|
update_mode | Mode | auto, notify or off |
update_version | PinVersion | a version such as 2.5.25: no other version is installed, automatically or by hand |
Linux and macOS file example:
{
"update_mode": "notify",
"update_version": "2.5.25"
}
Windows, from PowerShell or a command prompt run as administrator:
reg add HKLM\Software\Policies\PanDev /v Mode /t REG_SZ /d notify /f
reg add HKLM\Software\Policies\PanDev /v PinVersion /t REG_SZ /d 2.5.25 /f
offset by the administrator stops automatic and manual installation.pandev update --checkstill shows what is available.- An empty Windows value means "not set".
- A policy the plugin cannot read — invalid JSON, an unknown mode, a folder the user cannot open, a value that is not text — counts as
off. The reason is inpandev status. A typo never turns updates on where an administrator turned them off. - The terminal notice stays the user's choice.
- Uninstalling PanDev does not remove the policy.
Network and firewall
Updates need outbound HTTPS (TCP 443) to GitHub only:
| Host | What for |
|---|---|
raw.githubusercontent.com | the manifest, its signature and the installers |
github.com | release downloads; the Homebrew tap; the release list, when the channel of an older install is not recorded |
objects.githubusercontent.com, release-assets.githubusercontent.com | GitHub serves release files from here after a redirect |
- What goes out. Plain downloads of public files from fixed addresses built into the plugin, with the User-Agent
pandev-cli-plugin/<version>. No token, no account and no data about you; GitHub sees your IP address and that User-Agent, as with any download. The update check sends nothing to the PanDev Metrics server. - Homebrew installs. The tap refresh (
git) andbrew upgradeare Homebrew's own programs: they download from the same GitHub hosts with their own User-Agent and proxy settings, and Homebrew may also contact its own servers as your Homebrew settings allow (its analytics, for example). - Redirects are followed only over HTTPS and only to the hosts above. No address is taken from the environment, from files in your home folder or from a server's answer, and there is no setting for another download address.
- Proxies. The plugin connects directly: it does not read
HTTPS_PROXYor the operating system's proxy settings. Where HTTPS goes out only through a proxy, use the closed-network route.
Closed networks
Without access to GitHub nothing breaks: the plugin keeps working on its version, pandev update --check says No access to GitHub (…): updates cannot be checked., and pandev status shows it. To update such a computer, bring the release files over from a machine with access.
Direct install (~/.pandev). Put these four files into one folder:
| File | Where to get it |
|---|---|
the archive for the platform, for example pandev-cli-plugin_2.5.25_Linux_amd64.tar.gz | the Releases page |
<channel>.json and <channel>.json.sig | https://raw.githubusercontent.com/pandev-metriks/pandev-cli/main/update/ |
the channel's installer: install.sh for prod, install-experimental.sh for beta | the root of https://raw.githubusercontent.com/pandev-metriks/pandev-cli/main/ |
Then:
pandev update --from /path/to/folder/pandev-cli-plugin_2.5.25_Linux_amd64.tar.gz
The checks are the same as online: the signature, the dates, the version, the size and SHA-256 of the archive and of the installer. The manifest is valid for 14 days after it was signed, so copy a fresh one.
Windows. pandev update --from is not available for the MSIX package. Copy the same set: pandev-cli-plugin_<version>_Windows_amd64.zip, <channel>.json, <channel>.json.sig, and install.ps1 (prod) or install-experimental.ps1 (beta). Check the archive and the installer, unpack the archive and install from the unpacked folder — the same installer call the automatic update makes. Run it yourself, in your own regular PowerShell window, without administrator rights: Windows installs the package for the account that runs the installer.
pandev verify .\pandev-cli-plugin_2.5.25_Windows_amd64.zip
pandev verify .\install.ps1
Expand-Archive .\pandev-cli-plugin_2.5.25_Windows_amd64.zip "$PWD\pandev-2.5.25"
powershell -NoProfile -ExecutionPolicy Bypass -File .\install.ps1 -From "$PWD\pandev-2.5.25"
Homebrew (macOS or Linux). Homebrew downloads the release from GitHub itself; there is no offline route.
Check a file by hand
pandev verify does this for you. Without PanDev you need OpenSSL 3.0 or later — the openssl that comes with macOS is LibreSSL and cannot do this. The example is for the beta channel:
curl -fsSLO https://raw.githubusercontent.com/pandev-metriks/pandev-cli/main/update/beta.json
curl -fsSLO https://raw.githubusercontent.com/pandev-metriks/pandev-cli/main/update/beta.json.sig
# the pandev-cli-update public key from the table above
printf -- '-----BEGIN PUBLIC KEY-----\nMCowBQYDK2VwAyEA%s\n-----END PUBLIC KEY-----\n' \
'XLRIcZXpoY0euzbXtKc0QCgf7+p3zDSqaylb13/ori4=' > pandev-cli-update.pem
openssl base64 -d -A -in beta.json.sig -out beta.json.sig.bin
openssl pkeyutl -verify -pubin -inkey pandev-cli-update.pem -rawin -in beta.json -sigfile beta.json.sig.bin
# Signature Verified Successfully
Then compare the file's SHA-256 with its entry under assets (archives), installers or formula in beta.json:
sha256sum pandev-cli-plugin_2.5.25_Linux_amd64.tar.gz # Linux
shasum -a 256 pandev-cli-plugin_2.5.25_macOS_arm64.tar.gz # macOS
Get-FileHash .\pandev-cli-plugin_2.5.25_Windows_amd64.zip -Algorithm SHA256 # Windows
Pass the file to openssl as a file, not through a pipe. If the signature does not verify with pandev-cli-update, try the reserve key. If it verifies with neither, the manifest is not PanDev's. If the checksums differ for an archive of the version the manifest names, or for an installer or formula downloaded together with the manifest, the file is not the one PanDev published. An installer or formula saved earlier may simply be from an older release.
Where to look
| What | Linux, macOS | Windows (the package's LocalState folder) |
|---|---|---|
| Last check and last automatic update | ~/.config/pandev/update-state.json | update-state.json |
| Your mode and notice settings | ~/.config/pandev/update-settings.json | update-settings.json |
| Output of the last background update | ~/.config/pandev/update/last-run.log | update\last-run.log (preparation) and update\apply.log (the installer) |
pandev status reads them for you. On Linux and macOS pandev --uninstall waits up to 3 minutes for a running update to finish and removes these files with the rest of PanDev; on Windows they go away with the package.
Troubleshooting
No access to GitHub (…): updates cannot be checked.
The computer cannot reach the hosts in Network and firewall, or HTTPS goes out only through a proxy. Open the hosts, or use the closed-network route. The plugin keeps working on its current version meanwhile.
… update manifest does not verify with PanDev's signing keys … right after a release
GitHub caches the manifest and its signature separately for up to 5 minutes, so right after a release they can briefly disagree. The plugin tries again in 15 minutes and prints the terminal notice only if the second attempt fails too. If the message stays for hours, report it to PanDev and install nothing by hand.
The signed … update manifest expired … or … more than a day ahead of this computer's clock …
Check the computer's date and time first. If the clock is right and the manifest has expired, PanDev has not re-signed it yet: nothing is installed until a fresh one is published.
This Homebrew install of PanDev comes from the tap …, which no longer gets updates.
PanDev <version> is skipped after 2 failed installs
The version failed to install twice and will not be tried again automatically. The reason is in pandev status, and the installer output is in the log of the last background update (see where to look). Fix the cause and run pandev update; the next release is tried automatically as usual.
Windows: notify only: Windows does not let PanDev install updates by itself here
A policy forbids creating scheduled tasks, or the Task Scheduler service is off. Updates are announced but not installed. An administrator can allow the task, or the new version can be installed with the install command from Settings → Plugins → CLI in PanDev Metrics or from the Windows guide.