---
title: "Install"
description: "Install the opod binary with the script, a .deb or .rpm package, or a build from source, and keep it up to date."
url: "https://opod.io/docs/core/install/"
markdown_url: "https://opod.io/docs/core/install.md"
section: "Core"
last_updated: "2026-10-30"
---

# Install

> Install the opod binary with the script, a .deb or .rpm package, or a build from source, and keep it up to date.

## In short

Opod is one static binary, `opod`. The model catalog is embedded in it, so there are no other files to install. Every machine that serves a model also needs an inference engine, such as Ollama or vLLM. The leader itself needs no engine and no GPU.

1. **Install the binary**

   **Install script (macOS, Linux)**

   ```bash
   curl -fsSL https://raw.githubusercontent.com/opod-io/opod-core/main/installer/install.sh | sh
   ```

   **Debian / Ubuntu**

   Replace `VERSION` with a version from [Releases](https://github.com/opod-io/opod-core/releases).

   ```bash
   curl -LO https://github.com/opod-io/opod-core/releases/latest/download/opod_VERSION_linux_amd64.deb
   sudo dpkg -i opod_VERSION_linux_amd64.deb
   ```

   **Fedora / RHEL**

   ```bash
   sudo rpm -i https://github.com/opod-io/opod-core/releases/latest/download/opod_VERSION_linux_amd64.rpm
   ```

   **From source**

   Requires Go 1.26 or newer (the version in `go.mod`).

   ```bash
   git clone https://github.com/opod-io/opod-core
   cd opod-core
   go build -o opod ./cmd/opod
   ```

2. **Install an engine on each machine that serves a model**

   Opod drives an engine; it does not contain one. The simplest start is Ollama:

   ```bash
   brew install --cask ollama        # macOS: the cask, not the formula
   curl -fsSL https://ollama.com/install.sh | sh   # Linux
   ```

   The other engines are in [Install an engine](#install-an-engine) below.

3. **Run the doctor**

   ```bash
   opod doctor
   ```

   It checks the hardware, the listen port, the engine binaries, the engine, the data directory and the catalog. It prints a fix for each problem it finds.

## Check it worked

```bash
opod version
```

```text
opod 0.21.0 (linux/amd64, go1.26.4)
```

`opod doctor` then reports each check on one line. On a Mac with Ollama installed but not started, it looks like this (shortened):

```text
Opod doctor
============
✔ hardware: darwin/arm64 · 8 cores · 24 GB RAM
✔ listen port :8080 available
✔ ollama binary at /opt/homebrew/bin/ollama
⚠ ollama engine not reachable: ollama unreachable at http://127.0.0.1:11434: …
⚠   → start it with: ollama serve
✔ data dir: /Users/you/.opod
✔ catalog: 48 entries
```

A `⚠` line is a warning, not a failure: `opod doctor` exits `0` either way. Read the lines.

## The install script

The script:

1. Detects the OS and architecture. Supported: macOS arm64, Linux x86_64, Linux arm64.
2. Checks for `curl` and `tar`.
3. Checks whether Ollama is installed and prints the install command if it is not. On macOS it also detects the broken Homebrew `ollama` formula.
4. Downloads the release from GitHub Releases and verifies its SHA-256 against `checksums.txt`. From 0.3.0 it stops instead of installing when it cannot verify: no `checksums.txt`, no line for your platform, or neither `sha256sum` nor `shasum` on the machine.
5. Installs `opod` to the first writable directory of `~/.local/bin` and `~/bin`. With neither, it creates `~/.local/bin`; when your home directory is not writable, it uses `/usr/local/bin` with `sudo`.
6. Creates `~/.opod/catalog/` for your own catalog entries.
7. Prints the next steps, and tells you when the install directory is not on `PATH`.

### Script flags

Pass flags after `sh -s --`:

| Flag                     | Effect                                            |
| ------------------------ | ------------------------------------------------- |
| `--help`                 | Print usage.                                      |
| `--version vX.Y.Z`       | Install that version instead of the latest.       |
| `--install-dir PATH`     | Install to that directory.                        |
| `--no-engine`            | Skip the Ollama check.                            |
| `--dry-run`              | Print what would happen. Write nothing.           |
| `join "URL?token=TOKEN"` | After the install, run `opod join` with that URL. |

```bash
curl -fsSL https://raw.githubusercontent.com/opod-io/opod-core/main/installer/install.sh | sh -s -- --help
curl -fsSL https://raw.githubusercontent.com/opod-io/opod-core/main/installer/install.sh | sh -s -- --version v0.1.1
curl -fsSL https://raw.githubusercontent.com/opod-io/opod-core/main/installer/install.sh | sh -s -- --install-dir ~/tools/bin --no-engine
curl -fsSL https://raw.githubusercontent.com/opod-io/opod-core/main/installer/install.sh | sh -s -- --dry-run
```

### Script environment variables

| Variable             | Same as                                                                                           |
| -------------------- | ------------------------------------------------------------------------------------------------- |
| `OPOD_VERSION`       | `--version`. Also skips the GitHub API lookup, which has an anonymous limit of 60 calls per hour. |
| `OPOD_INSTALL_DIR`   | `--install-dir`                                                                                   |
| `OPOD_SKIP_ENGINE=1` | `--no-engine`                                                                                     |

```bash
curl -fsSL https://raw.githubusercontent.com/opod-io/opod-core/main/installer/install.sh | \
  OPOD_VERSION=v0.1.1 OPOD_INSTALL_DIR=/opt/opod/bin OPOD_SKIP_ENGINE=1 sh
```

Install and join a cluster in one command:

```bash
curl -fsSL https://raw.githubusercontent.com/opod-io/opod-core/main/installer/install.sh | \
  sh -s -- join "http://leader.example.com:8080?token=sk-orc-<node-token>"
```

Keep the quotes: `?` is a glob character in zsh.

## Packages (.deb and .rpm)

Each release publishes packages for `amd64` and `arm64`. The package installs the binary at `/usr/bin/opod`. A catalog directory at `/usr/share/opod/catalog` is read if it exists (see [Catalog format](https://opod.io/docs/core-reference/catalog/)).

## Install an engine

Pick one engine per worker:

| Engine                      | Where                                                 | Notes                                                                                        |
| --------------------------- | ----------------------------------------------------- | -------------------------------------------------------------------------------------------- |
| Ollama                      | macOS, Linux, CPU or GPU                              | The simplest default. On macOS use the cask (`brew install --cask ollama`), not the formula. |
| vLLM                        | Linux with NVIDIA, AMD ROCm, Intel XPU or Tenstorrent | High-throughput serving.                                                                     |
| SGLang                      | Linux with NVIDIA, AMD Instinct or Intel XPU          | Prefix cache shared across requests.                                                         |
| llama.cpp `llama-server`    | Anywhere, including CPU                               | GGUF files. Opod can launch it for you, and it is the engine for layer-split gangs.          |
| MLX-LM                      | macOS on Apple Silicon                                |                                                                                              |
| TensorRT-LLM `trtllm-serve` | Linux with NVIDIA                                     | One node only.                                                                               |

## System requirements

- macOS 13 or newer on Apple Silicon, or Linux x86_64 / arm64 (Ubuntu 22.04+, Debian 12+, Fedora 39+, RHEL 9+).
- Linux with NVIDIA for vLLM: driver 535 or newer.
- RAM: whatever the model needs. The leader alone needs little.
- Disk: room for the model weights in the models directory (`~/.opod/models` by default).
- Network: outbound HTTPS to the weight source (Hugging Face or the Ollama registry), unless you pre-place weights or use a mirror.

## Update

```bash
opod update            # download the latest release, verify SHA-256, replace the binary
opod update --check    # report only
opod update --version v0.1.1
```

After an update, restart a running leader with `opod down && opod up`. When the install directory needs root, `opod update` prints the exact command to run. A package install can also update through your package manager. Opod never checks for updates on its own.

## Uninstall

```bash
rm -f ~/.local/bin/opod   # or /usr/local/bin/opod for a root install
rm -rf ~/.opod            # state, keys, models, config — this deletes them
```

## If it fails

| Symptom                                                                                                                                                                    | Cause                                                 | Fix                                                                                                   |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------- | ----------------------------------------------------------------------------------------------------- |
| `curl: (22) … 404` from the script                                                                                                                                         | No release for this platform                          | Check [Releases](https://github.com/opod-io/opod-core/releases); pass `--version`.                    |
| `command not found: opod`                                                                                                                                                  | Install directory not on `PATH`                       | `export PATH="$HOME/.local/bin:$PATH"` in your shell profile.                                         |
| The script warns that the Homebrew `ollama` formula is missing `llama-server`, and chat later fails with `500: error starting llama-server: llama-server binary not found` | The Homebrew `ollama` formula on Apple Silicon        | `brew uninstall ollama && brew install --cask ollama`                                                 |
| `checksum MISMATCH — refusing to install possibly-tampered binary`                                                                                                         | Corrupt download or tampering                         | Run the script again. If it repeats, report it (see [Security](https://opod.io/docs/core/security/)). |
| `could not resolve latest version from GitHub API`                                                                                                                         | The GitHub API's limit of 60 anonymous calls per hour | Set `OPOD_VERSION` to a release tag.                                                                  |
| `opod doctor` prints `⚠ ollama engine not reachable`                                                                                                                       | The engine is installed but not running               | `ollama serve`, or on Linux `sudo systemctl start ollama`.                                            |
