OpenProgram Docs

Upgrade

Installed asUpdateGo back
macOS AppWhen a new version is out, New appears beside the OpenProgram name at the top left. Click it, then Download update; once it is downloaded, Restart to update. To look sooner: Settings → Versions and Updates → Application → Check now. An App outside a folder it can write gets Download and open installer instead: save the DMG, quit with Command-Q, drag it onto the copy in Applications and choose Replace.Download that version's DMG from GitHub Releases and replace the App the same way.
Windows or Linux AppSame buttons; the new version installs in place. When a release needs a newer App:
Windows and AppImage: click New, Download update, then Restart to update.
deb: sudo apt install ./OpenProgram-X.Y.Z-linux-amd64.deb
Settings → Versions and Updates → Go back. If the App can't start.
Terminal or server, every systemopenprogram upgrade, then openprogram worker restartInstall the older version with its exact number, then openprogram worker restart
Source checkoutopenprogram dev deploy for the development instance, or openprogram upgrade. Restarts by itself.Undo a change

Installations never follow origin/main directly: they take only releases published on GitHub Releases. State under ~/.openprogram is left unchanged. If the terminal command itself is broken, reinstall the latest version:

curl -fsSL https://openprogram.io/install | sh
irm https://openprogram.io/install.ps1 | iex
What the App updater does
  • macOS: picks the complete DMG for the architecture, downloads it to the location you choose, verifies byte count and SHA-256, and opens it. The shell and complete product runtime are replaced together. Unsigned packages: Open Anyway.
  • The App looks for an update 30 s after it starts, then every hour.
  • Settings → Versions and Updates → Update channel: Stable offers releases only; Preview offers every new build before it is released. Back on Stable, the App keeps its version until a release passes it.
  • Windows, Linux: run openprogram upgrade in the version store; a newer App shell comes in the same update and is swapped in on restart. Only a deb takes the App file, when the release needs a newer shell.
  • Windows App file: verifies release metadata, file length and SHA-256. A signed App also requires a valid Authenticode signature from the same publisher; only an App built unsigned accepts an unsigned installer.
  • Downloads go through the system proxy and resume after a dropped connection. When GitHub's API refuses or does not answer, the App finds the release through GitHub's web pages.
When an App that manages versions can't start

A thin-shell App keeps its code as numbered versions under ~/.openprogram/runtime (%USERPROFILE%\.openprogram\runtime on Windows). First start unpacks the bundled code behind a progress page, about a minute.

Opens the recovery pageHow
AutomaticThe running version has not answered for two minutes and is not mid-switch
macOSOpenProgram > Go back to a previous version, under About
Windows, LinuxSame item, bottom of the File menu
macOS, WindowsHold Shift while opening the App
Linux debThe launcher's Go back to a previous version action, or openprogram-desktop --recovery
Linux AppImage./OpenProgram-X.Y.Z-linux-x86_64.AppImage --recovery
  • Lists the versions kept on the computer, as Settings does. Pick one and the App restarts with it. Conversations and files are not touched.
  • Shows the log path, recovery.log in the same folder. With an empty code folder it offers to restore the bundled code; it never overwrites existing code.
  • Apps with a built-in runtime have neither page nor menu item: every macOS App published so far and the development App.

CLI and server release

GoalCommand
Is a new stable release available?openprogram upgrade --check
Install or go back to one versionExact-version installer command
Download runtime archive from the release tag Verify checksum and manifest in staging Cold-start worker, before the version is live Activate macOS, Linux: current symlink Windows: launchers Fails: previous version stays selected, unpublished staging runtime removed
  1. Downloadruntime archive from the release tag
  2. Verifychecksum and manifest in staging
  3. Cold-startworker, before the version is live

    Any stage before Activate fails: previous version stays selected, unpublished staging runtime removed

  4. ActivatemacOS, Linux: current symlinkWindows: launchers

macOS and Linux serialize upgrades. Version directories are kept, which is what makes rollback the same command. A running worker is not restarted.

Windows launcher replacement
  • One openprogram.cmd launcher is prepared before activation and replaced atomically. The previous one stays as openprogram.previous.cmd. Older openprogram.ps1 launchers are removed, because the default script policy would refuse them.
  • A validated runtime is retained for retry even when launcher activation fails.
Releases that carry a seed
  • When a release publishes OpenProgram-<version>-seed-<platform>-<arch>.tar.gz, install.sh and install.ps1 put it in the version store a thin App uses, <state>/runtime; openprogram runs the version current names.
  • openprogram versions list shows what is kept.
  • Without that asset, the plain runtime above is installed.
  • An interrupted install starts over on the next run. A run on an existing version store updates it through openprogram upgrade and reports what that did.

Official updates on a version-store installation

Downloads only the files that changed and carries your own commits over. The Windows and Linux Apps update this way, and the macOS App from the first release built as a thin shell. Other macOS Apps and plain terminal installs use the routes above.

openprogram upgrade --check
openprogram upgrade
openprogram upgrade --from <directory>     # a local copy of the update files
Update fileContents
channel.jsonThe newest release, with its Ed25519 signature inside
pack-<hash>.packThe source, the built Web, and Python with its packages, as files named by their hash. Only the files this computer lacks are downloaded

The signature is checked first and each file against its hash. An unsigned, altered or older release changes nothing. How updates are published.

CaseOutcome
No commits of your ownThe release is built here with its prebuilt Web, then tried
Your commitsApplied on the release oldest first, then built and tried
Commit conflictsIt is saved; the others carry on
Release already contains itSkipped
Build or trial failsYour newest commit is saved and the rest retried, ending at the unmodified release. After 5 retries the remaining commits are saved together and the unmodified release is tried.
Unmodified release failsNothing changes: current version, your commits kept
Needs a newer signed shell, or another Python minor version than the launcherWaits for the next App installer (waiting_for_shell): nothing changes
Python and packages for this computer not published yetWaits (waiting_for_runtime): nothing changes

Which updates arrive

Only a release published on GitHub Releases reaches an installation. The code synced to GitHub between releases does not.

The result lists replayed and saved commits. Saved ones are git format-patch files at <state>/runtime/unreplayable/<release>/<commit>.patch, ready to apply as a new change.

Other routes

RouteCovers
Update from chatself_update, from a conversation
Recover a chat updateApp stuck in maintenance, or cannot start
Undo a changeBack to a version, or revert one commit
What an update restartsChanged paths, rebuild and restart
Development checkoutopenprogram dev deploy to the development instance; macOS signing
Last updated · 2026-11-30