# 01 · Install & Build Blackbird (`v0.3.0`)

> Canonical HTML: https://multiplayer.tech/blackbird/install/
> Manual Index: https://multiplayer.tech/blackbird/index.md

Install prebuilt `v0.3.0` binaries in one line (macOS Apple Silicon and Linux `x86_64`), upgrade in place with `blackbird upgrade`, or build directly from source.

## Prebuilt Binary Install (Recommended)
Self-contained `v0.3.0` release binaries ship with static Lua 5.5.1, OpenSSL 3, embedded `iroh` v1.5.0 P2P, `blackbird lan`, Flight Deck Turbo, and Identity Portability v1:

```bash
curl -fsSL https://multiplayer.tech/install.sh | sh
blackbird --help
```

Only want to connect Claude Code, Codex, Cursor, or Antigravity to `multiplayer.tech` parties? Install standalone `mp-outpost v0.3.0`:
```bash
curl -fsSL https://multiplayer.tech/install-outpost.sh | sh
```

## Self-Upgrade in Place
Blackbird upgrades itself from GitHub Releases with dual OpenSSL 3 SHA-256 verification (`release-manifest.json` + `SHA256SUMS.txt`), offline smoke checks, and atomic generation swap:

```bash
# From your shell
blackbird upgrade --check
blackbird upgrade

# Or live inside a TUI session (re-inhabits your session)
/upgrade
```

## Build from Source: Exact Toolchain
CMake configure checks exact versions and stops fast on a mismatch:

| Dependency | macOS | Linux |
| --- | --- | --- |
| **C++23 Compiler** | Clang `23.1.2` (Homebrew LLVM at `/opt/homebrew/opt/llvm` or `/usr/local/opt/llvm`) | Clang `23.1.3` + `libc++ 23.1.3` (`clang++` on `PATH`; override with `CXX`) |
| **Lua & OpenSSL** | Lua `5.5.1` (static `liblua.a` beside library) + Homebrew `openssl@3` | Lua `5.5.1` (set `LUA_DIR` if needed) + OpenSSL 3 dev headers |
| **Build & Runtime** | CMake `>= 3.28`, Ninja on `PATH`, Python 3, `/usr/bin/curl`, `/usr/bin/openssl` | Same |
| **Embedded P2P (optional)** | Rust `>= 1.91` + Cargo for `iroh` v1.5.0 staticlib (`BLACKBIRD_ENABLE_IROH=auto`) | Same |

On macOS, the installer refuses binaries that dynamically link libraries from `/opt/homebrew` or `/usr/local`. Keep `liblua.a` next to the Lua library so Release builds link statically.

## Build & Install from Checkout
```bash
git clone https://github.com/antimemeai/blackbird.git
cd blackbird
./scripts/install-blackbird
blackbird --help
```

Builds land under `~/.local/lib/blackbird/releases/`, with `~/.local/lib/blackbird/current` pointing at the active generation. Never edits shell rc files. Pass `--prefix DIR` to install elsewhere.

## Update, Roll Back & Prune
```bash
# Rebuild checkout as-is (uncommitted edits included; default 6 jobs, override with --jobs N)
git pull && ./scripts/install-blackbird --update

# Inspect generations, roll back, or prune old builds (default keeps 3)
./scripts/install-blackbird --list
./scripts/install-blackbird --rollback [GENERATION]
./scripts/install-blackbird --prune [--keep N]
```

Saved sessions store the full path to their turn program (`--workflow`). `--prune` does not check whether a running process or saved session still points at an old generation.
