# Configuration

Shipyard reads one YAML file at startup — `.shipyard.yaml` in the working directory, or the path given with `-config`. Restart Shipyard after editing it by hand; projects added in the console are written to the file and take effect at once.

`-config` also accepts an HTTPS URL. Shipyard downloads the file at startup and treats it as read-only: the console cannot add projects to it. If the server needs a token, put it in `SHIPYARD_CONFIG_TOKEN`; it is sent as a bearer token.

```sh
SHIPYARD_CONFIG_TOKEN=… shipyard -config https://config.example.com/shipyard.yaml
```

Unknown keys, duplicate keys, a second YAML document and files over 1 MiB are rejected at startup. Errors name the offending line.

## Minimal file

```yaml
listen: 127.0.0.1:8080
projects:
  - id: my-app
    repository: you/my-app
    enabled: true
    issue_label: agent-ready
    release_interval: 48h
    content:
      interval: 168h
      publish_mode: pull_request
```

Everything else has a default.

## Server and access

| Key | Default | Meaning |
|---|---|---|
| `listen` | — | Address and port, e.g. `127.0.0.1:8080`. |
| `runtime.api_token_env` | — | Name of the environment variable holding the API token. |
| `runtime.embedded_worker` | `false` | Run the queue worker inside the server process. |

Without a token the console is read-only, and Shipyard only starts on a loopback address. With a token:

- queuing, cancelling and retrying runs require it;
- reading runs, logs, pipelines and `/metrics` requires it too.

If `api_token_env` names a variable that is not set, Shipyard refuses to start.

## Projects

```yaml
projects:
  - id: my-app
    repository: you/my-app
    enabled: true
    issue_label: agent-ready
    auto_merge: false
    release_interval: 48h
    release:
      enabled: true
      required_checks: [test]
    deploy:
      enabled: true
      auto_rollback: true
    models:
      verification: code
    content:
      enabled: true
      interval: 168h
      min_score: 70
      target: blog
      topics: [Go, static sites]
      publish_mode: pull_request
    policy:
      kinds: [diagnostic, pipeline]
      max_runs_per_day: 50
      max_cost_per_day_usd: 5
```

| Key | Meaning |
|---|---|
| `id` | Unique ID: letters, digits, `.`, `_`, `-`. |
| `repository` | `owner/name`. |
| `enabled` | Only enabled projects accept runs. |
| `issue_label` | Label that marks issues ready for automated work. |
| `auto_merge` | `false` (default): a person merges every pull request. `true`: a `merge` pipeline step merges a pull request Shipyard opened once the base branch is protected, the required checks passed and it was approved, all for its current head commit. |
| `merge.method` | `merge` (default), `squash` or `rebase`. Needs `auto_merge: true`, like the other `merge` keys. |
| `merge.required_checks` | Checks that must pass on the head commit, added to those the branch protection requires. At least one check must be required. |
| `merge.approvals` | Approvals of the head commit by owners, members or collaborators; default 1. |
| `merge.wait` | How long a run waits for checks and reviews before it fails, `10m` to `168h`; default `24h`. |
| `release_interval` | Release cadence as a duration, e.g. `48h`. Nothing is released unless `release.enabled` is `true`. |
| `release.enabled` | `false` (default). `true`: every `release_interval` (at least `1h`) Shipyard tags the release branch with the next version when it holds commits the last release does not. No new commits, no release. Needs the GitHub App with `contents: write`, `checks: read` and `statuses: read`. |
| `release.branch` | Branch releases are cut from; default is the repository's default branch. |
| `release.tag_prefix` | Text before the version in a tag name; default `v` (`v1.4.0`). |
| `release.bump` | `auto` (default) reads commit subjects as Conventional Commits: breaking change raises the major version (the minor one before 1.0.0), `feat` the minor, anything else the patch. `patch`, `minor`, `major` are fixed. A repository without a version tag starts at `0.1.0`. |
| `release.required_checks` | Checks that must pass on the commit before it is tagged. A failed check fails the release. Name checks that run on pushes to the release branch. |
| `release.wait` | How long a release waits for its checks, `10m` up to `release_interval`; default `1h`. |
| `deploy.enabled` | `false` (default). `true`: every release Shipyard tags is deployed to staging, and to production after staging succeeded and an operator approved that commit. Shipyard creates GitHub deployments; your workflows (`on: deployment`) deploy and report the result. Needs `release.enabled` and the GitHub App with `deployments: write`. |
| `deploy.staging`, `deploy.production` | GitHub environment names of the two stages; defaults `staging` and `production`. |
| `deploy.wait` | How long one stage may take before it counts as failed, `10m` to `24h`; default `1h`. |
| `deploy.approval_wait` | How long a release that passed staging waits for approval, `10m` to `720h`; default `72h`. |
| `deploy.auto_rollback` | `true`: a failed or timed-out production deployment deploys the previous production release again. Default `false`. |
| `models` | Per-project override of the AI role routing below. |
| `content.interval` | How often content is researched, e.g. `168h`; at least `1h` when sources are listed. |
| `content.enabled` | `true` with `content.sources`: every `content.interval` Shipyard reads the sources and records the fresh items that match the project as topics. |
| `content.sources` | Names from `research.sources` (below). Empty: nothing is collected. |
| `content.topics` | Terms an item must contain one of to match the project, together with `content.profile.keywords` and `content.profile.competitors`. |
| `content.profile` | What the project is for: `audience` (text), `problems`, `docs` (URLs), `competitors`, `keywords` and `exclusions` (lists). An item that contains an exclusion is left out. A topic that names one of `problems` scores for usefulness: write them as short phrases. |
| `content.max_age` | How old an item's event or publication may be; default `336h`. Items without a date are left out. |
| `content.min_score` | Score from 0 to 100 a topic needs to be accepted. Topics are scored on relevance (40), audience (20), usefulness (25), novelty (10) and commercial fit (5). Search interest counts only when the project measures search impressions (`analytics`); otherwise the highest score is 90. |
| `content.path` | Directory of the repository articles are written to, e.g. `content/blog/posts/news`. Set, each research window turns its three best accepted topics into Markdown articles, each proposed as a draft pull request on `content/<topic>`. The `writing` model writes the body; Shipyard writes the frontmatter, the sources and the project section, and rejects a body that links elsewhere than the sources and `content.profile.docs`, states a version, date, quote or measurement no source states, names the project, copies 12 words of a source or repeats an earlier article. Merging publishes: a person merges on GitHub, or approves the draft's hash through the API and Shipyard merges that commit once the required checks pass. Needs the GitHub App with `contents: write` and `pull_requests: write`; approved merges also `checks: read` and `statuses: read`. |
| `content.required_checks` | Checks that must pass on an approved draft before Shipyard merges it, in addition to the branch protection's, e.g. `[site-build, links]`. Needs `content.path`. |
| `content.publish_mode` | `pull_request`: articles are proposed as pull requests. |
| `analytics.enabled` | `true`: once a day Shipyard reads the project's analytics sources and measures each published article over its window. Documentation links in new articles carry `utm_*` parameters naming the project and the article. `false`: nothing is collected and no parameters are added. |
| `analytics.sources` | Names from `analytics.sources` (below). A metric comes from one source at most. |
| `analytics.stars` | `true`: record the repository's star count once a day through the GitHub App. Stars are shown for the repository, never per article. |
| `analytics.window` | How long after publication an article is measured, in whole days; default `672h` (28 days). |
| `analytics.backfill` | How far back missing days are asked for, in whole days; default `2160h` (90 days). |
| `usage_review_interval` | How often a `usage_review` run is queued, at least `1h`, e.g. `168h`. Absent: reviews start only by hand. |
| `usage_review_output` | What a usage review opens: `pull_request` (default), a draft pull request that rewrites only `CLAUDE.md`, `.claude/rules/**.md` and `.claude/skills/*/SKILL.md`, never merged by Shipyard; or `issue`, an issue with the proposed diffs. Needs the GitHub App with `contents: write` and `pull_requests: write`, or `issues: write` for `issue`; without them the review fails and opens nothing. |
| `runs_on` | Labels such as `arch=arm64`; runs go to a ship that carries all of them. See [Ships](/ships/). |
| `policy.kinds` | Run kinds the project accepts: `diagnostic`, `ai_text`, `pipeline`, `usage_review`, `release`, `deploy`, `research`, `draft`, `publish`, `analytics`. Leave out to accept all. |
| `policy.max_runs_per_day` | Runs created in the last 24 hours; further runs get `429 budget_exceeded`. `0` or absent: no limit. |
| `policy.max_cost_per_day_usd` | Model cost of runs created in the last 24 hours, priced from the model prices. `0` or absent: no limit. |

Every run records the version and reason of the policy that admitted it, so changing the policy never rewrites past runs. Alerts and health checks follow the same policy: a refused run is not queued.

## Research sources

Sources are RSS 2.0 or Atom feeds, configured once and shared by every project that lists them in `content.sources`.

```yaml
research:
  sources:
    project-blog:
      url: https://example.org/blog/feed.xml
      rights: "CC BY 4.0"
      ttl: 6h
```

| Key | Meaning |
|---|---|
| `url` | Public http(s) address of the feed, without credentials. |
| `rights` | The terms under which you may read and quote the source. Recorded with each item the feed does not label itself. |
| `ttl` | How long a fetched copy is used before the source is asked again, `5m` to `168h`; default `6h`. |

A source is fetched once for all projects. A source that cannot be read adds nothing to that week's research and is named in the run's log.

## Analytics sources

An analytics source is an https endpoint that reports daily metrics for a project's pages in a small JSON format. Shipyard calls no search or analytics service itself: a service or a scheduled export of yours answers for the site.

```yaml
analytics:
  sources:
    site-stats:
      url: https://stats.example/shipyard
      token_env: SITE_STATS_TOKEN
      metrics: [impressions, clicks, visits, signups]
```

Shipyard asks `GET <url>?project=<id>&from=YYYY-MM-DD&to=YYYY-MM-DD` and expects:

```json
{"days": ["2026-11-10"],
 "rows": [{"day": "2026-11-10", "metric": "visits", "path": "/blog/hugo-0-150-released/", "value": 12},
          {"day": "2026-11-10", "metric": "signups", "utm_content": "hugo-0-150-released", "value": 1}]}
```

| Key | Meaning |
|---|---|
| `url` | https address (http only to a loopback address), without credentials. |
| `token_env` | Variable holding a bearer token; optional. |
| `metrics` | What the source reports: `impressions`, `clicks`, `visits`, `signups`. |

`days` lists the days the source has complete data for. A day it leaves out is reported as unknown, not as 0. Rows are matched to articles by the article's slug: the last segment of `path`, or `utm_content`. The report is `GET /api/v1/analytics?project_id=…&from=…&to=…`.

## AI providers and models

```yaml
ai:
  providers:
    primary:
      type: openai-compatible
      base_url: https://api.openai.com/v1
      api_key_env: OPENAI_API_KEY
      timeout: 120s
    local:
      type: openai-compatible
      base_url: http://127.0.0.1:11434/v1
  models:
    code:
      provider: primary
      model: your-coding-model-id
      max_output_tokens: 8192
      context_tokens: 200000      # optional: refuse prompts that cannot fit
      input_usd_per_mtok: 3.00    # optional: prices for the cost estimate
      output_usd_per_mtok: 15.00
      cache_read_usd_per_mtok: 0.30   # optional: prompt-cache prices
      cache_write_usd_per_mtok: 3.75
    researcher:
      provider: local
      model: your-local-model-id
  tasks:
    coding: code
    research: researcher
    writing: code
    verification: code
    release_notes: code
```

- **Providers** — `type: anthropic` calls the Claude API, `type: gemini` the Gemini API (`generateContent`; the key travels in the `x-goog-api-key` header). `type: openai-compatible` works with OpenAI and with local servers that speak the same API (Ollama, vLLM, LM Studio). `base_url` defaults to each provider's public API; it must be HTTPS, or HTTP on loopback. `timeout` defaults to `120s`.
- **Credentials** — set exactly one of `api_key_env` (environment variable), `api_key_file` (file such as `/run/secrets/openai_key`, up to 64 KiB) or `api_key` (inline; keep that file private). Local servers need none.
- **Models** — an alias names a provider and the provider's model ID. `max_output_tokens` defaults to 4096. `context_tokens`, when set, refuses a prompt that cannot fit (estimated at 4 bytes per token) before any call, with a readable reason. `input_usd_per_mtok` and `output_usd_per_mtok` are your prices in US dollars per million tokens; with both set, runs show an estimated cost. Unset means the cost is unknown; `0` means free (a local model). `cache_read_usd_per_mtok` and `cache_write_usd_per_mtok` price prompt tokens read from and written to the provider's prompt cache; a call that used the cache while its price is unset has an unknown cost.
- **What the adapters use** — every adapter sends one text prompt and reads the text reply, without streaming, tool calls or structured output; nothing in Shipyard needs those yet. Token counts come from the provider's answer, cached prompt tokens counted apart from input; each call is stored as one usage record (counts only) and `GET /api/v1/runs/{id}` shows the totals per pipeline step; a server that omits them is counted as a call without token counts, so totals never look complete when they are not.
- **Roles** — `tasks` maps the roles `coding`, `research`, `writing`, `verification` and `release_notes` to model aliases. A project's `models` overrides them. A role without a model fails the run instead of silently using another one.

Keys are read when a run needs them, so the server starts without AI credentials.

## Storage, logs and retention

| Key | Default | Meaning |
|---|---|---|
| `storage.path` | `./data/shipyard.db` | SQLite database: queue, history, audit. |
| `logging.directory` | `./data/logs` | One JSONL log per run attempt. |
| `logging.max_run_size_mb` | `50` | Log size cap per run. |
| `retention.logs_days` | `30` | Delete run logs after this many days. |
| `retention.completed_runs_days` | `90` | Delete finished runs after this many days. |
| `retention.audit_days` | `365` | Delete audit entries and alert records after this many days. |
| `retention.max_disk_size_mb` | `2048` | When the log directory reaches this size, new runs are refused until retention frees space. |

Keep both paths on a local disk. `logs_days` cannot exceed `completed_runs_days`. Details in [Monitoring and retention](/monitoring/).

## Monitoring and alerts

| Key | Default | Meaning |
|---|---|---|
| `observability.metrics` | `false` | Serve Prometheus metrics on `/metrics`. |
| `observability.otel_endpoint` | — | OTLP collector for traces, e.g. `http://127.0.0.1:4318`. See [Traces](/monitoring/#traces). |
| `observability.otel_protocol` | `http` | `http` (port 4318) or `grpc` (port 4317). |
| `prometheus.<name>.url` | — | Prometheus server for `prometheus` pipeline steps and health checks. |
| `prometheus.<name>.query` | — | The PromQL instant query a pipeline step runs; not needed for a server used only by health checks. |
| `prometheus.<name>.token_env` | — | Optional bearer token variable for that server. |
| `infra.enabled` | `false` | Serve `/api/v1/infra/*` to principals and dispatch infrastructure tasks to ships. Principals and tokens are managed with `shipyard principal`; the API token never opens these routes. |
| `infra.mcp` | `false` | Also serve the AI tool catalog over MCP at `POST /mcp` (needs `infra.enabled`). |
| `github_app.app_id` / `private_key_file` / `api_url` | — | GitHub App Shipyard authenticates as; `api_url` defaults to the public API. Check it with `shipyard github check`. See [GitHub App](https://github.com/spagu/shipyard/blob/main/docs/github-app.md). |
| `github_app.webhook_secret_env` | — | Variable holding the webhook secret; set and not empty, it serves `POST /webhooks/github`. |
| `github_app.reconcile_every` | `1h` | How often installations, repositories, issues and pull requests are reconciled; at least `5m`. |
| `github_app.inbox_days` | `30` | Days webhook deliveries are kept (1–365). |
| `infra.knowledge` | — | External knowledge bases AI agents may search, read only: `name`, `type` (`mddb`), `url` (HTTPS or loopback HTTP), `api_key_env`, `description`, `mode` (`vector`, `fulltext`, `hybrid`; default `hybrid`) and the `collections` allowlist. Search needs a `knowledge.read` grant naming the knowledge base or collection. See docs/knowledge-bases.md. |
| `infra.journal_max_mb` | `0` | Event journal size above which events sent by ships are refused (they keep and resend them); controller events are never refused. Archive and prune to make room. `0` means no limit. |
| `infra.sessions.max_tasks` | `0` | Infrastructure tasks one token session may create; the next one is refused with `429 session_limited`. `0` means unlimited. |
| `infra.memory.mddb_url` | — | MDDB server for semantic memory; set it to switch memory on (needs `infra.enabled`). HTTPS, or HTTP on loopback only. |
| `infra.memory.api_key_env` | — | Variable holding the MDDB API key; leave out for a server without authentication. |
| `infra.memory.prefix` | `shipyard` | Prefix of the MDDB collections (`<prefix>_incidents`); lowercase letters and digits. |
| `infra.memory.embedding_model` / `embedding_dimension` / `embedding_version` | — | The MDDB server's embedding model. Required with `mddb_url`; change any of them only together with a reindex. |
| `infra.memory.runbooks_dir` | — | Directory of approved Markdown runbooks that AI clients can search; a file removed here leaves memory on the next pass (30 s). |
| `infra.mutations.enabled` | `false` | Allow tasks that change a host (`serviceRestart`). Off, creating one is `409 mutations_disabled` and a queued one fails at dispatch. Each task still needs another person's approval in Bosun, and the ship must allow the service (`SHIP_SERVICE_RESTART`). Needs `infra.enabled`. See [Restart a service](/operations/#restart-a-service). |
| `infra.mutations.ai.enabled` | `false` | Also let AI clients (service principals, MCP and the agent loop, OAuth tokens held by an AI client) request them, only with a grant that names the host itself with `tasks.create`. AI clients never approve. Needs `infra.mutations.enabled`. |
| `health_checks.<name>.project` | — | Project the check belongs to. |
| `health_checks.<name>.source` | — | Prometheus server to query. |
| `health_checks.<name>.query` | — | PromQL query, at most 4096 characters. |
| `health_checks.<name>.comparator` / `threshold` | — | Rule for each series' latest value: `>`, `>=`, `<`, `<=`, `==`, `!=`. |
| `health_checks.<name>.lookback` | instant | Range window (up to 24h); empty runs an instant query. |
| `health_checks.<name>.min_samples` | `1` | Samples each series needs; fewer is `unknown`. |
| `health_checks.<name>.freshness` | — | Newest sample older than this is `stale`. |
| `health_checks.<name>.interval` | `1m` | Time between evaluations (15s to 24h); failures back off up to 1h. |
| `health_checks.<name>.on_degraded` | — | Pipeline queued once for the project when the check becomes `degraded`. Stale or unknown never trigger it. |
| `alerts.token_env` | — | Token variable Alertmanager must send. |
| `alerts.project_label` | `shipyard_project` | Alert label that names the project. |
| `alerts.enqueue_diagnostics` | `false` | Queue a diagnostic run for each firing alert no rule matches. |
| `alerts.rules[].name` | — | Rule name, unique; keys its cooldown and debounce. |
| `alerts.rules[].severity` / `labels` | any | Values of the `severity` label, and labels that must all match. First matching rule wins. |
| `alerts.rules[].action` | — | `diagnose` (firing queues a diagnostic run) or `record` (store only). |
| `alerts.rules[].cooldown` | none | Least time between two runs the rule queues for one project (up to 168h). |
| `alerts.rules[].debounce` | none | A firing alert this soon after a resolve of the same rule and project queues nothing (up to 168h). |
| `alerts.rules[].budget` | 0 (no cap) | Most runs the rule queues for one project within `budget_window` (up to 1000). |
| `alerts.rules[].budget_window` | 24h | Rolling window of `budget` (1m–168h). |
| `alerts.rules[].max_concurrent` | 0 (no cap) | Most unfinished runs the rule queued, across all projects (up to 1000). |
| `alerts.rules[].escalate` | none | Outbound targets told once per incident when `budget` or `max_concurrent` refuses a run. |
| `alerts.outbound.<name>.url` | — | Target of a signed `POST` when an incident opens or resolves; `https`, or `http` to a loopback address. |
| `alerts.outbound.<name>.secret_env` | — | Variable holding the HMAC secret that signs each delivery. |
| `alerts.outbound.<name>.events` / `projects` | both / all | `opened`, `resolved`; and the projects the target hears about. |
| `alerts.custom.<name>.secret_env` | — | Variable holding the HMAC secret of the custom source `<name>`. |
| `alerts.custom.<name>.project` | — | Project that receives every event of this source. |
| `alerts.custom.<name>.replay_window` | `5m` | Accepted clock difference, 30s to 1h. |
| `alerts.custom.<name>.enqueue_diagnostics` | `false` | Queue a diagnostic run for each firing event. |

## Fleet

| Key | Default | Meaning |
|---|---|---|
| `fleet.listen` | — | Address of the ship endpoint, e.g. `0.0.0.0:8443`. Unset means no ships. |
| `fleet.address` | — | `host:port` ships dial; used in join commands. |
| `fleet.hosts` | — | DNS names and IPs written into the endpoint's certificate. |
| `fleet.directory` | `<storage dir>/fleet` | Where the fleet certificate authority is kept. Back it up: losing it means re-joining every ship. |
| `fleet.relay` | `false` | Also accept ships through the Lighthouse in `remote.relay`, for ships that cannot reach `fleet.address`. Join commands then carry `-relay` and `-yard`. |
| `fleet.revoke_node_ships_after` | — | Revoke ships labelled `mode=node` (one per Kubernetes node) that have not called in for this long, e.g. `168h`; at least `1h`. Unset means never. |
| `fleet.ship_update.enabled` | `false` | Offer the signed ship release `version` to ships that opted in with `SHIP_UPDATE=on`. Needs `fleet.listen`. Shipyard does not start when the release is not imported or no longer verifies. Ships apply it only with `SHIP_UPDATE=on` ([Ships](/ships/#self-update)). |
| `fleet.ship_update.version` | — | Target release, `MAJOR.MINOR.PATCH`, imported with `shipyard ship release add`. Only this file and the local CLI select it; no API, MCP tool or Bosun request can. |
| `fleet.ship_update.labels` | — | Offer only to ships carrying all these `key=value` labels, e.g. `[ring=canary]`. |
| `fleet.ship_update.allow_downgrade` | `false` | Let ships accept a `version` below the one they run, never below the release's signed floor. |
| `fleet.ship_update.max_concurrent` | `5` | Ships downloading at once (1 to 1000); more get `RESOURCE_EXHAUSTED` and try again at the next offer. |
| `fleet.ship_update.releases_dir` | `<storage dir>/ship-releases` | Where imported releases are kept, one directory per version, files `0600`. |

The fleet requires `runtime.api_token_env`. Setup is described in [Ships and docks](/ships/).

## Sign-in

| Key | Default | Meaning |
|---|---|---|
| `auth.oidc.issuer` | — | Your OpenID Connect provider's issuer URL. Unset means no sign-in. |
| `auth.oidc.client_id` | — | The client registered for Shipyard at the provider. |
| `auth.oidc.client_secret_env` | — | Variable holding the client secret; leave empty for a public client. |
| `auth.oidc.redirect_url` | — | `https://<shipyard>/auth/oidc/callback`, registered at the provider. |

Sign-in lets admins and owners manage identities in the console. Each person must be linked first with `shipyard principal link`.

## Phones (Bosun)

| Key | Default | Meaning |
|---|---|---|
| `remote.name` | `Shipyard` | Name shown in the Bosun app. |
| `remote.direct_url` | — | This Shipyard's address on your network, e.g. `http://192.168.1.10:8080`. |
| `remote.relay` | — | Lighthouse base URL, e.g. `https://lighthouse.example.com`. |
| `remote.relay_token_env` | — | Variable holding the Lighthouse token. Required with `relay`. |
| `remote.mcp` | `false` | Serve the MCP endpoint to AI clients outside your network through Lighthouse at `<relay>/mcp/v1/yards/<yard ID>`. Needs `infra.mcp`. Clients authenticate with a principal token. |

Setting `direct_url` or `relay` enables pairing and requires `runtime.api_token_env`. See [Bosun app and Lighthouse](/bosun/).

## Agents

| Key | Default | Meaning |
|---|---|---|
| `agents.claude_code.binary` | `claude` | Claude Code executable for `agent` steps. On a ship, `ship run -claude PATH` or `SHIP_CLAUDE` sets it. |
| `agents.claude_code.checkouts` | `shipyard/checkouts` in the account's cache directory | Absolute directory for the working trees of `agent` steps with a `ref`; see [Checkout per run](/pipelines/#checkout-per-run). On a ship, `ship run -checkouts DIR` or `SHIP_CHECKOUTS`. |
| `agents.claude_code.sandbox.enabled` | `false` | Confine `agent` steps to their `workdir`; see [Sandbox](/pipelines/#sandbox). Linux 6.2 or newer; elsewhere the step fails. On a ship, `ship run -sandbox` or `SHIP_SANDBOX`. |
| `agents.claude_code.sandbox.read` | — | Extra absolute paths the sandboxed agent may read. On a ship, `-sandbox-read` or `SHIP_SANDBOX_READ`. |
| `agents.claude_code.sandbox.write` | — | Extra absolute paths the sandboxed agent may change. On a ship, `-sandbox-write` or `SHIP_SANDBOX_WRITE`. |

## Pipelines

```yaml
pipelines:
  project-check:
    steps:
      - id: config
        type: diagnostic
        timeout: 30s
```

A pipeline has 1 to 20 steps with unique IDs. Steps may name `fallback` models and `on_limit: wait | skip` for usage limits. An `agent` step may set `ref` and `pull_request` (`enabled`, `base`, `title`). Step types and examples are in [Pipelines](/pipelines/).

Provider `type` is `openai-compatible`, `anthropic` (the Claude API, e.g. `model: claude-opus-5-5`; key in `api_key_env: ANTHROPIC_API_KEY`) or `gemini` (key in `api_key_env`).

## Secrets in logs

Configured API keys and tokens are masked in run logs and errors, together with text that looks like `token=…`, `password: …` or an `Authorization` header. Do not put other secrets into run input.
