Skip to content

Linger is An Open-Source Personal Agent That Runs Fully on Your PC. We aim to break Big Tech’s grip on AI by bringing powerful local AI to everyday computers through efficient model–harness co-design, so everyone can run their own.

33.6 KB
Raw Blame

Desktop Release

Linger desktop releases are published in the public simplexai-labs/linger repository: pushing a desktop-v<version> tag there runs GitHub Actions (.github/workflows/desktop-release.yml), which builds the packages for Apple silicon, Linux x64 and Windows x64 and publishes them as the GitHub Release of that tag. The workflow calls scripts/ci/desktop-release.sh, so the same steps also run on a developer machine.

This is the only release path.

Downloads

The newest stable packages are always at https://github.com/simplexai-labs/linger/releases/latest; a prerelease never becomes the latest release. Link there, not to a version.

Releasing

Stable releases use a two-stage Draft → Publish flow so release subscribers and auto-updating clients never see placeholder notes before the final release notes are attached.

In a checkout of simplexai-labs/linger:

# 1. Tag and push to build all targets and create the draft GitHub Release
git tag desktop-v0.16.36
git push origin desktop-v0.16.36

# 2. Once Desktop release finishes, attach release notes and publish as latest
scripts/ci/desktop-release.sh publish desktop-v0.16.36 --notes-file notes.md
  • The tag is desktop-v<major>.<minor>.<patch>, optionally with a suffix such as -rc.1, beside the cli-v<version> tags of the CLI. A version with a hyphen is published immediately as a GitHub prerelease whose notes start with Prerelease; a stable version is created as a draft release until scripts/ci/desktop-release.sh publish validates the uploaded assets, attaches the release notes, marks it as the latest release, and cleans up matching desktop-v<version>-rc.* prereleases and tags.
  • The version comes from the tag. The build writes it into apps/desktop/package.json for packaging and restores the file afterwards, so no version commit is needed.
  • The release appears under the repository's Releases with the files listed in Release Files.

How the workflow runs

The workflow runs for desktop-v* tags and from Actions → Desktop release → Run workflow. Its build jobs run on ubuntu-24.04 (the macOS and Windows runners have no Docker) and keep the files as workflow artifacts for 14 days: desktop-<target>, a zip of every file for the platform (with the Windows portable archive split into desktop-win32-x64-portable so desktop-win32-x64 carries only the Setup and its windows-setup.sha256 digest), and the installer on its own, not zipped (the .dmg, the -setup.exe, the Linux .tar.gz), for testers to download directly. windows-smoke downloads desktop-win32-x64, verifies the Setup against windows-setup.sha256, and installs those bytes silently under a fresh standard user on windows-2022. It requests only packaged Pi preparation and checks the real Pi RPC handshake (get_state, get_commands) and the registered mcp command from the bundled managed MCP extension, with no NODE_PATH override. It starts no full Linger services, uses no model credentials, downloads no model weights, and does not verify the graphical installer, model inference, restart persistence, or uninstallation. release requires windows-smoke to pass, downloads desktop-*, checks the same windows-setup.sha256 digest before removing that file, writes SHA256SUMS.txt, and creates the GitHub Release (as a draft for stable tags or published prerelease for hyphenated tags; reruns upload files to an existing release with --clobber). A manual run creates a release only with publish set, and a publish=false run still executes windows-smoke.

The release goes to RELEASE_REPO, simplexai-labs/linger by default:

  • In simplexai-labs/linger itself, the workflow's GITHUB_TOKEN publishes; no extra secret is needed. The tag is the one pushed, at the built commit.
  • In another repository, such as a private copy, it publishes across repositories with the LINGER_RELEASE_TOKEN secret; prepare stops at once when that secret is missing. A tag points at a commit of its own repository, so the release creates desktop-v<version> in simplexai-labs/linger at that repository's default branch, and its notes name only the version.

simplexai-labs/linger is public, and so are its workflow logs and release notes. The bundled archives come from the assets of the native-deps prerelease, which is public too; a LINGER_NATIVE_DEPS_URL secret or variable points the build at another folder, and a secret keeps that address masked in the log. Signing keys are written to files under the runner's temporary folder, read only by the signing tools and removed after the build.

Set these under Settings → Secrets and variables → Actions of the repository that runs the workflow:

Name Kind Required Purpose
LINGER_NATIVE_DEPS_URL secret (or variable) no Folder serving the archives apps/desktop/distribution/*.json pins; the native-deps prerelease when unset. Each download is checked against its pin.
LINGER_DIAGNOSTICS_UPLOAD_URL secret no https URL of the hosted diagnostics receiver (diagnostics-upload.md) that the build carries. A secret, so the address stays masked in logs. Without it Send Diagnostics is hidden unless config.json names a receiver.
RELEASE_REPO variable no owner/name that receives the release; simplexai-labs/linger when unset.
LINGER_RELEASE_TOKEN secret when RELEASE_REPO is another repository Fine-grained token for RELEASE_REPO only, with Contents: read and write. Not needed in simplexai-labs/linger itself.
MACOS_DEVELOPER_ID_P12_BASE64 secret no Base64 of the Developer ID .p12. Without it the app is signed ad hoc.
MACOS_DEVELOPER_ID_PASSWORD secret with the .p12 Password of that .p12.
MACOS_NOTARY_KEY_JSON secret no App Store Connect API key JSON; needs the Developer ID.
DESKTOP_UPDATE_KEY_PEM secret for auto-update Ed25519 private key (PEM) that signs manifest.json. Without it the release has no manifest and installed apps are not offered it.
WINDOWS_SIGNING_P12_BASE64 secret no Base64 of an Authenticode .p12. Without it the setup program is unsigned.
WINDOWS_SIGNING_PASSWORD secret with the .p12 Password of that .p12.

Bundled archives

The native-deps prerelease in simplexai-labs/linger holds every archive that apps/desktop/distribution/*.json pins, under its file name; being a prerelease, it never becomes the latest release. When a pin changes, upload the new archive there before tagging:

gh release upload native-deps <archive> --repo simplexai-labs/linger

First release in simplexai-labs/linger

  1. Check that the native-deps prerelease has every pinned archive.

  2. With the source in simplexai-labs/linger, push a prerelease tag first, then the release:

    git tag desktop-v0.16.36-rc.1 && git push origin desktop-v0.16.36-rc.1
    git tag desktop-v0.16.36 && git push origin desktop-v0.16.36
    

    From another repository, also set LINGER_RELEASE_TOKEN there and push the tags to that repository instead.

  3. Check the draft release page, download each file and compare it with SHA256SUMS.txt, then publish the stable release with its notes: scripts/ci/desktop-release.sh publish desktop-v0.16.36 --notes-file notes.md (this also deletes matching desktop-v0.16.36-rc.* prereleases and tags; a standalone test prerelease can still be removed with gh release delete desktop-v0.16.36-rc.1 --repo simplexai-labs/linger --cleanup-tag).

Physical Windows acceptance

This is a manual verification flow for real Windows machines; it does not run in CI and does not gate releases. Use a digest-verified Windows Setup candidate on a clean, ordinary-user desktop with working mouse and keyboard, free disk, default Defender, and access from Windows to the configured external model endpoint. Pre-stage the Setup; do not build on the test laptop. Codex CLI and CC Switch are not prerequisites.

  1. Install through the actual Setup UI and complete Quick Install in Pi mode with the configured external model. Record signing/SmartScreen and setup independently. Confirm the Computer is online and its Pi catalog and workspace grant are ready.
  2. Run one unique Room journey using room-journey.mjs. An aborted Run is a failure as soon as TeamHub persists it for the test message. Success requires a completed Run, its persisted reply linked to that Run with the matching SHA-256 digest, exact new file bytes, and the successful write and terminal events for that Run. Quit and reopen the installed Desktop, then verify that the configuration, Room reply, and file persist.
  3. Test the real graphical uninstaller independently of the Room outcome. Record the app payload, per-user uninstall and startup registrations, shortcuts, process identities, listeners, and retained data checksums before and after. Exit code zero alone does not prove cleanup; report remaining payload, running processes or listeners, and any retry separately from the first attempt.

Keep fault injection and recovery matrices on disposable environments; label Windows ARM and native Windows x64 evidence separately. Record build, transfer, setup, operator wait, Room terminal detection, reopen, and uninstall times separately to show where the next optimization belongs.

For the Room helper, set LINGER_ACCEPTANCE_BASE_URL (loopback), LINGER_ACCEPTANCE_OWNER_FILE (private local owner JSON), and LINGER_ACCEPTANCE_COMPUTER_ID; use LINGER_ACCEPTANCE_MODEL to select a specific catalog entry and LINGER_ACCEPTANCE_TIMEOUT_SECONDS to override the 180-second budget. For one-command verification on the isolated host, set LINGER_ACCEPTANCE_CONTEXT_VIEWS to the daemon's context-views directory and LINGER_ACCEPTANCE_AGENT_LOG_ROOT to the Agent Service's log directory containing agents/. Alternatively set an exact LINGER_ACCEPTANCE_WORKSPACE and LINGER_ACCEPTANCE_AGENT_LOG. Paths for evidence are absolute. Invoke node scripts/acceptance/room-journey.mjs. Across hosts, room_observed means only the Run and persisted reply were linked; verify the file bytes and Agent logs separately with local-runner-message-evidence.mjs (node scripts/local-runner-message-evidence.mjs --run-evidence with LINGER_ACCEPTANCE_FILE, LINGER_ACCEPTANCE_EXPECTED or LINGER_ACCEPTANCE_EXPECTED_SHA256, LINGER_ACCEPTANCE_AGENT_LOG, and LINGER_ACCEPTANCE_RUN_ID).

Release Files

File Contents
Linger-<version>-macos-arm64.dmg macOS 14.0 or later, Apple silicon
Linger-<version>-linux-x64.tar.gz Linux x64 (glibc 2.35 or newer for the bundled Native services)
Linger-<version>-windows-x64-setup.exe Windows x64 per-user installer
Linger-<version>-windows-x64-portable.zip Windows x64 folder to run without installing
Linger-<version>-macos-arm64.app.tar.gz macOS app the updater swaps in
manifest.json, manifest.json.sig only with the update key: the auto-update feed
SHA256SUMS.txt SHA-256 of every file above

Each package bundles the source package, PostgreSQL, voice tools, TeamHub and the Native services as described in Packaging Details.

Auto-update

Installed apps update from the GitHub Releases themselves (apps/desktop/src/main/updater.ts). Shortly after start and then every hour, the app downloads https://github.com/simplexai-labs/linger/releases/latest/download/manifest.json and its .sig, checks the Ed25519 signature against UPDATE_PUBLIC_KEY in update-manifest.ts and compares the manifest's version with its own (semver; a prerelease is below its release). Only a newer version is offered, and a release without a manifest (404) is ignored. Since a prerelease never becomes the latest release, only stable releases reach installed apps.

manifest.json (schema 2) names each platform's package of the same release with its size and SHA-256:

{
  "schema": 2,
  "version": "0.16.36",
  "packages": {
    "darwin-arm64": {
      "file": "Linger-0.16.36-macos-arm64.app.tar.gz",
      "sha256": "…",
      "size": 123
    },
    "linux-x64": {
      "file": "Linger-0.16.36-linux-x64.tar.gz",
      "sha256": "…",
      "size": 123
    },
    "win32-x64": {
      "file": "Linger-0.16.36-windows-x64-setup.exe",
      "sha256": "…",
      "size": 123
    }
  }
}

The app downloads the package from releases/download/desktop-v<version>/ and checks its size and SHA-256 while downloading. What happens next depends on how Linger was installed:

Install Update
macOS Linger.app The archive is unpacked beside the app. "Restart to Update" waits for running tasks, swaps the bundle and relaunches.
Windows setup program The setup program is downloaded. "Restart to Update" waits for running tasks, checks the file again, starts it with /update /relaunch and quits; the installer stops the services, replaces the app in the folder it was installed to and starts it (details below).
Windows portable folder No download: the tray offers "Download Linger …", which opens the release page.
Linux The same as the portable folder.

On Windows, /update runs the setup program in passive mode: it shows only its progress page, titled "Updating Linger to ...", and needs no click. It closes by itself when the files are in place, and /relaunch starts the new Linger. If a file stays locked, the same "Linger is running ... Retry" question as in a normal install appears, and Retry stops Linger's services again. After Cancel, or a file the setup could not write, the setup says Linger was not updated: if it had not replaced any file yet it starts the earlier Linger, which offers the update again; otherwise it names the setup program to run again. The install stays per user without administrator rights. /S still installs with no window at all, for scripted installs.

A system notification announces each new version once, and the tray shows the state; after a failure "Try Updating Again" checks at once. The account menu in the window (the avatar at the bottom left) shows the app's version and the same state through window.lingerDesktop.update: "Restart to Update", "Download Update" for the release page, and "Try Again" call the same updater, and a dot on the avatar marks an update that is ready or available. A browser shows none of this. The local services need no update of their own: the first launch of a newer app moves them to its source package (see LocalServer in the desktop guide).

updateFeedUrl in the desktop config (config.json in the app's data folder) points the app at another releases URL with the same layout, such as https://github.com/<owner>/<repo>/releases; it must be https and its manifest must be signed by the same key.

Signing key

The release job signs manifest.json with DESKTOP_UPDATE_KEY_PEM (desktop-release.sh manifest) after all three packages are built, and refuses a key whose public half is not UPDATE_PUBLIC_KEY, since installed apps would reject its signature. Without the secret the job logs a warning and publishes the release without a manifest. Make a new pair only when the key is lost, and ship the new public key in a release first:

openssl genpkey -algorithm ed25519 -out ed25519.pem
openssl pkey -in ed25519.pem -pubout

Apps of 0.1.2 and older read their update feed from the connected server and are not offered GitHub releases; install one release by hand there.

Local Build

On Linux x64 with Docker, Node, pnpm, Go and Python 3:

DESKTOP_VERSION=0.16.36-rc.1 RCODESIGN=/path/to/rcodesign \
  scripts/ci/desktop-release.sh build darwin-arm64
DESKTOP_UPDATE_KEY=/path/to/ed25519.pem \
  scripts/ci/desktop-release.sh manifest .linger-runtime/desktop-release/assets 0.16.36-rc.1
scripts/ci/desktop-release.sh checksums .linger-runtime/desktop-release/assets 0.16.36-rc.1

With the archives already in LINGER_NATIVE_POSTGRES_DIR (default ~/.cache/linger-desktop), LINGER_NATIVE_DEPS_URL is not needed. manifest needs the macOS app archive, the Linux archive and the setup program of that version; checksums refuses a folder without the DMG, the Linux archive and the setup program.

Packaging Details

Paths in this section are relative to apps/desktop/, except scripts/prepare-native-*.mjs, scripts/source-native.mjs, scripts/installs/, and packages/local-installation/, which are in the repository root.

Source Package

Release builds set LINGER_SOURCE_ARCHIVE_URL (https) and LINGER_SOURCE_ARCHIVE_SHA256 before node build.mjs. Produce them from the release tag in the repository root:

SOURCE_ARCHIVE_REF=v1.2.3 \
SOURCE_ARCHIVE_URL_BASE=https://github.com/simplexai-labs/linger/releases/download/v1.2.3 \
  make source-archive

Upload .linger-runtime/source-archive/linger-v1.2.3.tar.gz to that release and take both values from source-archive.json next to it. One commit always gives the same digest. To ship the package inside the app instead (about 45 MB more, no hosting needed), set LINGER_SOURCE_ARCHIVE_FILE to the archive; the build copies it beside the installer and pins its digest. Without either (and without LINGER_CHECKOUT) the build does not offer a local install.

A downloaded source package can have a dependency store for each platform beside it, so the native install of its packages needs no registry. Build it from the same tag, on the platform it serves, and set LINGER_SOURCE_DEPENDENCIES_URL and LINGER_SOURCE_DEPENDENCIES_SHA256 from source-dependencies-<target>.json for that platform's build:

SOURCE_ARCHIVE_REF=v1.2.3 \
SOURCE_ARCHIVE_URL_BASE=https://github.com/simplexai-labs/linger/releases/download/v1.2.3 \
  make source-dependencies

SOURCE_DEPENDENCIES_TARGET builds another platform's store instead (the source-dependencies CI job does this on Linux). Such a store skips install scripts, so the install still compiles or downloads native modules such as better-sqlite3. The desktop downloads the store after the source package (resuming an interrupted download) and unpacks it into .linger-runtime/pnpm-store of the source; when that fails it logs local_server.dependencies_failed and the installer downloads the packages itself.

LINGER_SOURCE_ARCHIVE_MIRRORS and LINGER_SOURCE_DEPENDENCIES_MIRRORS list other https hosts serving the same files, separated by spaces. The desktop moves to the next one when a host fails or stalls, and the SHA-256 still decides.

Native installs also need the publisher's pinned localmodels tool and native PostgreSQL package for the target. They are pinned in distribution/<target>.json, in the shape packages/local-installation/src/native-dependencies.ts reads (platform, arch, localmodelsTool, nativeSources, voiceTools, each source with an optional mirrors list of https URLs for the same file). The build copies the file of its target (LINGER_DESKTOP_DAEMON_TARGETS, else this machine) beside the bundled installer, which reads it at start; LINGER_DESKTOP_DISTRIBUTION names another file instead. A source with file (Windows) instead of url names an archive the app ships: the build copies it from LINGER_NATIVE_POSTGRES_DIR (default ~/.cache/linger-desktop) to dist/installer/native/ after checking its size and sha256, and the installer checks them again before extracting it, as it does for a download. Where the file has no PostgreSQL for the computer, or the bundled archive is missing, the setup page does not offer installing on this computer. src/main/distribution.test.ts checks that each file holds its target's PostgreSQL and the localmodels release scripts/installs/stack.sh pins.

Computer Tools

The daemon offers Agents browser and computer-control tools only when it finds cli/computer-tools/ (with its frozen manifest.json) and runtime/bin/node two folders above its executable (localtools.Installed in apps/computer/local-daemon). The app runs the daemon from resources/computer/, so every package carries them as resources/cli/computer-tools/ and resources/runtime/ (on macOS under Contents/Resources/). Without them the daemon still starts and logs computer_tools.missing in computer-daemon.log.

build.mjs stages them for each daemon target into dist/computer-tools/<target>/ (scripts/stage-computer-tools.mjs) with scripts/computer-tool-bundle.mjs, the code and pins of the Local Computer dependency package: the Node.js archive checksums in scripts/local-computer-node-distributions.mjs, the Cua driver checksums in apps/computer/scripts/bundle-computer-tools.mjs and the frozen pnpm lockfile. The package includes the pinned QuickJS JavaScript engine and its WebAssembly binary for computer.ui_exec. The validator checks the engine version and requires its files in the manifest. A source build keeps staged tools that still validate against the manifest and the Node.js pin, and links dist/computer/cli and dist/computer/runtime to this machine's tools; delete dist/computer-tools/ to stage them again. packaging/computer_tools.py copies them into the app, checks them with the same validator and checks the finished .tar.gz, .zip or update archive for them; a package without them fails. On macOS the tools' Node.js is signed with node-entitlements.plist, and Cua's driver (CuaDriver.app and the standalone cua-driver) keeps Cua's own Developer ID signature, which macOS grants Accessibility and Screen Recording to. Compressed, they add about 66 MB to the Linux archive, 73 MB to the Windows zip, 46 MB to the Windows setup program and 115 MB to the macOS disk image, most of it Node.js and the universal Cua driver.

Release

Each desktop target (darwin-arm64, linux-x64) gets its own distribution file and build. For one release:

  1. Make the source package as above and upload it. On a host of each target, make its dependency store and upload it beside the package.
  2. On a host of each target, build the PostgreSQL package with node scripts/prepare-native-postgres.mjs --output DIR --base-url URL; it refuses to cross-build. Before uploading, check initdb, a connection and CREATE EXTENSION vector against a private data directory. Upload the .tar.gz to URL and keep postgres-<target>.json from DIR. Windows repackages the pinned EDB binaries, builds only pgvector and adds the Visual C++ runtime the EDB zip leaves out, so run it there from an x64 Native Tools Command Prompt for Visual Studio. The installer accepts only credential-free HTTPS URLs, so URL must be the HTTPS CDN.
  3. For a new PostgreSQL or localmodels release, update distribution/<target>.json: localmodelsTool for the localmodels release scripts/installs/stack.sh pins, and nativeSources holding that target's postgres-<target>.json object.
  4. Build with LINGER_DESKTOP_DAEMON_TARGETS set to the target and the source package (LINGER_SOURCE_ARCHIVE_FILE, or the URL and SHA256, plus the target's LINGER_SOURCE_DEPENDENCIES_URL and SHA256) set, then package (packaging/mac/package.py --arch arm64 for macOS, packaging/linux/package.py for Linux).
  5. Check the package on a clean computer: Quick Install with the default source ends on "Linger is ready" and Open Linger shows the local server, signed in, with this computer connected.

Official releases come from the public simplexai-labs/linger repository: a desktop-v<version> tag pushed there runs steps 4 and the packaging for darwin-arm64, linux-x64 and win32-x64 in GitHub Actions and publishes a linger GitHub Release with SHA256SUMS.txt; see How the workflow runs. The workflow fetches the bundled archives from the assets of the native-deps prerelease there, so upload a new pinned archive to it before tagging.

The Mac app needs macOS 14.0 or later: the bundled PostgreSQL and the @livekit/av-darwin-arm64 ffmpeg are built for 14.0 (their Mach-O LC_BUILD_VERSION minimum), the pinned Node.js 26 for 13.5 and Electron for 13.0. packaging/mac/package.py writes it as LSMinimumSystemVersion, so an older macOS refuses to open the app, and MIN_MACOS in apps/desktop/src/main/local-server.ts keeps the same value: LocalServer refuses to fetch Node.js or run the installer on an older macOS and says "Linger needs macOS 14.0 or later" instead. prepare-native-postgres.mjs sets no MACOSX_DEPLOYMENT_TARGET, so PostgreSQL's minimum is the macOS of the host that built it. Check every Mach-O file of a new pinned binary (otool -l, minos) before raising or lowering the value in both places.

Windows, Linux x64 and Apple silicon bundle PostgreSQL in the app instead (file in distribution/<target>.json; 35 MB on Windows, 10–12 MB elsewhere), so Native works without the CDN. Put the pinned archives in LINGER_NATIVE_POSTGRES_DIR before node build.mjs; the build fails without them. To download it instead, replace file with the HTTPS url once it is on the CDN. postgres.exe refuses a token with Administrators enabled, so an elevated Linger ("Run as administrator", the built-in Administrator) starts it from a copy of its token with that group disabled, as pg_ctl does. Native PostgreSQL still refuses root elsewhere.

Every target also bundles the voice tools (voiceTools, about 40 MB each): the official LiveKit server release (Apple silicon: built from the tagged source with the pinned Go, since LiveKit publishes no macOS binary; without cgo, so its vendored go-osstat reports an idle CPU, which only matters when LiveKit spreads rooms over several servers) and a static LGPL ffmpeg/ffprobe (Linux and Windows: built from the FFmpeg release in the pinned Alpine image, Windows with MinGW-w64; Apple silicon: the pinned serversideup LGPL build, which links OpenSSL statically). Make them on Linux with node scripts/prepare-native-voice-tools.mjs --target <target> --output DIR (Docker; Go for Apple silicon), copy the archive to LINGER_NATIVE_POSTGRES_DIR and voice-tools-<target>.json from DIR into voiceTools. The build is reproducible except for the Go toolchain download, and it checks the versions, the ffmpeg components the voice workers use, static linking and the Mach-O signatures. Licenses ship in licenses/ of the archive. On every install and start, whether or not a voice key is saved, Native extracts the archive into tools/native/components, puts its bin first on the services' PATH (TeamHub and the voice workers run ffmpeg/ffprobe from it) and runs livekit-server as the livekit Native service: loopback only, HTTP and WebSocket on one free port and media on one free UDP port, both kept with the generated API key and secret in the owner-only livekit.env of the instance, logs in native/logs/livekit.log. ICE over TCP stays off because LiveKit binds it on every interface. Without the tools for the computer, or when they fail to prepare, Native logs it, keeps voice off, gives TeamHub TEAMHUB_VOICE_MEDIA=off and finishes the install. The macOS tools are ad-hoc signed by their linker and live in the archive, outside the app's signature, like PostgreSQL.

A build with a source package for win32-x64, linux-x64 or darwin-arm64 also ships TeamHub prebuilt (scripts/build-teamhub.mjs): build.mjs cross-compiles teamhub, migrate and account from that package (go in PATH, CGO_ENABLED=0) into dist/installer/native/teamhub-<target>/ with a manifest.json of their sha256, the package's sha256 and the commit git archive recorded in it; a downloaded package (LINGER_SOURCE_ARCHIVE_URL) is fetched for this. The package scripts refuse binaries that do not match the manifest or the bundled package (packaging/native_bundle.py). The desktop copies them into the unpacked source (.simplexai-runtime/prebuilt/), the installer checks them again and then skips the Go download, and scripts/source-native.mjs runs them (checking the sha256 before each start) instead of go run / go build. Without them, or when they do not verify, Native downloads Go and compiles as before.

The same targets ship the services Native runs, built from that package (scripts/build-native-runtime.mjs): Web's production files, Node Services bundled with esbuild beside the node_modules it loads at runtime, and the pinned Node.js, in dist/installer/native/runtime-<target>/ with a manifest.json (schema 1). Windows and Linux ship runtime.tar.zst beside the Node.js release archive. Apple silicon ships the runtime/ folder and node/bin/node unpacked instead, because the app's signature must cover every Mach-O file: packaging/mac/package.py signs them with the app (Node.js with node-entitlements.plist: JIT, and native modules under the hardened runtime its release signature keeps), records the signed bytes in the manifests and seals them with a shallow signature. The desktop unpacks or copies the services into .simplexai-runtime/offline/ of the source and Node.js into its own folder, removing com.apple.quarantine on macOS; checkNativeRuntime then verifies every file, and Native installs no packages and needs no registry. On Linux the services need glibc 2.35 (Ubuntu 22.04, Debian 12), like the PostgreSQL build; with an older glibc the desktop leaves them out and Native installs from the network. Model data (Voice) is not bundled: Node Services downloads it on first use. Dependencies the services never load are left out too: officeparser imports its OCR engine, tesseract.js, only for OCR, which document extraction never asks for. Intel Macs have none of this and install from the network.