> ## 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.

# darkbloom CLI: complete command reference

> Reference for the darkbloom provider CLI: start, stop, restart, status, doctor, models, login, logs, update, schedule, sandbox, waitlist and uninstall.

`darkbloom` is the provider agent CLI. It manages the local provider, the coordinator connection, models, updates and the Darkbloom Sandbox add-on. Run `darkbloom --help` for the full command list.

```bash theme={null}
darkbloom [--config <path>] <subcommand> [options]
```

## Global options

| Option | Effect |
| - | - |
| `-c`, `--config <path>` | Read `provider.toml` from this path instead of `~/.config/darkbloom/provider.toml` |
| `--version` | Print the installed version |
| `-h`, `--help` | Print help for the command or subcommand |

## start

Serve on this Mac and install/start the provider LaunchAgent.

```bash theme={null}
darkbloom start [options]
```

| Flag | Default | Effect |
| - | - | - |
| `--model <id>` | saved selection | Select these models and skip the picker. Repeatable |
| `--all` | off | Serve every downloaded model that fits |
| `--coordinator-url <url>` | `wss://api.darkbloom.dev/ws/provider` | Override the coordinator WebSocket URL |
| `--idle-timeout <mins>` | `[backend] idle_timeout_mins` (`60`) | Minutes without requests before models unload. `0` keeps them loaded |
| `--local` | off | Only me: local API, no coordinator |
| `--network` | off | Darkbloom network only: no local API |
| `--me-first` | off | Both: local API beside Darkbloom, with network requests paused while you use it |
| `--no-me-first` | off | Both, shared: Darkbloom keeps serving while you use the local API |
| `--port <n>` | saved or first free from 8001 | Local API port |
| `--bind <addr>` | `127.0.0.1` | Local API bind address |
| `--no-auth` | off | Disable the local API bearer-token check |
| `--foreground` | off | Serve in this process instead of the LaunchAgent; launchd uses this internally |
| `--schedule` | off | Open the availability wizard before starting |

A first interactive `start` asks how the Mac serves (Only me, Darkbloom network, or Both, me first) and what to do with memory when idle. The answers are saved.

## stop and restart

```bash theme={null}
darkbloom stop [--timeout <seconds>] [--force]
darkbloom restart [--timeout <seconds>] [--startup-timeout <seconds>] [--force]
```

`stop` drains accepted requests, then stops the LaunchAgent. `restart` drains, starts again with the saved configuration, and confirms fresh authorization. `--force` permits interrupting unfinished work.

## status

```bash theme={null}
darkbloom status
darkbloom status --json
```

Prints the saved configuration, hardware, schedule, live daemon state and the coordinator's last `Trust: <level> / <status>` message, plus per-slot KV/MTP posture. `--json` prints the answers in progress only.

## doctor and verify

```bash theme={null}
darkbloom doctor [--strict] [--support] [--coordinator <url>]
darkbloom verify [--coordinator <url>]
```

`doctor` checks hardware, the local API, account link, Secure Enclave, runtime, downloaded models and coordinator connectivity. On macOS 27 it also prints an `APP ATTEST` section. It reports an old Darkbloom MDM profile for information only: Darkbloom no longer uses MDM, and `darkbloom unenroll`, choice 2, opens System Settings to remove one. `--strict` exits 1 on warnings too. `verify` is `doctor --strict`.

## models

```bash theme={null}
darkbloom models list [--json] [--all] [--hash <id>]
darkbloom models catalog [--coordinator <url>] [--json] [--type text]
darkbloom models download <model-id>
darkbloom models remove <model-id> [--force]
darkbloom models location [PATH] [--check|--from-env|--reset]
```

`list` shows downloaded models; `catalog` asks the coordinator for the current network catalog; `download` fetches weights; `remove` deletes them; `location` selects or inspects the model cache directory.

## login and logout

```bash theme={null}
darkbloom login
darkbloom logout [--timeout <seconds>] [--force]
```

`login` starts an RFC 8628 device-code flow and saves a provider token to `~/.darkbloom/auth_token`. `logout` drains and stops the provider, revokes that token with the coordinator, then deletes it locally. It does not remove models, App Attest keys or profiles.

## logs

```bash theme={null}
darkbloom logs [--last 1h] [-f]
darkbloom logs --file [--lines 50]
```

By default, streams unified logs for subsystem `dev.darkbloom.provider`. `--last <duration>` reads history, `-f` follows, and `--file` tails `~/.darkbloom/provider.log` instead.

## update

```bash theme={null}
darkbloom update [--check-only] [--rollback] [--yes] [--timeout <seconds>] [--force]
```

Checks for a signed release, downloads and verifies it, drains the running provider and atomically replaces the app. `--check-only` reports without installing. `--rollback` restores the retained predecessor and quarantines the current release.

## autoupdate

```bash theme={null}
darkbloom autoupdate enable|disable|status
```

Toggles `provider.auto_update`. When enabled, the provider checks for releases on its schedule and installs them after verification.

## schedule

```bash theme={null}
darkbloom schedule            # interactive weekly availability editor
darkbloom schedule --show     # print saved windows and time zone
darkbloom schedule --disable  # disable scheduling, keep the windows
```

Scheduling never starts or stops the provider. Saved edits apply on the next `start` or `restart`. The wizard accepts `mon`…`sun`, ranges, `weekdays`, `weekends` and `daily`; an end earlier than the start crosses midnight. See [Scheduling](https://docs.darkbloom.dev/provider/scheduling.md).

## sandbox

```bash theme={null}
darkbloom sandbox setup [--linux-slots <n>] [--macos-slots <n>] [--disk <volume>] [--plan]
darkbloom sandbox status [--json]
darkbloom sandbox pause
darkbloom sandbox resume
darkbloom sandbox logs [-f]
darkbloom sandbox uninstall
```

Manages the Darkbloom Sandbox add-on that runs approved CI jobs and agent sandboxes in Linux and macOS VMs beside the inference provider. `setup` requires an account approved for Darkbloom Sandbox and shows the plan before installing. See [Set up sandbox hosting](https://docs.darkbloom.dev/provider/sandbox-setup.md) and [Sandbox status](https://docs.darkbloom.dev/provider/sandbox-status.md), and the add-on's own `status`, `pause`, `resume`, `schedule`, `provider-hold` and `uninstall` commands in `~/DarkbloomSandbox/darkbloom-sandbox`.

## waitlist

```bash theme={null}
darkbloom waitlist            # list waitlists and this account's place
darkbloom waitlist sandbox    # join or check the Darkbloom Sandbox waitlist
```

Waitlists are per account. Joining sends nothing about the Mac.

## uninstall

```bash theme={null}
darkbloom uninstall
darkbloom uninstall --keep-models --yes
darkbloom uninstall --everything --yes
```

Removes the provider, LaunchAgents, settings and (optionally) models. `--keep-models` leaves downloaded weights for a later reinstall. `--dry-run` lists every path without changing anything.

## Other commands

| Command | Purpose |
| - | - |
| `darkbloom local` | Start or show the local-only API and its key |
| `darkbloom route` | Choose where local requests go when this Mac cannot take them |
| `darkbloom cluster` | Set up two Macs to serve one model together |
| `darkbloom switch` | Replace the hosted models without restarting |
| `darkbloom cache` | Inspect or set encrypted cache storage and write limits |
| `darkbloom beta` | List, enable or disable beta features |
| `darkbloom idle` | Configure the saved idle-memory policy |
| `darkbloom autopilot` | Experimental model residency and download controls |
| `darkbloom report` | Upload recent unified logs to the coordinator |
| `darkbloom enroll` / `unenroll` | App Attest setup guidance and exit |
| `darkbloom benchmark` | Inference benchmarks and harnesses |
| `darkbloom fan` | Experimental fan control |


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