---
url: /guilds/offline.md
---
# Preparing for offline runs

A cloud environment's setup script, or an image build, can fetch, approve, and prepare every member once. Later runs then ask no question and fetch no agent, skill, or harness, so they can run with `--offline`.

::: security
`--yes` on `guild trust` approves every member the lockfile pins without asking, so the environment runs whatever a commit to `pandra-guild.lock` pins. Use it only in a repository whose commits you trust.
:::

To fetch, approve, and prepare every member:

```sh
pandra guild pull && pandra guild trust --yes && pandra guild sync --harness claude-code
```

Then run members with `--offline`:

```sh
pandra guild run reviewer --offline --prompt "Review the current branch."
```

## What `guild sync` prepares

`pandra guild sync` prepares each member as [`pandra sync`](/integrations/containers.md#what-pandra-sync-prepares) prepares one agent, and installs the harness each member uses: the one `--harness` names, or else the one a [profile](/guilds/running.md#run-members-with-a-profile) you name or your configuration chooses. It never fetches a remote member's package, approves, or changes your configuration: that is what `guild pull` and `guild trust` do. Building a `path` member can fetch what its own `pandra.lock` pins. Before it prepares anything, it checks every member and lists every problem with the command that fixes it (the digests are shortened here):

```text
error: 2 problems stop the guild's members from being prepared; nothing was prepared
  reviewer: ghcr.io/acme/reviewer:1.2.0@sha256:f4fa007adf9e... is not in the store, and sync fetches no agent
  release-notes: github.com/acme/agents//release-notes@2361c0c3c457... is not in the store, and sync fetches no agent
  To fetch the pinned packages:
    pandra guild pull
```

What it cannot prepare, such as a harness download under `--offline`, does not stop the other members: it prepares the rest, lists each missing item with the command that installs it, and fails.

## What still needs the network

MCP servers that `npx` or `uvx` start are fetched when a run starts, and a remote MCP server needs the network while the agent uses it. The model's API always needs the network.
