> ## Documentation Index
> Fetch the complete documentation index at: https://docs.darkbloom.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Installing and setting up the provider agent

> Install the Darkbloom provider on an Apple Silicon Mac, choose how it serves, link your account, and start earning.

The provider agent is the `darkbloom` command and the `Darkbloom.app` bundle it runs from. It serves models locally with MLX, can connect to the Darkbloom network, and can also host Darkbloom Sandbox jobs. You do not need to install Python, a virtual environment, or an inference engine first.

## Requirements

* An Apple Silicon Mac. The installer checks `uname -m` = `arm64` and refuses an Intel Mac.
* macOS 27 or later for a new network provider. The binary targets macOS 14, and a Mac that already has the CLI or a provider config can reinstall or repair on an older system with an upgrade notice, but current App Attest authorization requires macOS 27.
* Enough unified memory for the model you choose. Model fit is listed in the provider's hardware requirements and in the model catalog; the small models fit smaller Macs, and the largest catalog builds need 128 GB or more.
* Outbound HTTPS to `https://api.darkbloom.dev`.
* No `sudo`. The installer writes to `~/.darkbloom`, appends one `PATH` line to your shell rc file, and tries to link `/usr/local/bin/darkbloom`.

## Install

```bash theme={null}
curl -fsSL https://api.darkbloom.dev/install.sh | bash
exec $SHELL -l
```

Open a new Terminal window instead of `exec $SHELL -l` if you prefer.

The installer:

1. Verifies `Darwin` and `arm64`, then prints the chip, memory and macOS version.
2. Fetches the latest release metadata and refuses a new install below macOS 27.
3. Downloads the release tarball and verifies its bundle hash.
4. Installs `Darkbloom.app` atomically and verifies the binary hash, the Metal library hash, the code signature (`io.darkbloom.provider`) and a runtime smoke test. A tarball without `Darkbloom.app` is refused; the install directory is left unchanged on any failure.
5. Links `~/.darkbloom/bin/darkbloom` onto your `PATH`.
6. Creates the Secure Enclave identity if it is missing. Failure here is a warning and reduces trust, not a failed install.
7. Configures verification: App Attest on macOS 27 or later. Darkbloom no longer uses MDM, so the installer configures no MDM profile.

> [!NOTE]
>
> Hosting sandboxes on the same Mac is a separate add-on. See [Set up sandbox hosting](https://docs.darkbloom.dev/provider/sandbox-setup.md) for the plan, slots and disk rules.

## Choose how the Mac serves

Run:

```bash theme={null}
darkbloom start
```

A first start asks nothing: it serves **Both** (the Darkbloom network and a local OpenAI-compatible API on this Mac), with Darkbloom never paused, and saves that. To serve another way, name it:

* **Only me** — `darkbloom start --local` or `darkbloom local`: a local API, no coordinator, no earnings. See [run models on your own Mac](https://docs.darkbloom.dev/inference/run-on-your-own-mac.md).
* **Darkbloom network** — `darkbloom start --network`: serve the public network; no local API.
* **Both, me first** — `darkbloom start --me-first`: network requests pause while you use the local API; `--no-me-first` turns the pause off again.

Each choice is saved. `darkbloom --opencode` (or `--hermes`) is a shortcut that starts the Mac and configures that tool against the local API.

## Link your account

Earnings are credited to the Darkbloom account linked to the Mac:

```bash theme={null}
darkbloom login
darkbloom restart
```

`darkbloom login` runs an RFC 8628 device-code flow: it prints a URL and a one-time code, opens the browser, and polls until you approve. The provider token is saved to `~/.darkbloom/auth_token`. It is not a consumer API key.

> [!WARNING]
>
> If you skip account linking, a network provider can still run, but earnings are not credited. `darkbloom logout` revokes the saved token and stops the provider.

## Pick a model

```bash theme={null}
darkbloom models catalog
darkbloom models list
darkbloom models download <model-id>
```

`catalog` asks the coordinator for the current network catalog; `list` shows what is already downloaded and whether it fits this Mac. Model weights go to your Hugging Face cache (`~/.cache/huggingface/hub/models--<org>--<name>`) unless you choose another location with `darkbloom models location`.

## Start serving

```bash theme={null}
darkbloom start
```

`start` installs and starts the provider LaunchAgent, which persists across reboots and restarts after a crash. It preloads the selected models at startup. Use `darkbloom start --foreground` to keep the process in the terminal for debugging.

Check the result:

```bash theme={null}
darkbloom status
darkbloom doctor
```

`status` prints the saved configuration, hardware, schedule, live daemon state and the coordinator's last trust message. `doctor` runs the full diagnostic, including the local API, account link and App Attest checks on macOS 27.

## Host Darkbloom Sandbox jobs

The same Mac can run approved GitHub Actions CI jobs in Linux and macOS VMs. The add-on is separate from the inference provider and is managed through the provider CLI:

```bash theme={null}
darkbloom sandbox setup
darkbloom sandbox status
darkbloom sandbox pause
darkbloom sandbox resume
darkbloom sandbox logs -f
darkbloom sandbox uninstall
```

`darkbloom sandbox setup` requires a Darkbloom account approved for Darkbloom Sandbox. It shows the plan for this Mac, asks before installing anything, and installs the add-on in `~/DarkbloomSandbox`. Inference pauses while a job runs. See the Darkbloom Sandbox provider documentation for disk, slot and work-disk rules.

## Update and uninstall

```bash theme={null}
darkbloom update
darkbloom uninstall
```

`darkbloom update` checks the coordinator for a signed release, verifies it and atomically replaces the app; `--check-only` reports without installing. `darkbloom uninstall` offers to remove everything or to keep downloaded models for a later reinstall.

## Configuration file

The provider reads `~/.config/darkbloom/provider.toml`, or an explicit `--config <path>`. Retired `~/.config/eigeninference` and `~/.dginf` installs are not migrated. Changes take effect on the next `darkbloom start` or `darkbloom restart`.

See the [CLI reference](https://docs.darkbloom.dev/provider/cli-reference.md) for commands and flags, and the [scheduling guide](https://docs.darkbloom.dev/provider/scheduling.md) for availability windows.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.