Installation
Alzo is not on npm yet. You build two private packages from a checkout of the Alzo repository and install them into your project as development dependencies. Nothing here publishes a package or changes your certificate trust store.
Requirements
- macOS or Linux. Native Windows is not supported.
- Node.js 24.16 or a later 24 release, or Node.js 26.1 or later. No Node.js 25 release is supported. Alzo runs on your installed Node.js; it does not bundle a runtime, and an unsupported version exits with code
3, naming the required and detected versions. - A running local Docker Engine 25.0 or newer. The CLI checks Docker even for a graph of host processes, and it refuses a remote Docker context.
- pnpm 10.19.0 and npm, to build the packages.
- Docker Buildx, only for image builds that use
ssh,secretsorcontexts(Builds).
Build the packages
In the Alzo checkout:
pnpm install --frozen-lockfile
pnpm package:cli -- --version 0.0.0-local.1This writes two tarballs to .artifacts/packages/0.0.0-local.1/: alzo, the CLI together with the configuration API that alzo.config.ts imports, and @alzo/otel-node, which alzo depends on and which a Node.js container image installs for telemetry. Beside them, artifacts.json records the size and SHA-256 digest of each one. The packages keep private: true; building them is not publishing them.
Install into your project
From your application's directory, install both tarballs together. Replace /path/to/alzo with the absolute path of the checkout:
npm install --save-dev \
/path/to/alzo/.artifacts/packages/0.0.0-local.1/alzo-0.0.0-local.1.tgz \
/path/to/alzo/.artifacts/packages/0.0.0-local.1/alzo-otel-node-0.0.0-local.1.tgz
npx --no-install alzo --versionThe two versions must match: alzo depends on the exact version of @alzo/otel-node, so a mixed pair fails to install. A local installation does not put alzo on your shell's PATH, so run it as npx --no-install alzo or from an npm script. These pages write alzo for short.
On npm 11 with install-script approvals enabled, npm may ask you to review dependency scripts for protobufjs, @parcel/watcher and node-pty. The supported macOS setup works with those scripts skipped, using prebuilt native dependencies. Run npm install-scripts ls to see pending scripts, and review any native build your platform needs before approving it, as npm's install-script policy describes.
The alzo package also contains this documentation, so an installed copy can be read offline under node_modules/alzo/.
Check a configuration
Write alzo.config.ts at your repository root (the quickstart supplies a complete one), then:
alzo check
alzo upalzo check type-checks the configuration and validates the graph without starting anything. Neither command needs certificate setup when the configuration has no ingress: services are reachable at allocated loopback URLs.
If the configuration uses Node.js globals such as process.env, install their declarations:
npm install --save-dev @types/nodeThen make /// <reference types="node" /> the first line of alzo.config.ts and rerun alzo check. alzo check compiles the configuration on its own, so a types entry in your application's tsconfig.json does not apply, and installing the package alone is not enough.
Optional: HTTPS hostnames
Hostnames such as https://api.example.dev need a wildcard DNS record that you control, which Networking describes, and a local certificate authority that your machine trusts. Once the DNS record exists, run alzo setup once per machine. It is a separate command because it is the one step that changes certificate trust; Docker checks, toolchain checks and port allocation all happen inside alzo up.
alzo setup mints a local certificate authority and installs it into your trust store. It does not use sudo. The root goes into your user trust domain, so it reaches this account and not the machine; macOS asks you to authorise the change in its own dialog. Before it does anything it prints the certificate's fingerprint, its subject, the file it lives in, the store it is going into, what trusting a root actually authorises — every policy, not only TLS — and the exact command line it is about to run, so you can read it, copy it, or press Ctrl-C. Afterwards it asks the machine again rather than trusting the exit code, and reports that second answer.
alzo setup --check # is it trusted? changes nothing, exits 3 if not
alzo setup --uninstall # remove it again, naming every fingerprint removedFirefox ships its own trust store and is not covered by any of this. alzo setup finds your Firefox profiles and prints the certutil line for each one rather than running it. macOS is the only platform with an installer today; everywhere else alzo setup refuses and prints the command to run by hand.
If you skip
alzo setup, Alzo still works. You lose HTTPS and hostnames, and services are reachable at127.0.0.1:<port>. You do not lose the environment.
Upgrade
Before you install, stop each project's running instances with the build that started them, let any alzo run finish, finish or recover any work fleet, and finish any alzo rebind or orphan cleanup with that build, then remove the shared ingress with docker rm -f alzo-ingress. The ingress holds no data, and the next alzo up recreates it. A new build does not read the task, lock and work fleet records an earlier build wrote: it refuses them and names the files to delete, rather than guess what that build still has running, and it runs no local work while an earlier build's fleet record remains. It also refuses to rebuild routes over a routing record another build wrote while the instances it serves are still attached. If a local store, a task or lock record, or the ingress routing record is refused after the upgrade, see Troubleshooting and prerequisites. Each refusal names the files to delete. To start afresh in one step instead, after the steps above delete everything in ~/.alzo except ca, which holds the local CA your system trusts: find ~/.alzo -mindepth 1 -maxdepth 1 ! -name ca -exec rm -rf {} +. Finish or recover any work fleet that uses the default recovery directory first. That forgets every instance's ports, hostnames, checkout bindings, logs and work records.
Build a new pair and install both new tarballs over the old ones:
pnpm package:cli -- --version 0.0.0-local.2
npm install --save-dev \
/path/to/alzo/.artifacts/packages/0.0.0-local.2/alzo-0.0.0-local.2.tgz \
/path/to/alzo/.artifacts/packages/0.0.0-local.2/alzo-otel-node-0.0.0-local.2.tgzA running instance answers only the build that started it, even when the new build has the same version. Stop each running instance before you install, with alzo stop or Ctrl-C in the terminal running it; both keep its volumes. If you forget, the new build refuses to act on it, and alzo status reports that the instance is served by a different build of alzo and names the process to stop: kill that process, then start the instance again with alzo up.