# Install

| Your computer | App | Terminal and server |
| --- | --- | --- |
| macOS 13.5 or later | [Apple Silicon DMG](https://fzkuji.github.io/OpenProgram/docs/latest.html?OpenProgram-mac-arm64.dmg) · [Intel DMG](https://fzkuji.github.io/OpenProgram/docs/latest.html?OpenProgram-mac-x64.dmg) | `curl -fsSL https://fzkuji.github.io/OpenProgram/install \| sh` |
| Linux with glibc 2.35 or later (Ubuntu 22.04, Debian 12 or newer) | [deb or AppImage](#linux) | `curl -fsSL https://fzkuji.github.io/OpenProgram/install \| sh` |
| Windows 10 or 11, x64 | [Installer](https://fzkuji.github.io/OpenProgram/docs/latest.html?OpenProgram-win-x64.exe) | `irm https://fzkuji.github.io/OpenProgram/install.ps1 \| iex` |

If the website does not answer, the same scripts come straight from GitHub:

```
curl -fsSL https://raw.githubusercontent.com/Fzkuji/OpenProgram/main/docs/_static_root/install.sh | sh
irm https://raw.githubusercontent.com/Fzkuji/OpenProgram/main/docs/_static_root/install.ps1 | iex
```

## Did it work?

| Installed | What you see |
| --- | --- |
| App | It opens to the workspace, after about a minute of unpacking on the first start on Windows and Linux. **Settings → Versions and updates → Application → Version** shows the number. |
| Terminal | In a new terminal, `openprogram --version` prints the number. `openprogram` starts setup and `openprogram web` opens the workspace at `http://localhost:18100`. |

## What a release has for each computer

| Computer | In every release |
| --- | --- |
| macOS | App for Apple Silicon and Intel, signed and notarized, and the terminal install. |
| Linux | App as deb and AppImage, and the terminal install; x86_64 and arm64. |
| Windows | App installer and the terminal install, x64. Windows on Arm is not supported. |

The links on this page always fetch the newest release. A package missing from a release is named under "Not in this release" in its notes on [GitHub Releases](https://github.com/Fzkuji/OpenProgram/releases). [Every file](https://fzkuji.github.io/OpenProgram/docs/install/download.html).

## macOS

1. Open the DMG and drag OpenProgram to Applications.
2. Open it from Applications.

| Question | Answer |
| --- | --- |
| Apple Silicon or Intel? | Apple menu → **About This Mac**. "Chip: Apple M…" is Apple Silicon; "Processor: … Intel …" is Intel. The terminal install detects it for you. |
| No administrator password | Drag the App into your own Applications folder instead: `mkdir -p ~/Applications`. Keep it there for updates. The terminal install needs no administrator. |
| File name ends in `-unsigned` | Open the App once, then **System Settings → Privacy & Security → Open Anyway**. |

## Linux

`uname -m` says which file: `x86_64` or `aarch64`.

|  | deb: Ubuntu, Debian | AppImage: other glibc systems |
| --- | --- | --- |
| Install | `sudo apt install ./OpenProgram-X.Y.Z-linux-amd64.deb` `arm64` instead of `amd64` on Arm | `chmod +x OpenProgram-X.Y.Z-linux-x86_64.AppImage` `arm64` instead of `x86_64` on Arm |
| Start | Applications menu, or `openprogram-desktop` | `./OpenProgram-X.Y.Z-linux-x86_64.AppImage` |
| Needs | `apt` installs it all | `fuse3` and the libraries below |

```
# AppImage on Ubuntu 22.04, Debian 12
sudo apt install fuse3 libgtk-3-0 libnotify4 libnss3 libxss1 libxtst6 xdg-utils \
  libatspi2.0-0 libsecret-1-0 libgbm1 libasound2 libcurl4

# AppImage on Ubuntu 24.04 or newer, Debian 13 or newer
sudo apt install fuse3 libgtk-3-0t64 libnotify4 libnss3 libxss1 libxtst6 xdg-utils \
  libatspi2.0-0t64 libsecret-1-0 libgbm1 libasound2t64 libcurl4t64

# Without FUSE
APPIMAGE_EXTRACT_AND_RUN=1 ./OpenProgram-X.Y.Z-linux-x86_64.AppImage
```

On Ubuntu 24.04 and newer only the deb sets up the sandbox profile Chromium needs; an AppImage starts there without Chromium's sandbox, so prefer the deb. Optional for both: `bubblewrap`, for sandboxed commands. Alpine and other musl systems are not supported.

On a server or container without the libraries Chromium needs, the terminal install still finishes: it says in one line that the browser tool waits for them and prints the `apt` line that adds them, and the browser tool works once they are installed.

## Windows

1. Download the [installer](https://fzkuji.github.io/OpenProgram/docs/latest.html?OpenProgram-win-x64.exe), `OpenProgram-X.Y.Z-win-x64.exe`.
2. Run it. It installs for your account and needs no administrator.

| Windows says | Do |
| --- | --- |
| **Windows protected your PC**, on a file ending in `-unsigned.exe` | **More info → Run anyway** |
| Blocked by **Smart App Control** | Windows has no per-app exception. Use the terminal install; if Windows stops that too, the only choice left is turning Smart App Control off in **Windows Security → App & browser control**. |

From Command Prompt: `curl -fsSL https://fzkuji.github.io/OpenProgram/install.cmd -o install.cmd && install.cmd`

## Behind a proxy

| Shell | Set before installing |
| --- | --- |
| macOS, Linux | `export HTTPS_PROXY=http://proxy.example:8080` |
| PowerShell | `$env:HTTPS_PROXY = 'http://proxy.example:8080'` |
| Command Prompt | `set HTTPS_PROXY=http://proxy.example:8080` |

Add `NO_PROXY` for hosts that skip the proxy. Both are read by the installers and `openprogram upgrade`. The App's update check follows the system proxy settings.

## Advanced

**Install one exact version**

| Shell | Command |
| --- | --- |
| macOS, Linux | `curl -fsSL https://fzkuji.github.io/OpenProgram/install \| OPENPROGRAM_VERSION=X.Y.Z sh` |
| Windows | `$env:OPENPROGRAM_VERSION = "X.Y.Z"; irm https://fzkuji.github.io/OpenProgram/install.ps1 \| iex` |

**Verify a download by hand**

| System | Command |
| --- | --- |
| macOS | `shasum -a 256 OpenProgram-X.Y.Z-mac-arm64.dmg` |
| Linux | `sha256sum OpenProgram-X.Y.Z-linux-amd64.deb` |
| Windows | `Get-FileHash .\OpenProgram-X.Y.Z-win-x64.exe -Algorithm SHA256` |

Compare with the SHA-256 shown beside that file on its release page, or its entry in that release's `release-manifest.json` ([where each is](https://fzkuji.github.io/OpenProgram/docs/install/download.html#checksum-files)). The terminal installers and the App updater check this themselves. Signed Windows builds also show a valid entry under **Properties → Digital Signatures**.

**Installer settings**

| Variable | Effect |
| --- | --- |
| `OPENPROGRAM_NO_MODIFY_PATH=1` | macOS, Linux: leave the shell profile alone |
| `OPENPROGRAM_BIN_DIR` | Put the launcher here and do not edit `PATH` |
| `OPENPROGRAM_STATE_DIR` | Use this data directory instead of `~/.openprogram` |

**What the installer does**

- The short script finds the latest stable GitHub Release, confirms it has a package for this system and runs the installer from that release's tag.
- Prints the size, checks free space first (a disk that is too full is told how much is missing), shows progress, and resumes an interrupted download on the next run.
- macOS, Linux: installs under `~/.openprogram/runtime/cli/releases/<version>`, creates `~/.local/bin/openprogram`, and adds that directory to `PATH` with one marked line in the shell profile.
- Windows: installs under `%USERPROFILE%\.openprogram\runtime\cli\releases`, creates `%LOCALAPPDATA%\OpenProgram\bin\openprogram.cmd` and adds it to the user `PATH`. The default script policy is left alone.
- Serialized by a per-user lock. It resolves no product dependencies, clones no repository and builds no JavaScript.
- Before switching `current` it verifies the architecture-matched manifest and bundled Ink TUI, then Web, providers, MCP, memory, channels, search, Ink and Chromium (the Chromium launch is left to the browser tool when the machine lacks its libraries), then cold-starts the worker and checks health on an OS-assigned loopback port. [Activation and failure](https://fzkuji.github.io/OpenProgram/docs/install/upgrade.html#cli-and-server-release).
- `openprogram doctor` reports what is still missing, such as provider credentials.

## What a release contains

| Item | Detail |
| --- | --- |
| Included | Managed CPython, OpenProgram, prebuilt Web UI, private Node.js, compiled Ink app, providers, channels, search, Playwright Chromium; Desktop adds Electron. Every release contains the same product runtime; only the launch shell differs. |
| Excluded | PyTorch, OpenCV, and EasyOCR are not in the product runtime. It bundles no Programs. |
| Not needed | System Python, Node.js, npm |
| Git | Included, for session and Memory history. |

Programs are added with `openprogram programs install` ([Installing programs](https://fzkuji.github.io/OpenProgram/docs/capabilities/installing-programs.html)) and stored apart from the read-only runtime.

**Developer additions**

Editable Program sources, diagnostics, local frontend builds and replacement OCR or browser backends. Replacements are needed only for GUI perception paths using libraries the runtime omits, and do not change its manifest.

## Development checkout

For contributors. It does not define the `stable` channel.

| Platform | Command |
| --- | --- |
| macOS, Linux | `git clone https://github.com/Fzkuji/OpenProgram.git` `cd OpenProgram` `./scripts/install.sh` |
| Windows PowerShell | `git clone https://github.com/Fzkuji/OpenProgram.git` `Set-Location OpenProgram` `powershell -NoProfile -ExecutionPolicy Bypass -File .\scripts\install.ps1 -Yes` |

**Windows development installer**

- Creates an isolated `.venv`, installs frontend workspaces from the npm lockfile, builds the browser UI and full Ink terminal UI, and installs the optional browser and Channel dependencies.
- Installs missing Python and Node.js through `winget`.
- Creates `openprogram.cmd` under `%LOCALAPPDATA%\OpenProgram\bin` and adds it to the user `PATH`, so a new PowerShell needs no activation.
- Needs Node.js 22.12 or newer; Node.js 22 LTS is the validated major version. `-Minimal` installs only the Python CLI and server, with no frontend dependencies or build.
- Installs editable CLI and server sources and the browser UI. Windows Desktop is packaged separately with the Desktop workspace's `dist:win` command.
- Release and development installs include the Ink terminal UI, with the Python Rich interface as a capability fallback.
- Windows sandboxing is optional: `auto` keeps native commands usable without WSL2 and bubblewrap; an explicit `workspace-write` policy requires that backend.

## Remove

| Installed as | Remove |
| --- | --- |
| macOS App | `OpenProgram.app` |
| Windows App | Uninstall from **Installed apps** |
| Linux deb | `sudo apt remove openprogram-desktop` |
| Linux AppImage | The `.AppImage` file |
| macOS, Linux terminal install | `~/.local/bin/openprogram` and `~/.openprogram/runtime/cli` |
| Windows terminal install | `%LOCALAPPDATA%\OpenProgram\bin` and `%USERPROFILE%\.openprogram\runtime\cli` |
| User data | Back up, then purge `~/.openprogram` explicitly |

`~/.openprogram` holds configuration, sessions, logs, Programs and caches. Replacing or removing the application does not delete it.

[Upgrade](https://fzkuji.github.io/OpenProgram/docs/install/upgrade.html) · [Profiles](https://fzkuji.github.io/OpenProgram/docs/install/profiles.html): isolated state directories
