[{"excerpt":"This month's work is about limits and visibility. You can cap what each project spends, see a Kubernetes cluster's nodes from Docks, and give AI agents…","lang":"","locale":"","tags":["shipyard","operations","kubernetes"],"taxonomies":{"tag":["shipyard","operations","kubernetes"]},"text":"This month's work is about limits and visibility. You can cap what each project spends, see a Kubernetes cluster's nodes from Docks, and give AI agents read-only access to documentation stored outside Shipyard.\nA daily budget per project\nA project that answers every alert with a diagnostic run can burn through a model budget overnight. A policy block on the project sets the limits:\nprojects:\n  - id: my-app\n    repository: you/my-app\n    policy:\n      kinds: [diagnostic, pipeline]\n      max_runs_per_day: 50\n      max_cost_per_day_usd: 5\nkinds lists the run kinds the project accepts. The two limits count over a rolling 24 hours. Each new run goes through the checks in a fixed order, whoever asked for it:\n\nA refused kind answers 403 policy_denied. A used-up budget answers 429 budget_exceeded. Retries, Alertmanager diagnostics and health-check pipelines follow the same policy; a refused alert is logged and not queued.\nEvery admitted run keeps the version of the policy that let it in and the reason in plain words, such as kind pipeline allowed; daily run limit 50; daily cost limit $5.00. The run panel in the console shows both. When you change the policy later, past runs keep the version they had.\nCost comes from the model prices you configure (input_usd_per_mtok, output_usd_per_mtok). Calls without a price add nothing, so set prices before you rely on a cost limit.\nOne ship that reads the whole cluster\nNode ships report on one machine each. For a cluster-wide view, run one ship with SHIP_KUBERNETES=in-cluster from deploy/kubernetes/ship-cluster.yaml. It reads the Kubernetes API as its pod's ServiceAccount and answers the new clusterNodes task:\n\nThe result lists every node with its Ready status, cordon, kubelet version, roles and the pressure conditions that are true. Labels, annotations, addresses and capacity stay in the cluster. A cluster with more than 200 nodes returns the first 200 and marks the result as truncated.\nThe ServiceAccount's role allows get and list on nodes and nothing else: no secrets, no pods, no exec, no writes. The token is read again on every call, so a rotated token is picked up without a restart.\nKnowledge bases for AI agents\nAgents often need documentation that lives somewhere else, such as the API reference of another application. infra.knowledge connects external MDDB servers and names the collections agents may search:\ninfra:\n  enabled: true\n  knowledge:\n    - name: docs\n      type: mddb\n      url: https://kb.example\n      api_key_env: DOCS_MDDB_KEY\n      description: Product documentation and API reference\n      mode: hybrid\n      collections: [api, guides]\nAccess is per principal. A token needs the knowledge.read scope with a grant that names the knowledge base or one of its collections, so two clients on one Shipyard can see different knowledge bases. Anything not granted answers 404, the same as a name that does not exist.\nShipyard only searches. It never writes to, reindexes or deletes from a knowledge base. Hits pass through the credential redactor, are cut to 4000 bytes each, and are returned as cited data that never counts as an instruction. Docks → Knowledge bases shows whether each one answers right now.\nWhere to read more\n\nConfiguration: policy on projects and infra.knowledge.\nShips and docks: node ships and the cluster ship.\nUsing the console: the run panel and Docks.","title":"Budgets, cluster nodes, knowledge","translation_key":"","url":"/blog/run-budgets-cluster-nodes-knowledge/"},{"excerpt":"Shipyard is one static binary and one SQLite file. A Raspberry Pi 4 or 5 runs it comfortably.","lang":"","locale":"","tags":["shipyard","raspberry-pi","install"],"taxonomies":{"tag":["shipyard","raspberry-pi","install"]},"text":"Shipyard is one static binary and one SQLite file. A Raspberry Pi 4 or 5 runs it comfortably.\nWhat you need\n\nRaspberry Pi 4 or 5 with 64-bit Raspberry Pi OS or Ubuntu Server\nAn SSD or a good SD card — the queue and logs are written to local disk\nSSH access with sudo\n\n1. Install the binary\nTake shipyard-linux-arm64 from Downloads (shipyard-linux-arm on a 32-bit system) and copy it to the Pi:\nscp shipyard-linux-arm64 pi@raspberrypi.local:/tmp/shipyard\nssh pi@raspberrypi.local\nsudo install -m 0755 /tmp/shipyard /usr/local/bin/shipyard\n2. Create the service user\nsudo useradd --system --home-dir /var/lib/shipyard --shell /usr/sbin/nologin shipyard\nsudo install -d -m 0750 -o root -g shipyard /etc/shipyard\n3. Write the configuration\n/etc/shipyard/.shipyard.yaml:\nlisten: 127.0.0.1:8080\nprojects:\n  - id: my-app\n    repository: you/my-app\n    enabled: true\n    issue_label: agent-ready\n    release_interval: 48h\n    content:\n      interval: 168h\n      publish_mode: pull_request\nstorage:\n  path: /var/lib/shipyard/shipyard.db\nlogging:\n  directory: /var/lib/shipyard/logs\nruntime:\n  embedded_worker: true\n  api_token_env: SHIPYARD_API_TOKEN\nobservability:\n  metrics: true\npipelines:\n  project-check:\n    steps:\n      - id: config\n        type: diagnostic\n        timeout: 30s\n4. Set the API token\necho \u0026#34;SHIPYARD_API_TOKEN=$(openssl rand -hex 32)\u0026#34; | sudo tee /etc/shipyard/shipyard.env \u0026gt; /dev/null\nsudo chown root:shipyard /etc/shipyard/shipyard.env /etc/shipyard/.shipyard.yaml\nsudo chmod 0640 /etc/shipyard/shipyard.env /etc/shipyard/.shipyard.yaml\n5. Add the systemd unit\n/etc/systemd/system/shipyard.service:\n[Unit]\nDescription=Shipyard portfolio control plane\nWants=network-online.target\nAfter=network-online.target\n\n[Service]\nType=simple\nUser=shipyard\nGroup=shipyard\nWorkingDirectory=/var/lib/shipyard\nStateDirectory=shipyard\nStateDirectoryMode=0750\nEnvironmentFile=-/etc/shipyard/shipyard.env\nExecStart=/usr/local/bin/shipyard -config /etc/shipyard/.shipyard.yaml\nRestart=on-failure\nRestartSec=5s\nTimeoutStopSec=15s\nSyslogIdentifier=shipyard\nUMask=0077\nNoNewPrivileges=true\nPrivateTmp=true\nProtectSystem=strict\nProtectHome=true\nRestrictAddressFamilies=AF_UNIX AF_INET AF_INET6\n\n[Install]\nWantedBy=multi-user.target\nsudo systemctl daemon-reload\nsudo systemctl enable --now shipyard\n6. Check it\ncurl http://127.0.0.1:8080/healthz\ncurl http://127.0.0.1:8080/readyz\njournalctl -u shipyard -f\n7. Run the first pipeline\nTOKEN=$(sudo sed -n \u0026#39;s/^SHIPYARD_API_TOKEN=//p\u0026#39; /etc/shipyard/shipyard.env)\ncurl -X POST http://127.0.0.1:8080/api/v1/runs \\\n  -H \u0026#34;Authorization: Bearer $TOKEN\u0026#34; \\\n  -H \u0026#39;Content-Type: application/json\u0026#39; \\\n  -H \u0026#39;Idempotency-Key: pi-first-check-001\u0026#39; \\\n  -d \u0026#39;{\u0026#34;project_id\u0026#34;:\u0026#34;my-app\u0026#34;,\u0026#34;kind\u0026#34;:\u0026#34;pipeline\u0026#34;,\u0026#34;task\u0026#34;:\u0026#34;project-check\u0026#34;,\u0026#34;input\u0026#34;:\u0026#34;\u0026#34;}\u0026#39;\nThe run goes through the queue, the embedded worker picks it up and the result is in the run list:\ncurl -H \u0026#34;Authorization: Bearer $TOKEN\u0026#34; \u0026#34;http://127.0.0.1:8080/api/v1/runs?limit=1\u0026#34;\nOpen the UI from your laptop\nShipyard listens on loopback. Tunnel it:\nssh -L 8080:127.0.0.1:8080 pi@raspberrypi.local\nThen open http://127.0.0.1:8080 and paste the token.\nKeep the SD card alive\nCap the journal in /etc/systemd/journald.conf:\nSystemMaxUse=200M\nShipyard's own log and run retention is set under retention: in the configuration.","title":"Install Shipyard on a Raspberry Pi","translation_key":"","url":"/blog/install-shipyard-on-raspberry-pi/"},{"excerpt":"One person can write software for fifty repositories. Keeping fifty repositories maintained, released and explained is a different job. These are the problems…","lang":"","locale":"","tags":["shipyard","operations"],"taxonomies":{"tag":["shipyard","operations"]},"text":"One person can write software for fifty repositories. Keeping fifty repositories maintained, released and explained is a different job. These are the problems Shipyard takes over.\n1. Nobody watches everything\nIssues, failing CI, security alerts and stale pull requests arrive in fifty places. Shipyard collects them into one queue for the repositories you opt in. One screen, one list, sorted by project.\n2. Small fixes never get done\nA dependency bump or a two-line bug fix costs more in context switching than in typing. Label an issue agent-ready and Shipyard turns it into a tested pull request. You review; nothing merges on its own.\n3. Releases depend on memory\nMerged changes sit unreleased because nobody remembers to tag. Shipyard batches approved changes into a release every 48 hours per project. No changes, no release.\n4. Alerts wake you up without context\nAn Alertmanager webhook lands in Shipyard, is matched to its project and starts a diagnostic run. By the time you look, the run log already holds the metrics and the first findings.\n5. Work disappears on restart\nRuns live in a durable SQLite queue with leases and heartbeats. A crashed worker loses nothing: the lease expires and the run is picked up again. Idempotency keys stop the same job from running twice.\n6. Projects go quiet\nSoftware that ships but never explains itself looks abandoned. Once a week Shipyard scores topics for each project and drafts an article when one clears the threshold of 70. Below the threshold it skips the week.\nWhat it costs to run\nOne static binary, one SQLite file, one log directory. It runs on a Raspberry Pi.","title":"The problems Shipyard solves","translation_key":"","url":"/blog/problems-shipyard-solves/"},{"excerpt":"Shipyard runs a software portfolio from one place. It watches the repositories you select, builds approved issues into pull requests and ships releases on a…","lang":"","locale":"","tags":["shipyard"],"taxonomies":{"tag":["shipyard"]},"text":"Shipyard runs a software portfolio from one place. It watches the repositories you select, builds approved issues into pull requests and ships releases on a schedule you set.\nOne Go binary holds the API, the worker and the UI. State lives in SQLite on local disk; every run keeps its own log.\nStart with the pipeline examples, then install it.","title":"Starting Shipyard","translation_key":"","url":"/blog/starting-shipyard/"},{"excerpt":"Queue runs, read their logs, cancel and retry — the same API the console uses.","lang":"","locale":"","tags":null,"taxonomies":{"category":["Documentation"]},"text":"Base URL: the address in listen, e.g. http://127.0.0.1:8080. Requests and responses are JSON; timestamps are Unix seconds; run IDs are 32 hex characters.\nAuthentication\nSend the API token as a bearer token:\n-H \u0026#34;Authorization: Bearer $SHIPYARD_API_TOKEN\u0026#34;\nQueuing, cancelling and retrying always need it. When runtime.api_token_env is set, reads need it too. /healthz and /readyz are always open.\nQueue a run\ncurl -X POST http://127.0.0.1:8080/api/v1/runs \\\n  -H \u0026#34;Authorization: Bearer $SHIPYARD_API_TOKEN\u0026#34; \\\n  -H \u0026#39;Content-Type: application/json\u0026#39; \\\n  -H \u0026#39;Idempotency-Key: nightly-check-2026-10-03\u0026#39; \\\n  -d \u0026#39;{\u0026#34;project_id\u0026#34;:\u0026#34;my-app\u0026#34;,\u0026#34;kind\u0026#34;:\u0026#34;pipeline\u0026#34;,\u0026#34;task\u0026#34;:\u0026#34;project-check\u0026#34;,\u0026#34;input\u0026#34;:\u0026#34;\u0026#34;}\u0026#39;\n\n\n\nField\nMeaning\n\n\n\n\nproject_id\nAn enabled project.\n\n\nkind\ndiagnostic, pipeline or ai_text.\n\n\ntask\nPipeline name for pipeline; AI role for ai_text.\n\n\ninput\nPipeline input or the prompt. Required for ai_text.\n\n\n\nIdempotency-Key (8–128 characters) is required. Sending the same key and body again returns the run already queued instead of a duplicate; the same key with a different body is 409. Answer: 202 with {\u0026quot;data\u0026quot;: run}; the run carries policy_version and policy_reason of the project policy that admitted it. A kind the policy does not allow is 403 policy_denied; a used-up daily budget is 429 budget_exceeded.\nRuns\n\n\n\nRequest\nReturns\n\n\n\n\nGET /api/v1/runs?limit=50\nNewest runs first, up to 100 per page, and next_cursor.\n\n\nGET /api/v1/runs?before=\u0026lt;cursor\u0026gt;\nThe next page; next_cursor is null on the last one.\n\n\nGET /api/v1/runs/{id}\nOne run.\n\n\nPOST /api/v1/runs/{id}/cancel\nCancels a queued run, asks a running one to stop.\n\n\nPOST /api/v1/runs/{id}/retry\nQueues a failed or cancelled run again as a new run. Needs a new Idempotency-Key.\n\n\nPUT /api/v1/runs/{id}/hold\nPlaces a legal hold: retention keeps the run and its logs. DELETE lifts it. Both are audited.\n\n\nGET /api/v1/runs/{id}/artifacts\nFiles the run's steps produced, without content: changes.patch and pull-request.json of an agent step with pull_request.\n\n\nGET /api/v1/runs/{id}/artifacts/{step}/{name}\nDownloads one artifact.\n\n\n\nA run:\n{\n  \u0026#34;id\u0026#34;: \u0026#34;4bb3a90cb8f0a3bbc59125a2d3a992f8\u0026#34;,\n  \u0026#34;project_id\u0026#34;: \u0026#34;my-app\u0026#34;,\n  \u0026#34;kind\u0026#34;: \u0026#34;pipeline\u0026#34;,\n  \u0026#34;task\u0026#34;: \u0026#34;project-check\u0026#34;,\n  \u0026#34;state\u0026#34;: \u0026#34;succeeded\u0026#34;,\n  \u0026#34;attempt\u0026#34;: 1,\n  \u0026#34;created_at\u0026#34;: 1791057353,\n  \u0026#34;updated_at\u0026#34;: 1791057353,\n  \u0026#34;finished_at\u0026#34;: 1791057353,\n  \u0026#34;logs_expired\u0026#34;: false,\n  \u0026#34;hold\u0026#34;: false\n}\nstate is one of queued, waiting, running, cancelling, succeeded, failed, cancelled. A failed run carries error; a waiting run carries the limit in error and its resume time in resume_at.\nGET /api/v1/limits lists models and agents blocked by a usage limit: key (provider/model or claude-code), until and reason.\nDeployments\nFor projects with deploy.enabled. Each tagged release has one deployment: staging first, production after approval.\n\n\n\nRequest\nResult\n\n\n\n\nGET /api/v1/deployments?project_id=\u0026lt;id\u0026gt;\nNewest deployments first, with state, commit sha and artifact digest.\n\n\nGET /api/v1/deployments/{id}\nOne deployment.\n\n\nPOST /api/v1/deployments/{id}/approve\nStarts production. The body repeats what you approve: {\u0026quot;sha\u0026quot;:\u0026quot;...\u0026quot;,\u0026quot;digest\u0026quot;:\u0026quot;...\u0026quot;}. Anything else than the deployment's own values is 409 candidate_mismatch.\n\n\nPOST /api/v1/deployments/{id}/reject\nEnds a deployment that waits for approval.\n\n\nPOST /api/v1/deployments/{id}/rollback\nDeploys the previous production release again. Needs an Idempotency-Key.\n\n\n\nLogs\ncurl -H \u0026#34;Authorization: Bearer $SHIPYARD_API_TOKEN\u0026#34; \\\n  \u0026#34;http://127.0.0.1:8080/api/v1/runs/$ID/logs?offset=0\u0026#34;\nReturns up to 100 events and next_offset; pass it back as offset to read on. attempt=N reads an earlier attempt. Expired logs answer 410.\nEach event has time, level, run_id, attempt and message, plus source (worker or ship), project_id, a unique event_id and, when tracing is on, the run's trace_id. Lines written by older versions lack the last four.\nTo download a whole attempt as JSON Lines, use GET /api/v1/runs/{id}/logs/export?attempt=N (same authorization as reading logs). A last line cut short by a crash or a full disk is left out; an attempt with no log yet is an empty file.\n{\u0026#34;data\u0026#34;: [{\u0026#34;time\u0026#34;: \u0026#34;2026-10-03T18:55:53Z\u0026#34;, \u0026#34;level\u0026#34;: \u0026#34;info\u0026#34;, \u0026#34;run_id\u0026#34;: \u0026#34;4bb3…\u0026#34;, \u0026#34;attempt\u0026#34;: 1, \u0026#34;message\u0026#34;: \u0026#34;run started\u0026#34;}], \u0026#34;next_offset\u0026#34;: 112}\nHistory\nGET /api/v1/runs/{id}/events lists what happened to a run, oldest first: queued, cancel_requested, deferred, succeeded, failed, cancelled, recovered_\u0026lt;state\u0026gt;, hold_placed, hold_lifted, each with at (Unix seconds). Retention removes old entries.\n{\u0026#34;data\u0026#34;: [{\u0026#34;action\u0026#34;: \u0026#34;queued\u0026#34;, \u0026#34;at\u0026#34;: 1791057300}, {\u0026#34;action\u0026#34;: \u0026#34;succeeded\u0026#34;, \u0026#34;at\u0026#34;: 1791057353}]}\nProjects and pipelines\nGET /api/v1/projects and GET /api/v1/pipelines return the configured projects and pipelines; prompts are never returned. read_only in the projects answer is true when the configuration came from a URL.\nPOST /api/v1/projects adds a project and writes it to the configuration file:\ncurl -X POST http://127.0.0.1:8080/api/v1/projects \\\n  -H \u0026#34;Authorization: Bearer $SHIPYARD_API_TOKEN\u0026#34; \\\n  -d \u0026#39;{\u0026#34;id\u0026#34;:\u0026#34;firmware\u0026#34;,\u0026#34;repository\u0026#34;:\u0026#34;you/firmware\u0026#34;,\u0026#34;enabled\u0026#34;:true,\u0026#34;issue_label\u0026#34;:\u0026#34;agent-ready\u0026#34;,\n       \u0026#34;release_interval\u0026#34;:\u0026#34;48h\u0026#34;,\u0026#34;runs_on\u0026#34;:[\u0026#34;arch=arm64\u0026#34;],\n       \u0026#34;content\u0026#34;:{\u0026#34;enabled\u0026#34;:false,\u0026#34;interval\u0026#34;:\u0026#34;168h\u0026#34;,\u0026#34;min_score\u0026#34;:70}}\u0026#39;\n409 project_exists for a duplicate ID, 409 config_read_only for a URL-loaded configuration, 400 invalid_project with a message naming the problem.\nToken usage\nAll usage routes take from and to (Unix seconds, to exclusive; default the last 7 days). Costs are estimates from the configured model prices; cost_usd is null when any call was unpriced or unreported (unknown, not zero). Workstation sessions carry no cost estimate. Only counts and labels are returned, never prompts, replies or file text.\n\n\n\nRequest\nReturns\n\n\n\n\nGET /api/v1/projects/{id}/usage?group=\nTokens of every kind and cost per source (default), model, category, session (run or workstation session) or ship, most tokens first, with the total.\n\n\nGET /api/v1/projects/{id}/usage/sessions\nRuns and workstation sessions, most tokens first, with average and peak context; limit (1–200, default 50), offset, count and next_offset.\n\n\nGET /api/v1/projects/{id}/usage/findings\nThe project's current usage findings: rule code, value against threshold, tokens, and the session, directory or tool, most tokens first.\n\n\nGET /api/v1/projects/{id}/usage/instructions\nInstruction files of the project's repositories and the user-scope files of the same ships, with fixed_costs per ship and directory.\n\n\nGET /api/v1/ships/{id}/usage\nThe runs the ship executed, newest first, with tokens and cost per run and the period's total; paged like sessions.\n\n\n\ncurl -H \u0026#34;Authorization: Bearer $SHIPYARD_API_TOKEN\u0026#34; \\\n  \u0026#34;http://127.0.0.1:8080/api/v1/projects/firmware/usage?group=model\u0026#34;\n404 project_not_found for a project not in the configuration, 404 ship_not_found, 400 invalid_range (from not below to, or not a number), 400 invalid_group, 400 invalid_page.\nPhones\n\n\n\nRequest\nReturns\n\n\n\n\nGET /api/v1/info\nname, version, yard_id and whether pairing is on.\n\n\nGET /api/v1/devices\nPaired phones; keys are never returned.\n\n\nPOST /api/v1/devices\nPairs a phone: body {\u0026quot;name\u0026quot;: \u0026quot;Pixel 9\u0026quot;}; returns the bosun://pair link and an SVG QR code once.\n\n\nPOST /api/v1/devices/{id}/revoke\nRevokes a phone.\n\n\n\nThe app itself sends end-to-end encrypted requests to POST /bosun/v1/yards/{yard}/rpc, directly or through a Lighthouse.\nShips\n\n\n\nRequest\nReturns\n\n\n\n\nGET /api/v1/ships\nShips with labels, platform, online and revoked; enabled tells whether the fleet endpoint is on.\n\n\nPOST /api/v1/ships/tokens\nA join token and the ship join command. Body: {\u0026quot;name\u0026quot;: \u0026quot;garage-pi\u0026quot;, \u0026quot;labels\u0026quot;: [\u0026quot;arch=arm64\u0026quot;]}; optional uses (1–1000, default 1) lets that many ships join with it, ttl_minutes (5–1440, default 60) sets its lifetime.\n\n\nPOST /api/v1/ships/{id}/revoke\nRevokes a ship.\n\n\nGET /api/v1/sessions\nActive infrastructure token sessions with principal name, kind and task count; enabled tells whether infra.enabled is on.\n\n\nPOST /api/v1/sessions/{id}/end\nEnds a session and revokes its token.\n\n\nGET /api/v1/ssh/sessions\nBrokered SSH sessions of the yard with ship and requester names; enabled tells whether infra.ssh.enabled is on.\n\n\nPOST /api/v1/ssh/sessions/{id}/end\nEnds an SSH session and cuts its connection; 409 ssh_state_conflict once it has ended.\n\n\nGET /api/v1/ssh/sessions/{id}/recording\nA recorded session's asciicast v2 file; always needs the API token.\n\n\n\nShips themselves talk to Shipyard over gRPC with mutual TLS — see Ships and docks.\nErrors\nErrors have a stable code and the request ID, which every response also carries in the X-Request-Id header. Quote it when you report a problem:\n{\u0026#34;error\u0026#34;: {\u0026#34;code\u0026#34;: \u0026#34;run_not_found\u0026#34;}, \u0026#34;request_id\u0026#34;: \u0026#34;4f0c1e2d3b4a59687f8e9d0c1b2a3948\u0026#34;}\n\n\n\nStatus\nCodes\n\n\n\n\n400\ninvalid_input, invalid_project, invalid_name, invalid_label, invalid_cursor, invalid_attempt, invalid_offset, project_unavailable, pipeline_unavailable, model_or_input_unavailable, unsupported_kind, idempotency_key_required\n\n\n401\nunauthenticated\n\n\n403\npolicy_denied\n\n\n404\nrun_not_found, ship_not_found\n\n\n409\nidempotency_conflict, run_state_conflict, project_exists, config_read_only, fleet_disabled\n\n\n410\nlogs_expired\n\n\n429\nbudget_exceeded\n\n\n500\nstorage_failed, enqueue_failed, logs_unavailable\n\n\n503\nstorage_unavailable\n\n\n507\nlog_budget_exceeded\n\n\n\nMetrics and the Alertmanager webhook are described in Monitoring.","title":"HTTP API","translation_key":"","url":"/api/"},{"excerpt":"Watch your Shipyards from an Android phone. Pair by QR code; reach a Shipyard on your network directly or from anywhere through a Lighthouse relay.","lang":"","locale":"","tags":null,"taxonomies":{"category":["Documentation"]},"text":"Bosun is the Android app for Shipyard. It keeps a list of your Shipyards — home lab, office, a client's server — and shows for each one whether it is reachable, its version, the latest runs and which ships are online.\n\n  \n  \n    \n      \n      Download for AndroidBosun APK\n    \n  \n\nA Shipyard usually sits on a private network. Bosun reaches it two ways:\nBosun ──HTTPS──▶ Lighthouse (public host) ◀──outbound TLS── Shipyard (private network)\nBosun ──────────────────────────────────────────────────▶ Shipyard (same network)\n\nDirect — on the same Wi-Fi or VPN, Bosun talks to Shipyard's own address.\nLighthouse — a small relay on any public server. Shipyard connects out to it, so you open no ports and need no static IP. Bosun tries direct first and falls back to the relay.\n\nEvery request is encrypted and authenticated end to end with a key that only the phone and the Shipyard hold. The relay forwards bytes it cannot read and cannot forge answers. A replayed or delayed request is refused.\n1. Enable phones on the Shipyard\nruntime:\n  api_token_env: SHIPYARD_API_TOKEN\nremote:\n  name: Home lab\n  direct_url: http://192.168.1.10:8080      # address phones use on your network\n  relay: https://lighthouse.example.com     # optional, see below\n  relay_token_env: SHIPYARD_RELAY_TOKEN\nFor direct access, Shipyard must listen on the network address (listen: 0.0.0.0:8080), which requires the API token. Set direct_url, relay or both, then restart.\n2. Pair the phone\n\nIn the console open Docks → Phones → Pair phone, enter a name and click Show pairing code.\nIn Bosun tap Add Shipyard and scan the code. Bosun stores the key encrypted in the phone's keystore and tests the connection.\n\nThe code contains the phone's key and is shown once. Pair every phone separately; Revoke in the console cuts a phone off immediately.\n3. Run a Lighthouse (optional)\nAny small public server works — a VPS, a cloud VM, a Raspberry Pi with a public IP. One Lighthouse serves many Shipyards.\nsudo install -m 0755 lighthouse-linux-amd64 /usr/local/bin/lighthouse\nsudo install -d -m 0700 /etc/lighthouse\necho \u0026#34;LIGHTHOUSE_TOKEN=$(openssl rand -hex 32)\u0026#34; | sudo tee /etc/lighthouse/lighthouse.env \u0026gt;/dev/null\nsudo chmod 0600 /etc/lighthouse/lighthouse.env\n/etc/systemd/system/lighthouse.service:\n[Unit]\nDescription=Lighthouse relay\nWants=network-online.target\nAfter=network-online.target\n\n[Service]\nDynamicUser=yes\nStateDirectory=lighthouse\nEnvironmentFile=/etc/lighthouse/lighthouse.env\nExecStart=/usr/local/bin/lighthouse -autocert lighthouse.example.com -state /var/lib/lighthouse\nAmbientCapabilities=CAP_NET_BIND_SERVICE\nRestart=always\nNoNewPrivileges=true\nProtectSystem=strict\n\n[Install]\nWantedBy=multi-user.target\nsudo systemctl enable --now lighthouse\ncurl https://lighthouse.example.com/healthz\nPoint the DNS name at the server and open TCP 443. -autocert gets a Let's Encrypt certificate automatically; use -tls-cert and -tls-key for your own. Behind a TLS-terminating proxy that speaks HTTP/2 to the backend, run with -plain-http.\nOn each Shipyard, put the same token into the variable named by relay_token_env (here SHIPYARD_RELAY_TOKEN). The Shipyard log shows relay tunnel up when it is connected. The first Shipyard that registers a yard ID owns it on that Lighthouse.\nLighthouse options\nlighthouse [-listen :443] (-autocert DOMAINS | -tls-cert FILE -tls-key FILE | -plain-http) [-state DIR] [-metrics ADDR]\n\n\n\nOption\nMeaning\n\n\n\n\n-listen\nAddress for HTTPS and the Shipyard tunnels; default :443.\n\n\n-autocert\nComma-separated domains for automatic certificates.\n\n\n-tls-cert, -tls-key\nYour own certificate.\n\n\n-plain-http\nNo TLS: only behind a proxy that terminates TLS, or for local tests.\n\n\n-state\nDirectory for yard bindings and certificates; default /var/lib/lighthouse.\n\n\n-metrics\nAddress for Prometheus GET /metrics, for example 127.0.0.1:9464. Off by default; never on the public port. Metric names are listed in the Fleet relay notes.\n\n\n\nLIGHTHOUSE_TOKEN must be set.\nGet Bosun\n\n  \n  Download for AndroidBosun APK\n\nThe APK is on Downloads. Install it with adb install bosun.apk or open it on the phone and allow installation from that source. Bosun needs Android 8.0 or newer.","title":"Bosun app and Lighthouse","translation_key":"","url":"/bosun/"},{"excerpt":"Every key of `.shipyard.yaml`: projects, AI routing, storage, retention, access, monitoring and pipelines.","lang":"","locale":"","tags":null,"taxonomies":{"category":["Documentation"]},"text":"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.\n-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.\nSHIPYARD_CONFIG_TOKEN=… shipyard -config https://config.example.com/shipyard.yaml\nUnknown keys, duplicate keys, a second YAML document and files over 1 MiB are rejected at startup. Errors name the offending line.\nMinimal file\nlisten: 127.0.0.1:8080\nprojects:\n  - id: my-app\n    repository: you/my-app\n    enabled: true\n    issue_label: agent-ready\n    release_interval: 48h\n    content:\n      interval: 168h\n      publish_mode: pull_request\nEverything else has a default.\nServer and access\n\n\n\nKey\nDefault\nMeaning\n\n\n\n\nlisten\n—\nAddress and port, e.g. 127.0.0.1:8080.\n\n\nruntime.api_token_env\n—\nName of the environment variable holding the API token.\n\n\nruntime.embedded_worker\nfalse\nRun the queue worker inside the server process.\n\n\n\nWithout a token the console is read-only, and Shipyard only starts on a loopback address. With a token:\n\nqueuing, cancelling and retrying runs require it;\nreading runs, logs, pipelines and /metrics requires it too.\n\nIf api_token_env names a variable that is not set, Shipyard refuses to start.\nProjects\nprojects:\n  - id: my-app\n    repository: you/my-app\n    enabled: true\n    issue_label: agent-ready\n    auto_merge: false\n    release_interval: 48h\n    release:\n      enabled: true\n      required_checks: [test]\n    deploy:\n      enabled: true\n      auto_rollback: true\n    models:\n      verification: code\n    content:\n      enabled: true\n      interval: 168h\n      min_score: 70\n      target: blog\n      topics: [Go, static sites]\n      publish_mode: pull_request\n    policy:\n      kinds: [diagnostic, pipeline]\n      max_runs_per_day: 50\n      max_cost_per_day_usd: 5\n\n\n\nKey\nMeaning\n\n\n\n\nid\nUnique ID: letters, digits, ., _, -.\n\n\nrepository\nowner/name.\n\n\nenabled\nOnly enabled projects accept runs.\n\n\nissue_label\nLabel that marks issues ready for automated work.\n\n\nauto_merge\nfalse (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.\n\n\nmerge.method\nmerge (default), squash or rebase. Needs auto_merge: true, like the other merge keys.\n\n\nmerge.required_checks\nChecks that must pass on the head commit, added to those the branch protection requires. At least one check must be required.\n\n\nmerge.approvals\nApprovals of the head commit by owners, members or collaborators; default 1.\n\n\nmerge.wait\nHow long a run waits for checks and reviews before it fails, 10m to 168h; default 24h.\n\n\nrelease_interval\nRelease cadence as a duration, e.g. 48h. Nothing is released unless release.enabled is true.\n\n\nrelease.enabled\nfalse (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.\n\n\nrelease.branch\nBranch releases are cut from; default is the repository's default branch.\n\n\nrelease.tag_prefix\nText before the version in a tag name; default v (v1.4.0).\n\n\nrelease.bump\nauto (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.\n\n\nrelease.required_checks\nChecks 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.\n\n\nrelease.wait\nHow long a release waits for its checks, 10m up to release_interval; default 1h.\n\n\ndeploy.enabled\nfalse (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.\n\n\ndeploy.staging, deploy.production\nGitHub environment names of the two stages; defaults staging and production.\n\n\ndeploy.wait\nHow long one stage may take before it counts as failed, 10m to 24h; default 1h.\n\n\ndeploy.approval_wait\nHow long a release that passed staging waits for approval, 10m to 720h; default 72h.\n\n\ndeploy.auto_rollback\ntrue: a failed or timed-out production deployment deploys the previous production release again. Default false.\n\n\nmodels\nPer-project override of the AI role routing below.\n\n\ncontent.interval\nHow often content is researched, e.g. 168h; at least 1h when sources are listed.\n\n\ncontent.enabled\ntrue with content.sources: every content.interval Shipyard reads the sources and records the fresh items that match the project as topics.\n\n\ncontent.sources\nNames from research.sources (below). Empty: nothing is collected.\n\n\ncontent.topics\nTerms an item must contain one of to match the project, together with content.profile.keywords and content.profile.competitors.\n\n\ncontent.profile\nWhat 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.\n\n\ncontent.max_age\nHow old an item's event or publication may be; default 336h. Items without a date are left out.\n\n\ncontent.min_score\nScore 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.\n\n\ncontent.path\nDirectory 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/\u0026lt;topic\u0026gt;. 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.\n\n\ncontent.required_checks\nChecks 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.\n\n\ncontent.publish_mode\npull_request: articles are proposed as pull requests.\n\n\nanalytics.enabled\ntrue: 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.\n\n\nanalytics.sources\nNames from analytics.sources (below). A metric comes from one source at most.\n\n\nanalytics.stars\ntrue: record the repository's star count once a day through the GitHub App. Stars are shown for the repository, never per article.\n\n\nanalytics.window\nHow long after publication an article is measured, in whole days; default 672h (28 days).\n\n\nanalytics.backfill\nHow far back missing days are asked for, in whole days; default 2160h (90 days).\n\n\nusage_review_interval\nHow often a usage_review run is queued, at least 1h, e.g. 168h. Absent: reviews start only by hand.\n\n\nusage_review_output\nWhat 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.\n\n\nruns_on\nLabels such as arch=arm64; runs go to a ship that carries all of them. See Ships.\n\n\npolicy.kinds\nRun kinds the project accepts: diagnostic, ai_text, pipeline, usage_review, release, deploy, research, draft, publish, analytics. Leave out to accept all.\n\n\npolicy.max_runs_per_day\nRuns created in the last 24 hours; further runs get 429 budget_exceeded. 0 or absent: no limit.\n\n\npolicy.max_cost_per_day_usd\nModel cost of runs created in the last 24 hours, priced from the model prices. 0 or absent: no limit.\n\n\n\nEvery 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.\nResearch sources\nSources are RSS 2.0 or Atom feeds, configured once and shared by every project that lists them in content.sources.\nresearch:\n  sources:\n    project-blog:\n      url: https://example.org/blog/feed.xml\n      rights: \u0026#34;CC BY 4.0\u0026#34;\n      ttl: 6h\n\n\n\nKey\nMeaning\n\n\n\n\nurl\nPublic http(s) address of the feed, without credentials.\n\n\nrights\nThe terms under which you may read and quote the source. Recorded with each item the feed does not label itself.\n\n\nttl\nHow long a fetched copy is used before the source is asked again, 5m to 168h; default 6h.\n\n\n\nA 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.\nAnalytics sources\nAn 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.\nanalytics:\n  sources:\n    site-stats:\n      url: https://stats.example/shipyard\n      token_env: SITE_STATS_TOKEN\n      metrics: [impressions, clicks, visits, signups]\nShipyard asks GET \u0026lt;url\u0026gt;?project=\u0026lt;id\u0026gt;\u0026amp;from=YYYY-MM-DD\u0026amp;to=YYYY-MM-DD and expects:\n{\u0026#34;days\u0026#34;: [\u0026#34;2026-11-10\u0026#34;],\n \u0026#34;rows\u0026#34;: [{\u0026#34;day\u0026#34;: \u0026#34;2026-11-10\u0026#34;, \u0026#34;metric\u0026#34;: \u0026#34;visits\u0026#34;, \u0026#34;path\u0026#34;: \u0026#34;/blog/hugo-0-150-released/\u0026#34;, \u0026#34;value\u0026#34;: 12},\n          {\u0026#34;day\u0026#34;: \u0026#34;2026-11-10\u0026#34;, \u0026#34;metric\u0026#34;: \u0026#34;signups\u0026#34;, \u0026#34;utm_content\u0026#34;: \u0026#34;hugo-0-150-released\u0026#34;, \u0026#34;value\u0026#34;: 1}]}\n\n\n\nKey\nMeaning\n\n\n\n\nurl\nhttps address (http only to a loopback address), without credentials.\n\n\ntoken_env\nVariable holding a bearer token; optional.\n\n\nmetrics\nWhat the source reports: impressions, clicks, visits, signups.\n\n\n\ndays 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=…\u0026amp;from=…\u0026amp;to=….\nAI providers and models\nai:\n  providers:\n    primary:\n      type: openai-compatible\n      base_url: https://api.openai.com/v1\n      api_key_env: OPENAI_API_KEY\n      timeout: 120s\n    local:\n      type: openai-compatible\n      base_url: http://127.0.0.1:11434/v1\n  models:\n    code:\n      provider: primary\n      model: your-coding-model-id\n      max_output_tokens: 8192\n      context_tokens: 200000      # optional: refuse prompts that cannot fit\n      input_usd_per_mtok: 3.00    # optional: prices for the cost estimate\n      output_usd_per_mtok: 15.00\n      cache_read_usd_per_mtok: 0.30   # optional: prompt-cache prices\n      cache_write_usd_per_mtok: 3.75\n    researcher:\n      provider: local\n      model: your-local-model-id\n  tasks:\n    coding: code\n    research: researcher\n    writing: code\n    verification: code\n    release_notes: code\n\nProviders — 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.\nCredentials — 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.\nModels — 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.\nWhat 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.\nRoles — 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.\n\nKeys are read when a run needs them, so the server starts without AI credentials.\nStorage, logs and retention\n\n\n\nKey\nDefault\nMeaning\n\n\n\n\nstorage.path\n./data/shipyard.db\nSQLite database: queue, history, audit.\n\n\nlogging.directory\n./data/logs\nOne JSONL log per run attempt.\n\n\nlogging.max_run_size_mb\n50\nLog size cap per run.\n\n\nretention.logs_days\n30\nDelete run logs after this many days.\n\n\nretention.completed_runs_days\n90\nDelete finished runs after this many days.\n\n\nretention.audit_days\n365\nDelete audit entries and alert records after this many days.\n\n\nretention.max_disk_size_mb\n2048\nWhen the log directory reaches this size, new runs are refused until retention frees space.\n\n\n\nKeep both paths on a local disk. logs_days cannot exceed completed_runs_days. Details in Monitoring and retention.\nMonitoring and alerts\n\n\n\nKey\nDefault\nMeaning\n\n\n\n\nobservability.metrics\nfalse\nServe Prometheus metrics on /metrics.\n\n\nobservability.otel_endpoint\n—\nOTLP collector for traces, e.g. http://127.0.0.1:4318. See Traces.\n\n\nobservability.otel_protocol\nhttp\nhttp (port 4318) or grpc (port 4317).\n\n\nprometheus.\u0026lt;name\u0026gt;.url\n—\nPrometheus server for prometheus pipeline steps and health checks.\n\n\nprometheus.\u0026lt;name\u0026gt;.query\n—\nThe PromQL instant query a pipeline step runs; not needed for a server used only by health checks.\n\n\nprometheus.\u0026lt;name\u0026gt;.token_env\n—\nOptional bearer token variable for that server.\n\n\ninfra.enabled\nfalse\nServe /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.\n\n\ninfra.mcp\nfalse\nAlso serve the AI tool catalog over MCP at POST /mcp (needs infra.enabled).\n\n\ngithub_app.app_id / private_key_file / api_url\n—\nGitHub App Shipyard authenticates as; api_url defaults to the public API. Check it with shipyard github check. See GitHub App.\n\n\ngithub_app.webhook_secret_env\n—\nVariable holding the webhook secret; set and not empty, it serves POST /webhooks/github.\n\n\ngithub_app.reconcile_every\n1h\nHow often installations, repositories, issues and pull requests are reconciled; at least 5m.\n\n\ngithub_app.inbox_days\n30\nDays webhook deliveries are kept (1–365).\n\n\ninfra.knowledge\n—\nExternal 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.\n\n\ninfra.journal_max_mb\n0\nEvent 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.\n\n\ninfra.sessions.max_tasks\n0\nInfrastructure tasks one token session may create; the next one is refused with 429 session_limited. 0 means unlimited.\n\n\ninfra.memory.mddb_url\n—\nMDDB server for semantic memory; set it to switch memory on (needs infra.enabled). HTTPS, or HTTP on loopback only.\n\n\ninfra.memory.api_key_env\n—\nVariable holding the MDDB API key; leave out for a server without authentication.\n\n\ninfra.memory.prefix\nshipyard\nPrefix of the MDDB collections (\u0026lt;prefix\u0026gt;_incidents); lowercase letters and digits.\n\n\ninfra.memory.embedding_model / embedding_dimension / embedding_version\n—\nThe MDDB server's embedding model. Required with mddb_url; change any of them only together with a reindex.\n\n\ninfra.memory.runbooks_dir\n—\nDirectory of approved Markdown runbooks that AI clients can search; a file removed here leaves memory on the next pass (30 s).\n\n\ninfra.mutations.enabled\nfalse\nAllow 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.\n\n\ninfra.mutations.ai.enabled\nfalse\nAlso 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.\n\n\nhealth_checks.\u0026lt;name\u0026gt;.project\n—\nProject the check belongs to.\n\n\nhealth_checks.\u0026lt;name\u0026gt;.source\n—\nPrometheus server to query.\n\n\nhealth_checks.\u0026lt;name\u0026gt;.query\n—\nPromQL query, at most 4096 characters.\n\n\nhealth_checks.\u0026lt;name\u0026gt;.comparator / threshold\n—\nRule for each series' latest value: \u0026gt;, \u0026gt;=, \u0026lt;, \u0026lt;=, ==, !=.\n\n\nhealth_checks.\u0026lt;name\u0026gt;.lookback\ninstant\nRange window (up to 24h); empty runs an instant query.\n\n\nhealth_checks.\u0026lt;name\u0026gt;.min_samples\n1\nSamples each series needs; fewer is unknown.\n\n\nhealth_checks.\u0026lt;name\u0026gt;.freshness\n—\nNewest sample older than this is stale.\n\n\nhealth_checks.\u0026lt;name\u0026gt;.interval\n1m\nTime between evaluations (15s to 24h); failures back off up to 1h.\n\n\nhealth_checks.\u0026lt;name\u0026gt;.on_degraded\n—\nPipeline queued once for the project when the check becomes degraded. Stale or unknown never trigger it.\n\n\nalerts.token_env\n—\nToken variable Alertmanager must send.\n\n\nalerts.project_label\nshipyard_project\nAlert label that names the project.\n\n\nalerts.enqueue_diagnostics\nfalse\nQueue a diagnostic run for each firing alert no rule matches.\n\n\nalerts.rules[].name\n—\nRule name, unique; keys its cooldown and debounce.\n\n\nalerts.rules[].severity / labels\nany\nValues of the severity label, and labels that must all match. First matching rule wins.\n\n\nalerts.rules[].action\n—\ndiagnose (firing queues a diagnostic run) or record (store only).\n\n\nalerts.rules[].cooldown\nnone\nLeast time between two runs the rule queues for one project (up to 168h).\n\n\nalerts.rules[].debounce\nnone\nA firing alert this soon after a resolve of the same rule and project queues nothing (up to 168h).\n\n\nalerts.rules[].budget\n0 (no cap)\nMost runs the rule queues for one project within budget_window (up to 1000).\n\n\nalerts.rules[].budget_window\n24h\nRolling window of budget (1m–168h).\n\n\nalerts.rules[].max_concurrent\n0 (no cap)\nMost unfinished runs the rule queued, across all projects (up to 1000).\n\n\nalerts.rules[].escalate\nnone\nOutbound targets told once per incident when budget or max_concurrent refuses a run.\n\n\nalerts.outbound.\u0026lt;name\u0026gt;.url\n—\nTarget of a signed POST when an incident opens or resolves; https, or http to a loopback address.\n\n\nalerts.outbound.\u0026lt;name\u0026gt;.secret_env\n—\nVariable holding the HMAC secret that signs each delivery.\n\n\nalerts.outbound.\u0026lt;name\u0026gt;.events / projects\nboth / all\nopened, resolved; and the projects the target hears about.\n\n\nalerts.custom.\u0026lt;name\u0026gt;.secret_env\n—\nVariable holding the HMAC secret of the custom source \u0026lt;name\u0026gt;.\n\n\nalerts.custom.\u0026lt;name\u0026gt;.project\n—\nProject that receives every event of this source.\n\n\nalerts.custom.\u0026lt;name\u0026gt;.replay_window\n5m\nAccepted clock difference, 30s to 1h.\n\n\nalerts.custom.\u0026lt;name\u0026gt;.enqueue_diagnostics\nfalse\nQueue a diagnostic run for each firing event.\n\n\n\nFleet\n\n\n\nKey\nDefault\nMeaning\n\n\n\n\nfleet.listen\n—\nAddress of the ship endpoint, e.g. 0.0.0.0:8443. Unset means no ships.\n\n\nfleet.address\n—\nhost:port ships dial; used in join commands.\n\n\nfleet.hosts\n—\nDNS names and IPs written into the endpoint's certificate.\n\n\nfleet.directory\n\u0026lt;storage dir\u0026gt;/fleet\nWhere the fleet certificate authority is kept. Back it up: losing it means re-joining every ship.\n\n\nfleet.relay\nfalse\nAlso accept ships through the Lighthouse in remote.relay, for ships that cannot reach fleet.address. Join commands then carry -relay and -yard.\n\n\nfleet.revoke_node_ships_after\n—\nRevoke 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.\n\n\nfleet.ship_update.enabled\nfalse\nOffer 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).\n\n\nfleet.ship_update.version\n—\nTarget 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.\n\n\nfleet.ship_update.labels\n—\nOffer only to ships carrying all these key=value labels, e.g. [ring=canary].\n\n\nfleet.ship_update.allow_downgrade\nfalse\nLet ships accept a version below the one they run, never below the release's signed floor.\n\n\nfleet.ship_update.max_concurrent\n5\nShips downloading at once (1 to 1000); more get RESOURCE_EXHAUSTED and try again at the next offer.\n\n\nfleet.ship_update.releases_dir\n\u0026lt;storage dir\u0026gt;/ship-releases\nWhere imported releases are kept, one directory per version, files 0600.\n\n\n\nThe fleet requires runtime.api_token_env. Setup is described in Ships and docks.\nSign-in\n\n\n\nKey\nDefault\nMeaning\n\n\n\n\nauth.oidc.issuer\n—\nYour OpenID Connect provider's issuer URL. Unset means no sign-in.\n\n\nauth.oidc.client_id\n—\nThe client registered for Shipyard at the provider.\n\n\nauth.oidc.client_secret_env\n—\nVariable holding the client secret; leave empty for a public client.\n\n\nauth.oidc.redirect_url\n—\nhttps://\u0026lt;shipyard\u0026gt;/auth/oidc/callback, registered at the provider.\n\n\n\nSign-in lets admins and owners manage identities in the console. Each person must be linked first with shipyard principal link.\nPhones (Bosun)\n\n\n\nKey\nDefault\nMeaning\n\n\n\n\nremote.name\nShipyard\nName shown in the Bosun app.\n\n\nremote.direct_url\n—\nThis Shipyard's address on your network, e.g. http://192.168.1.10:8080.\n\n\nremote.relay\n—\nLighthouse base URL, e.g. https://lighthouse.example.com.\n\n\nremote.relay_token_env\n—\nVariable holding the Lighthouse token. Required with relay.\n\n\nremote.mcp\nfalse\nServe the MCP endpoint to AI clients outside your network through Lighthouse at \u0026lt;relay\u0026gt;/mcp/v1/yards/\u0026lt;yard ID\u0026gt;. Needs infra.mcp. Clients authenticate with a principal token.\n\n\n\nSetting direct_url or relay enables pairing and requires runtime.api_token_env. See Bosun app and Lighthouse.\nAgents\n\n\n\nKey\nDefault\nMeaning\n\n\n\n\nagents.claude_code.binary\nclaude\nClaude Code executable for agent steps. On a ship, ship run -claude PATH or SHIP_CLAUDE sets it.\n\n\nagents.claude_code.checkouts\nshipyard/checkouts in the account's cache directory\nAbsolute directory for the working trees of agent steps with a ref; see Checkout per run. On a ship, ship run -checkouts DIR or SHIP_CHECKOUTS.\n\n\nagents.claude_code.sandbox.enabled\nfalse\nConfine agent steps to their workdir; see Sandbox. Linux 6.2 or newer; elsewhere the step fails. On a ship, ship run -sandbox or SHIP_SANDBOX.\n\n\nagents.claude_code.sandbox.read\n—\nExtra absolute paths the sandboxed agent may read. On a ship, -sandbox-read or SHIP_SANDBOX_READ.\n\n\nagents.claude_code.sandbox.write\n—\nExtra absolute paths the sandboxed agent may change. On a ship, -sandbox-write or SHIP_SANDBOX_WRITE.\n\n\n\nPipelines\npipelines:\n  project-check:\n    steps:\n      - id: config\n        type: diagnostic\n        timeout: 30s\nA 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.\nProvider 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).\nSecrets in logs\nConfigured 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.","title":"Configuration","translation_key":"","url":"/configuration/"},{"excerpt":"Connect with your API token, queue runs, follow live logs, cancel and retry.","lang":"","locale":"","tags":null,"taxonomies":{"category":["Documentation"]},"text":"The console is served by Shipyard itself at the address in listen — http://127.0.0.1:8080 by default.\nConnect\nThe pill in the top bar shows your access:\n\n\n\nIndicator\nMeaning\n\n\n\n\nRead-only\nNo token entered. You can browse, but not queue, cancel or retry.\n\n\nConnected\nToken accepted. All actions are available.\n\n\nToken required\nThe server protects reads too. Enter the token to see anything.\n\n\nServer unreachable\nShipyard is not answering.\n\n\n\nClick the pill and paste the value of the variable named by runtime.api_token_env. The token stays in the tab's memory only; reloading the page forgets it.\nRuns\n\nThe Runs view lists the latest runs, newest first, and refreshes every five seconds.\n\nFilter by status — All, Active, Succeeded, Failed, Cancelled — or by project.\nLoad older runs pages back through history.\nClick a run to open its panel: project, type, attempts, timings, the error if it failed, and the log.\nWaiting runs hit a usage limit; the row shows when they resume, and a yellow notice above the list names the limited models and their reset times. Waiting runs can be cancelled.\n\nQueue a run\n\nNew run opens a form. Pick a project and a type:\n\n\n\nType\nWhat it does\nNeeds\n\n\n\n\nDiagnostic\nChecks that the project is configured and enabled.\nNothing else\n\n\nPipeline\nRuns a pipeline from your configuration.\nA pipeline name; optional input\n\n\nAI text\nSends one prompt to the model routed for the role you pick.\nA role and a prompt\n\n\n\nAI runs call your provider and can cost money.\nFollow the log\nThe log tails live while the run is active; untick Follow to scroll freely. Runs that were retried after a crash have several attempts — switch between them with Attempt. Download saves the shown attempt's whole log as a .jsonl file.\nCancel and retry\n\nCancel run stops a queued run at once and asks a running one to stop at the next safe point.\nRetry as new run queues a failed or cancelled run again with the same input. The original stays in the history.\nBoth buttons are disabled while their request is in flight, so a double click sends one request.\n\nThe panel also lists the run's history (queued, started, recovered, finished) and Tokens and cost: input, output, cache-read and cache-write tokens and the estimated cost, per pipeline step with the ship (or this Shipyard) that ran it, and for the whole run. When a provider reported no counts or a model has no prices, the cost reads Unknown, never a made-up zero.\nProjects\n\nProjects lists the repositories in your configuration with their issue label, release interval, content review and where they run — this Shipyard or ships with matching labels.\nUsage, below the projects, shows where a project's tokens went in the last 24 hours, 7 days or 30 days: tokens and cost by source (provider calls, agent steps, workstation sessions), by model and by category, with each one's share; the runs and workstation sessions that used the most, with their average and peak context; the usage findings with their evidence (value against threshold, tokens, and the session, directory or tool they name); and the instruction files of the project's repositories with the estimated fixed cost a session pays before its first request. A workstation session's cost is an estimate from the prices in ai.models (marked estimate); it reads Unknown when the session used models with different prices or one without a price.\nAdd project opens a form: ID, repository, issue label, release interval, optional ship labels and content review. Shipyard validates it, appends it to the configuration file — comments and layout are kept — and starts accepting runs for it immediately, no restart needed. When the configuration is loaded from a URL the view is read-only.\nPipelines\nPipelines shows every pipeline step by step; Run pipeline opens the form with that pipeline selected. Pipelines are defined in the configuration file.\nDocks\n\nDocks lists the ships joined to this Shipyard — online, offline or revoked — with their labels, platform, version and the run they are executing. Add ship creates a join command, for one ship or, with Ships above 1, for several; Revoke cuts a ship off; Pause tasks stops new infrastructure tasks for a ship while letting queued and running ones finish, and Resume tasks lifts it. Usage lists the runs the ship executed in a period, newest first, with tokens and cost per run and the period's total. History shows the ship's journal, newest first: connections, pauses, task transitions with who made them; Show older pages back. An event of a traced request has a trace button with the start of its trace ID (the full ID on hover, the one your trace backend knows it by); it narrows the list to that trace, and Show all events brings the rest back. Opening it only reads history and never re-runs a task. Under each ship's name the row lists the services the ship lets Shipyard restart and the Docker containers it reports. When infra.mutations.enabled is on and you are signed in, each service has Request restart; the request waits for approval in the Bosun app, and the console cannot approve it. The run panel shows where each run ran. See Ships and docks.\nBelow the ships, Phones lists the phones paired with the Bosun app. Pair phone shows a one-time QR code; Revoke cuts a phone off.\nSessions lists the AI clients and tokens using the infrastructure API right now: who, since when, the last request and how many tasks the session created. End stops the session and revokes its token; the client needs a new token to continue. The section is empty unless infra.enabled is set. A phone's session shows the phone's name.\nSSH sessions lists the brokered SSH sessions to ships, newest first: who asked, ship and account, state, and when and why each ended. AI sessions carry an AI badge with their client, provider and model. End ends a session and cuts its connection at once. Replay plays a recorded session as plain text, with pause, restart, Show all and speeds up to 8×; long pauses are shortened to two seconds. The section is empty unless infra.ssh.enabled is set.\nIdentities lists the users, AI clients and phones that may use the infrastructure API, with kind, role, scopes and state. Revoke stops all tokens of one identity at once.\nWith auth.oidc configured, Sign in takes you to your identity provider. A signed-in admin or owner gets Add identity and, on each row, Manage: grant scopes on hosts or host groups, issue a token, link a person's sign-in, or create a client secret for a service. Tokens and secrets are shown once. Only an owner can add or change admins and owners. Before the first sign-in, create an owner and link it on the Shipyard host: shipyard principal add -kind user -role owner -name you, then shipyard principal link -id ID -subject YOUR_OIDC_SUBJECT. The subject is shown if you try to sign in before it is linked.\nKnowledge bases lists the external knowledge bases AI agents may search (infra.knowledge): search mode, allowlisted collections and whether each one answers now; hover an Unreachable badge for the HTTP status.\nRepositories\nRepositories has one entry per connected provider under its title; the row shows only what the configuration connects. Shipyard connects GitHub today (github_app). The address names the provider (#/repositories/github), and bookmarks of the former GitHub tab (#/github) open the same list with their filters. With no provider connected the view says which setting to add.\nGitHub lists the repositories the GitHub App can reach, with the projects that use them, open issues and pull requests, workflows whose newest run failed and open security alerts. A dash instead of a number means Shipyard does not know: the App lacks the permission, the feature is not enabled for that repository, or no sync has run yet; hover it for the reason. Stale marks a repository not synced for two reconciliation intervals, Failed one Shipyard could not read (hover for the reason).\nBelow, Activity lists issues, pull requests, CI runs and alerts, newest first, each linking to GitHub. Filter by kind, project, state and severity; the filters stay in the address, so a filtered view can be bookmarked or shared. Load more fetches the next page.\nDrafts\nDrafts lists the articles Shipyard wrote from accepted topics, last changed first; filter by project and state. Proposed drafts wait on a draft pull request: open it from the row, read the article, then Approve or Reject. The confirmation repeats the draft's hash, and the decision applies to that hash only: if someone pushed to the branch since, Shipyard refuses it and the list is read again. An approved draft is merged once its checks pass. The Decision column says who decided and when: your name when you are signed in to the console, operator otherwise. Approving and rejecting need the API token.\nAnalytics\nAnalytics shows how a project's published articles did, for projects with analytics set. Choose the project and the dates; with no dates it shows the 90 days up to yesterday. Sources lists each source with the days it answered. Published articles lists each article with its window and the counts its sources report: Unknown means a source did not answer for every day of the window, with the days it did; 0 means it answered and counted nothing. Below a count is the median of the earlier articles once three of them were measured in full. CTR needs both clicks and impressions. Repository stars shows the count on the first and last day; stars are never attributed to an article.\nLanguage\nThe console is in English. Choose Polski in the top bar to switch; the choice is remembered in this browser. Add ?lang=pl to a link to open it in Polish.","title":"Using the console","translation_key":"","url":"/console/"},{"excerpt":"Run Shipyard in a container with a persistent volume and a built-in health check.","lang":"","locale":"","tags":null,"taxonomies":{"category":["Documentation"]},"text":"The image is built FROM scratch: the static binary, CA certificates and a default configuration. It runs as an unprivileged user and works with a read-only root filesystem.\nCompose\nservices:\n  shipyard:\n    image: shipyard:latest\n    ports: [\u0026#34;127.0.0.1:8080:8080\u0026#34;]\n    environment:\n      SHIPYARD_API_TOKEN: ${SHIPYARD_API_TOKEN:?set a private API token}\n    volumes:\n      - ./shipyard.yaml:/config/.shipyard.yaml:ro\n      - shipyard-data:/data\n    read_only: true\n    cap_drop: [\u0026#34;ALL\u0026#34;]\n    security_opt: [\u0026#34;no-new-privileges:true\u0026#34;]\n    restart: unless-stopped\n    healthcheck:\n      test: [\u0026#34;CMD\u0026#34;, \u0026#34;/shipyard\u0026#34;, \u0026#34;-healthcheck\u0026#34;, \u0026#34;-config\u0026#34;, \u0026#34;/config/.shipyard.yaml\u0026#34;]\n      interval: 30s\n      timeout: 5s\n      retries: 3\n    logging:\n      driver: json-file\n      options: {max-size: \u0026#34;10m\u0026#34;, max-file: \u0026#34;3\u0026#34;}\n\nvolumes:\n  shipyard-data:\nexport SHIPYARD_API_TOKEN=$(openssl rand -hex 32)\ndocker compose up -d\nIn shipyard.yaml, listen on all interfaces inside the container and keep state on the volume:\nlisten: 0.0.0.0:8080\nstorage:\n  path: /data/shipyard.db\nlogging:\n  directory: /data/logs\nruntime:\n  embedded_worker: true\n  api_token_env: SHIPYARD_API_TOKEN\nTo add projects from the console, mount a writable directory instead of a read-only file — Shipyard replaces the file atomically, which needs write access to its directory:\n    volumes:\n      - ./config:/config            # holds .shipyard.yaml\nWith the file mounted :ro, the console shows an error when saving a project.\nBinding 0.0.0.0 requires api_token_env; Shipyard refuses to start on a non-loopback address without a token. Publish the port on 127.0.0.1 and put a reverse proxy or tunnel in front for remote access.\nHealth\n/shipyard -healthcheck probes the server's /healthz from inside the container — no shell or curl needed. GET /readyz additionally checks the database.\nFleet\nPublish 8443 as well when ships join from other machines, and set the fleet: section — see Ships and docks. The image also contains /ship, so a container can be a ship:\ndocker run --rm -v ship-state:/var/lib/ship shipyard:latest /ship join -server shipyard.lan:8443 -token SYP1.…\ndocker run -d -v ship-state:/var/lib/ship --entrypoint /ship shipyard:latest run\nSeparate worker\nTo process the queue in its own container, set runtime.embedded_worker: false for the API and start a second service with the same volume:\n  worker:\n    image: shipyard:latest\n    entrypoint: [\u0026#34;/worker\u0026#34;]\n    command: [\u0026#34;-config\u0026#34;, \u0026#34;/config/.shipyard.yaml\u0026#34;]\n    healthcheck:\n      test: [\u0026#34;CMD\u0026#34;, \u0026#34;/worker\u0026#34;, \u0026#34;-healthcheck\u0026#34;, \u0026#34;-config\u0026#34;, \u0026#34;/config/.shipyard.yaml\u0026#34;]\nThe worker's health check confirms the queue database answers.","title":"Run with Docker","translation_key":"","url":"/docker/"},{"excerpt":"Install the binary, write a minimal configuration, start the service and queue your first run.","lang":"","locale":"","tags":null,"taxonomies":{"category":["Documentation"]},"text":"1. Install\nDownload the binary for your platform from Downloads and put it on your PATH:\nsudo install -m 0755 shipyard-linux-amd64 /usr/local/bin/shipyard\nOne file holds the API, the worker and the console.\n2. Configure\nCreate .shipyard.yaml in the directory you will run Shipyard from:\nlisten: 127.0.0.1:8080\nprojects:\n  - id: my-app\n    repository: you/my-app\n    enabled: true\n    issue_label: agent-ready\n    release_interval: 48h\n    content:\n      interval: 168h\n      publish_mode: pull_request\nruntime:\n  embedded_worker: true\n  api_token_env: SHIPYARD_API_TOKEN\npipelines:\n  project-check:\n    steps:\n      - id: config\n        type: diagnostic\n        timeout: 30s\nEvery key is described in the configuration reference.\n3. Start\nexport SHIPYARD_API_TOKEN=$(openssl rand -hex 32)\necho \u0026#34;$SHIPYARD_API_TOKEN\u0026#34;   # you will paste this into the console\nshipyard -config .shipyard.yaml\nShipyard creates ./data/shipyard.db and ./data/logs/ on first start. Check it:\ncurl http://127.0.0.1:8080/healthz\n4. Open the console\nOpen http://127.0.0.1:8080, click Read-only in the top bar and paste the token. The indicator turns to Connected.\n5. Queue a run\n\nClick New run, pick your project, choose Pipeline → project-check and Queue run. The run appears at the top of the list; click it to follow its log.\nNext: the console in detail, pipelines, run work on other machines, or run it as a service on a Raspberry Pi.","title":"Getting started","translation_key":"","url":"/getting-started/"},{"excerpt":"Health checks, Prometheus metrics, Alertmanager, traces, service logs and retention.","lang":"","locale":"","tags":null,"taxonomies":{"category":["Documentation"]},"text":"Health\n\n\n\nEndpoint\nAnswers\n\n\n\n\nGET /healthz\n200 while the process serves requests.\n\n\nGET /readyz\n200 when the database answers, 503 otherwise.\n\n\n\nBoth are open without a token. In containers use shipyard -healthcheck — see Run with Docker.\nPrometheus metrics\nSet observability.metrics: true and scrape /metrics:\nscrape_configs:\n  - job_name: shipyard\n    static_configs:\n      - targets: [\u0026#34;127.0.0.1:8080\u0026#34;]\n    authorization:\n      credentials_file: /etc/prometheus/shipyard.token\nLeave out authorization when no API token is configured. These gauges are read from the database, so a restart does not reset them:\n\n\n\nMetric\nLabels\nMeaning\n\n\n\n\nshipyard_runs\nstate: queued, waiting, running, cancelling, succeeded, failed, cancelled\nStored runs\n\n\nshipyard_runs_held\n—\nRuns under legal hold\n\n\nshipyard_infra_tasks\nstate: queued, leased, running, cancelling, succeeded, failed, cancelled, expired, unknown\nStored infrastructure tasks\n\n\nshipyard_ships\nstatus: online, offline, revoked\nJoined ships; online means seen in the last 15 seconds\n\n\nshipyard_retention_last_success_timestamp_seconds\n—\nLast completed retention pass (0: never)\n\n\nshipyard_retention_last_failure_timestamp_seconds\n—\nLast failed retention pass (0: never)\n\n\nshipyard_retention_last_reclaimed_bytes\n—\nLog bytes the latest completed pass removed\n\n\nshipyard_db_bytes / shipyard_db_free_bytes\n—\nDatabase size and its free pages; free pages return to the disk only after a vacuum\n\n\nshipyard_log_bytes / shipyard_log_budget_bytes\n—\nRun logs and retention.max_disk_size_mb; at the budget new runs are refused\n\n\nshipyard_disk_total_bytes / shipyard_disk_free_bytes\n—\nFilesystem holding the database (Linux, FreeBSD, macOS)\n\n\nshipyard_github_oldest_sync_timestamp_seconds\n—\nLast reconciliation of the least recently synced GitHub repository (0: none yet)\n\n\nshipyard_github_sync_errors\n—\nGitHub repositories whose last reconciliation failed\n\n\nshipyard_usage_findings\ncode: context_large, cache_read_share, background_wakeups, parallel_sessions, tool_output_heavy, instruction_fixed_cost, duplicate_rules\nStored usage findings: rules a workstation session or repository crossed\n\n\n\nCounters and histograms are kept in memory and start at zero when the process starts; query them with rate() or increase(), which handle the reset. Run and provider series come from the embedded worker; a standalone worker process serves no /metrics.\n\n\n\nMetric\nLabels\nMeaning\n\n\n\n\nshipyard_http_requests_total\nroute (the route pattern, unmatched otherwise), code\nAnswered HTTP requests\n\n\nshipyard_http_request_duration_seconds\nroute\nTime to answer (histogram)\n\n\nshipyard_webhook_events_total\nsource: github (recorded, duplicate, ignored), alertmanager (recorded, quarantined, diagnostic_queued, suppressed_cooldown, suppressed_debounce, suppressed_halted, suppressed_budget, suppressed_concurrency, truncated), custom (the same without quarantined and truncated, plus stale)\nWhat accepted webhooks carried\n\n\nshipyard_ship_events_skipped_total\n—\nShip events skipped because their type is unknown to this Shipyard (a ship newer than the server)\n\n\nshipyard_alert_deliveries_total\nresult: delivered, pending (will retry), dead\nOutbound incident webhook attempts\n\n\nshipyard_alert_issues_total\nresult: created, pending (will retry), dead\nGitHub issue attempts of create_issue alert rules\n\n\nshipyard_runs_finished_total\nkind, state (succeeded, failed, waiting)\nRuns the worker finished or parked on a usage limit\n\n\nshipyard_run_duration_seconds\nkind\nExecution time of finished runs (histogram)\n\n\nshipyard_provider_requests_total\nhost, code (error: no answer)\nRequests to model providers and Prometheus\n\n\nshipyard_provider_request_duration_seconds\nhost\nLatency of one provider request (histogram)\n\n\nshipyard_provider_retries_total\nhost\nRequests repeated after a transient provider error\n\n\nshipyard_merge_gate_total\ndecision: pass, wait, fail\nMerge gate decisions of merge steps\n\n\nshipyard_releases_total\noutcome: tagged, skipped, failed\nRelease windows settled by scheduled release runs\n\n\nshipyard_research_total\noutcome: collected, skipped, failed\nContent windows settled by research runs\n\n\nshipyard_research_topics_total\noutcome: accepted, skipped\nTopics recorded by research runs, by review outcome\n\n\nshipyard_analytics_total\noutcome: collected, failed\nAnalytics runs that read their sources\n\n\nshipyard_drafts_total\noutcome: written, rejected, proposed, changed, published\nArticle drafts settled by draft and publish runs\n\n\nshipyard_ai_calls_total\nusage: reported, unreported\nCompleted model calls, by whether the provider reported token counts (from runs on this Shipyard and on ships)\n\n\nshipyard_ai_tokens_total\ndirection: input, output, cache_read, cache_write\nTokens providers reported; cached prompt tokens count under cache_read and cache_write, not input\n\n\nshipyard_usage_tokens_total\nsource: provider, agent, workstation; kind: input, output, cache_read, cache_write\nTokens of stored usage by where the call ran; a replayed report adds nothing. No session, run or file label\n\n\nshipyard_ai_cost_usd_total\n—\nEstimated cost of priced calls, from the model prices in the configuration; unpriced or unreported calls add nothing, so compare with shipyard_ai_calls_total\n\n\n\nLabels are fixed sets: route patterns, states, kinds and the hosts in your configuration; no run, task or ship IDs, prompts or secrets. A ready scrape job and alert rules (queue stalled, failing runs, retention stalled or failing, ships offline, tasks with unknown outcome, stale or failing GitHub sync, API server errors, failing providers) are in deploy/prometheus/; load shipyard-alerts.yml with rule_files. deploy/grafana/shipyard-dashboard.json is a dashboard over the same series; import it and pick the Prometheus data source.\nAlertmanager\nShipyard receives grouped notifications on POST /webhooks/alertmanager:\n# alertmanager.yml\nreceivers:\n  - name: shipyard\n    webhook_configs:\n      - url: http://127.0.0.1:8080/webhooks/alertmanager\n        http_config:\n          authorization:\n            credentials_file: /etc/alertmanager/shipyard.token\n# .shipyard.yaml\nalerts:\n  token_env: ALERTMANAGER_TOKEN\n  project_label: shipyard_project\n  enqueue_diagnostics: true\nEach alert needs the label shipyard_project with the ID of an enabled project. Shipyard records firing and resolved alerts; with enqueue_diagnostics a firing alert also queues one diagnostic run, stored in the same transaction as the alert, so a failure keeps neither and Alertmanager's retry starts clean. A repeated notification for the same alert does not queue a second run. The project's run policy applies: a refused kind or a used-up daily budget records the alert without a run. An alert whose label names no enabled project goes to quarantine: it is stored, queues nothing and reaches no repository. The Incidents tab and GET /api/v1/alerts/quarantine list it so you can fix the label. A malformed alert (no fingerprint, unknown status) rejects the whole batch. When the receiver sets max_alerts and Alertmanager cuts a notification, Shipyard logs a warning with the number of alerts left out and returns it as truncated; those alerts never arrive, so raise max_alerts (Shipyard accepts up to 100 per batch).\nBesides the bearer token, Alertmanager can authenticate with basic auth or a client certificate. Any configured method is enough:\nalerts:\n  basic_auth:                 # http_config.basic_auth\n    username: alertmanager\n    password_env: ALERTMANAGER_PASSWORD\n  tls:                        # http_config.tls_config with cert_file/key_file\n    listen: \u0026#34;:9443\u0026#34;\n    cert_file: /etc/shipyard/alerts.pem\n    key_file: /etc/shipyard/alerts-key.pem\n    client_ca_file: /etc/shipyard/alertmanager-ca.pem\n    client_names: [alertmanager]   # optional: DNS names or common name\nThe tls listener serves only the webhook routes and accepts only clients with a certificate from client_ca_file. Changes to it need a restart.\nCustom webhooks\nOther systems can send events to POST /webhooks/custom/\u0026lt;name\u0026gt;. Each source gets its own secret and a fixed project; the payload never picks the project.\nalerts:\n  custom:\n    uptime:\n      secret_env: UPTIME_WEBHOOK_SECRET\n      project: shop\n      replay_window: 5m\n      enqueue_diagnostics: true\nThe body is {\u0026quot;id\u0026quot;: \u0026quot;...\u0026quot;, \u0026quot;status\u0026quot;: \u0026quot;firing\u0026quot; | \u0026quot;resolved\u0026quot;}; other fields are ignored. Sign every request:\nX-Shipyard-Timestamp: \u0026lt;Unix seconds\u0026gt;\nX-Shipyard-Signature: sha256=\u0026lt;hex HMAC-SHA256 of \u0026quot;\u0026lt;timestamp\u0026gt;.\u0026lt;body\u0026gt;\u0026quot;\u0026gt;\n\nbody=\u0026#39;{\u0026#34;id\u0026#34;:\u0026#34;check-42\u0026#34;,\u0026#34;status\u0026#34;:\u0026#34;firing\u0026#34;}\u0026#39;\nts=$(date +%s)\nsig=$(printf \u0026#39;%s.%s\u0026#39; \u0026#34;$ts\u0026#34; \u0026#34;$body\u0026#34; | openssl dgst -sha256 -hmac \u0026#34;$UPTIME_WEBHOOK_SECRET\u0026#34; -hex | sed \u0026#39;s/^.* //\u0026#39;)\ncurl -sS https://shipyard.example/webhooks/custom/uptime \\\n  -H \u0026#34;X-Shipyard-Timestamp: $ts\u0026#34; -H \u0026#34;X-Shipyard-Signature: sha256=$sig\u0026#34; --data \u0026#34;$body\u0026#34;\nA wrong signature answers 401 invalid_signature. A timestamp more than replay_window away from Shipyard's clock answers 401 stale_signature, so a captured request cannot be sent again later; keep clocks in sync. A repeat of the same id and status is recorded once and queues nothing; give each new occurrence a new id. Diagnostic runs follow the project's run policy. An optional labels object in the body selects an alert rule.\nAlert rules\nRules decide what an alert does, on both routes. The first match wins; an alert no rule matches follows enqueue_diagnostics.\nalerts:\n  rules:\n    - name: page\n      severity: [critical]\n      action: diagnose      # or record: store only\n      cooldown: 30m         # one run per project per 30 minutes\n      budget: 5             # and at most 5 per project per day\n      max_concurrent: 2     # at most 2 unfinished runs of this rule\n      escalate: [ops]       # tell this outbound target when a limit says no\n    - name: warnings\n      labels: { team: web }\n      action: diagnose\n      debounce: 10m         # firing again within 10 minutes of a resolve is a flap\nCooldown and debounce are kept per rule and project in the database, so a restart does not reset them and a flood of matching alerts queues one run. budget and max_concurrent cap the runs a rule queues over a day or at once; when they refuse a run, the incident escalates once to the rule's escalate targets. Responses report suppressed alerts as suppressed.\nIncidents\nAlerts of one occurrence form an incident: it opens on the first firing event and closes once on the resolve. The Incidents tab in the console, and GET /api/v1/incidents, show each incident with a timeline of its events and what each one did, including alerts a rule or the halt kept from acting.\nHalt alert actions on that tab (or PUT /api/v1/alerts/halt) is the emergency stop: alerts are still recorded, but queue no runs and send no webhooks until you resume. It survives restarts.\nOutbound webhooks\nalerts:\n  outbound:\n    ops:\n      url: https://hooks.example/shipyard\n      secret_env: OPS_WEBHOOK_SECRET\n      events: [opened, resolved]\nEach target gets a signed POST when an incident opens or resolves, with the incident fields only, never alert labels. Signing matches incoming custom webhooks; deduplicate on X-Shipyard-Delivery. Failed deliveries retry with growing waits for about an hour (8 attempts), then become dead letters, listed on the Incidents tab with a Retry button.\nTraces\nSet observability.otel_endpoint to an OTLP collector: http://127.0.0.1:4318 over HTTP (default), or http://127.0.0.1:4317 with observability.otel_protocol: grpc. Without an endpoint nothing is exported and Shipyard works offline as before.\nWhat is traced. Every API request and webhook is a server span named after its route, with the method, status and shipyard.request_id (the X-Request-Id header). A run queued by a request keeps that request's trace in the database, so even after a restart the worker continues it: the run span, each pipeline stage and every provider request (host, method, status; never paths, headers or bodies) join the same trace. A caller that sends a W3C traceparent header puts all of this into its own trace. Run log lines carry the trace_id; the console shows it when you hover a line's time. Ships receive the trace with the run, so their spans join it too when they export to a collector. Infrastructure tasks work the same way: the trace of the creating request is stored with the task and sent in the lease, the ship's infra.task and infra.execute spans join it, and every journal event of the task carries the trace ID as traceId. The event routes take ?traceId= to list the events of one trace, and Docks → History shows the trace ID on each event and narrows the list to it. A task created without a valid traceparent runs as before, with no trace ID on its events.\nConfiguration. The standard variables apply: OTEL_EXPORTER_OTLP_HEADERS (for example a collector API key), OTEL_EXPORTER_OTLP_CERTIFICATE, OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE / _CLIENT_KEY for TLS, OTEL_TRACES_SAMPLER / OTEL_TRACES_SAMPLER_ARG for sampling, and OTEL_RESOURCE_ATTRIBUTES for extra resource attributes such as deployment.environment.name=prod. Each process identifies itself with service.name (shipyard or shipyard-worker), service.version, a random service.instance.id per start and host.name. A malformed value stops startup instead of exporting unlabelled traces.\nLimits. Spans wait in a queue of 256 and are sent in batches with a 5 s timeout; when the queue is full new spans are dropped, never waited for, so a slow or missing collector cannot hold up a run. shipyard_otel_spans_total{result} counts ended, exported and failed spans; the difference is what was dropped. Shutdown flushes the queue for up to 5 s. Before export, string attributes, events and status messages pass through the same credential redaction as run logs. Sampling applies to traces only: run logs, the run audit and the infrastructure journal are always written in full.\nCollector. deploy/otel/collector.yaml is an example for the Collector contrib distribution: OTLP in for traces, the prometheus receiver scraping /metrics, and the filelog receiver tailing run logs, through memory_limiter, redaction and batch to backends you choose. Validate it against your Collector version before use. Shipyard does not push metrics over OTLP, so scraping /metrics counts nothing twice. Retention in those backends is separate from Shipyard's own retention settings.\nService logs\nUnder systemd, Shipyard's own log goes to the journal:\njournalctl -u shipyard -f\njournalctl -u shipyard --since today -o short-iso\nJournal size and retention are host settings (SystemMaxUse in journald.conf). Run logs are separate — they live in logging.directory and follow Shipyard's retention.\nRetention\nShipyard cleans up at worker start and every hour:\n\nrun logs older than retention.logs_days are deleted, with the run's artifacts; the run stays in the history marked logs expired;\nfinished runs older than retention.completed_runs_days are deleted;\nworkstation usage sessions whose last activity is older than retention.logs_days are deleted with their usage findings;\naudit entries and alert records older than retention.audit_days are deleted.\n\nQueued and running work is never touched. A run under legal hold (PUT /api/v1/runs/{id}/hold, lifted with DELETE) keeps its logs and history past every cutoff; both changes are audited. Each run's log is capped at logging.max_run_size_mb, and single log messages at 16 KiB. When the log directory reaches retention.max_disk_size_mb, new runs are refused with 507 until retention frees space — newer logs are never deleted to make room.\nshipyard retention shows what the next pass would remove and how many log bytes it would free, without changing anything; shipyard retention -apply runs a pass now, and shipyard retention -vacuum returns the database's free pages to the disk (stop Shipyard first: it needs exclusive access and up to twice the file size). Every pass and dry run is kept in the retention history: GET /api/v1/retention returns it with the current usage (logs against their budget, database, free disk), and the console shows both under Projects → Storage. Passes are idempotent, so two workers running one at the same time remove nothing twice; raw webhook payloads are never stored, so they need no retention of their own.\nThe database file itself is not counted against the budget. Back it up while Shipyard runs with shipyard backup -out /backups/shipyard-$(date +%F).db: the copy is consistent, readable only by its owner and checked for integrity and schema version; an existing file is never overwritten. To restore, stop Shipyard, put the copy at storage.path and start it again, then run shipyard journal verify -expect \u0026lt;saved head\u0026gt; to confirm the infrastructure history.","title":"Monitoring and retention","translation_key":"","url":"/monitoring/"},{"excerpt":"Secret and certificate rotation, rate limits, queue recovery, service restarts, rollback and ship self-update.","lang":"","locale":"","tags":null,"taxonomies":{"category":["Documentation"]},"text":"Each section is a short procedure. Take a backup before any step that changes the database:\nshipyard backup -out /backups/shipyard-$(date +%F-%H%M).db\nRotate a secret\nShipyard reads every secret from an environment variable named in the configuration (*_env settings) or, for the GitHub App key, from a file. Values are read at start, so a rotation is: set the new value, restart, revoke the old one.\n\n\n\nSecret\nSetting\nAfter the restart\n\n\n\n\nOperator API token\nruntime.api_token_env\nEnter the new token in the console; revoke the old value wherever it was stored.\n\n\nModel provider keys\nproviders.*.api_key_env or api_key_file\nRevoke the old key at the provider.\n\n\nGitHub App private key\ngithub_app.private_key_file\nRun shipyard github check, then delete the old key in the App settings.\n\n\nGitHub webhook secret\ngithub_app.webhook_secret_env\nChange the secret in the App settings at the same time; deliveries signed with the old one get 401 invalid_signature and can be redelivered from GitHub.\n\n\nAlertmanager token\nalerts.token_env\nUpdate http_config in alertmanager.yml.\n\n\nPrometheus query token\nprometheus.token_env\n—\n\n\nRelay token\nremote.relay_token_env\nUpdate the Lighthouse relay with the same value.\n\n\n\nInfrastructure principals need no restart: issue a new token with shipyard principal token -id ID -ttl 24h, switch the client, and let the old token expire. If a token leaked, shipyard principal revoke -id ID revokes the identity and all its tokens at once; add it again with principal add and grant.\nRenew ship certificates\nA ship's client certificate is valid for one year; the fleet CA for ten. A running ship renews its own certificate when less than 30 days are left. It checks at start and every 12 hours, sends a request for a fresh key and reconnects with the new certificate. The old certificate keeps working until the new one is first used, so a renewal cut short by a restart or a network drop never locks the ship out. A revoked ship cannot renew. Renewal needs a Shipyard of this version or newer; with an older one the ship logs ship certificate renewal failed and keeps working until the certificate expires.\nA ship that was offline past its expiry stops with ship certificate expired … join again with a new token. Then:\n\nIssue a join token: shipyard ship token -name NAME or Docks → Add ship.\nOn the ship, join into a new state directory (join leaves an existing identity alone): ship join -server HOST:8443 -token SYP1.… -state /var/lib/ship-new, then run the ship with that -state.\nRevoke the old ship entry in Docks once the new one is online, and delete the old state directory.\n\nKeep a backup of the database: it holds the fleet CA, and ships cannot reconnect to a Shipyard that lost it.\nRate limits\nModel providers. A 429 or 529 answer does not fail a run: it moves to Waiting with the time it resumes, and a notice in the console names the limited models. Nothing to do unless it repeats; then lower the run rate or move the role to another model in models. Cancel waiting runs you no longer need.\nGitHub. When the App is rate-limited (429, or 403 with no remaining quota, or Retry-After), reconciliation logs github reconciliation rate limited with the reset time and postpones the next pass until then. Webhooks keep arriving and are applied meanwhile; the GitHub view marks repositories Stale if the pause outlasts two reconciliation intervals. If it happens on every pass, raise github_app.reconcile_every.\nRecover the queue after a crash\nOn start, every worker returns runs whose lease expired (30 s without a heartbeat):\n\ninterrupted diagnostics are queued again after 2 s, then 4 s, and fail as dead-lettered once out of attempts;\nother interrupted runs fail with worker lease expired; execution may have been interrupted, because repeating them could repeat side effects. Retry them from the console after checking what they did.\n\nEvery recovery is in the run history as Recovered after interruption. Webhook deliveries are stored before GitHub gets an answer and applied in order after a restart, so none are lost; a redelivery is recognised and ignored.\nIf the database itself is damaged, stop Shipyard, restore the newest backup at storage.path, start it, and run shipyard journal verify -expect \u0026lt;saved head\u0026gt;. If you prune the journal, keep the archive directory with the backups and verify with shipyard journal verify -archive DIR -expect \u0026lt;saved head\u0026gt;.\nRestart a service\nserviceRestart restarts one systemd service on a ship after a second person approves it in Bosun. Shipyard, the ship and the host each keep their own list; all three must allow the service.\n\n\nOn the host, allow the ship user to restart exactly these units in /etc/polkit-1/rules.d/50-shipyard-ship.rules:\npolkit.addRule(function (action, subject) {\n    var units = [\u0026#34;nginx.service\u0026#34;, \u0026#34;app@blue.service\u0026#34;];\n    if (action.id == \u0026#34;org.freedesktop.systemd1.manage-units\u0026#34; \u0026amp;\u0026amp;\n        subject.user == \u0026#34;ship\u0026#34; \u0026amp;\u0026amp;\n        action.lookup(\u0026#34;verb\u0026#34;) == \u0026#34;restart\u0026#34; \u0026amp;\u0026amp;\n        units.indexOf(action.lookup(\u0026#34;unit\u0026#34;)) \u0026gt;= 0) {\n        return polkit.Result.YES;\n    }\n});\nThe ship keeps NoNewPrivileges=true; no sudoers entry is needed. A unit missing here fails with restart_denied and nothing changes; when the ship starts it checks the rule with pkcheck and records a ship.restart_mismatch event naming the units polkit would refuse (no pkcheck, no systemd or no answer within five seconds: no event).\n\n\nSet the same names without .service on the ship, SHIP_SERVICE_RESTART=nginx,app@blue, and restart it. The host page lists them under the capabilities.\n\n\nSet infra.mutations.enabled: true in Shipyard and restart it.\n\n\nGive requesters tasks.create on the host, and approvers tasks.approve and a paired Bosun phone.\n\n\nA request waits in queued until another person approves it in Bosun; the approval is used once. A restart whose end is not known (deadline, lost connection, cancel while running, or a restart that ran but whose service state could not be read, reason state_unreadable) ends unknown and is never repeated: check the service, then ask again.\nTo switch it off, any one step is enough: infra.mutations.enabled: false, unset SHIP_SERVICE_RESTART and restart the ship, or remove the polkit rule. Before rolling back to a release without serviceRestart, switch it off and wait five minutes, the longest task deadline.\nRoll back an upgrade\nDatabase migrations run forward on start and are not reversible; an older binary refuses a database written by a newer one (unsupported storage schema version). To roll back:\n\nStop Shipyard.\nRestore the backup taken before the upgrade at storage.path.\nStart the previous binary or image.\n\nRuns and deliveries recorded after the backup are lost, so take the backup immediately before upgrading. Ships keep working across a rollback as long as the restored database is the one they joined.\nUpdate ships\nA ship replaces its own binary only when both sides opt in: fleet.ship_update on Shipyard and SHIP_UPDATE=on on the ship. Every release is signed with Ed25519, and the ship checks the signature with the keys built into its installed binary before it runs anything. A release signed with any other key is refused, on import and on the ship.\n1. Sign a release on the signing machine, never on Shipyard:\nshipyard ship release keygen -out release.key   # only for a new key: its public half must be built into the binaries first\nmake build-all\nshipyard ship release sign -key release.key -dir bin -version 1.4.2 -floor 1.3.0\n-floor is the lowest version any ship may run after this release; ships remember the highest floor they have seen.\n2. Import on the Shipyard host and check it:\nshipyard ship release add -dir DIR\nshipyard ship release list\n3. Start with a canary. Label one or two ships ring=canary, then in the configuration file:\nfleet:\n  ship_update:\n    enabled: true\n    version: 1.4.2\n    labels: [ring=canary]\nRestart Shipyard. Watch the version in Docks and the ship.update_* events in the ship's history (Docks → History, with infra.enabled). When the canaries run well, remove labels and restart.\n4. Turn it on on a ship: add SHIP_UPDATE=on to /etc/ship/ship.env and sudo systemctl restart ship. The ship refuses to start when its binary or the binary's directory is writable by the ship user, or when it runs in a container, Kubernetes or Homebrew. It downloads an offered release while idle, verifies it, waits for its run, task and SSH sessions to end, and exits; systemd starts the new version. More in Ships.\n5. A ship rolled back. A version that fails three starts in a row (exits before its first lease) is replaced by the previous one, then by the installed binary. Read why on the ship and in its history:\nsudo -u ship ship update status -state /var/lib/ship\nThe first lines are the SHIP_UPDATE setting and the install kind the ship detected. That ship never takes the rolled-back version again. Fix the cause and publish a new version.\n6. Stop a rollout: set enabled: false and restart Shipyard. Ships keep the version they run.\n7. Go back. Set version to an older imported release with allow_downgrade: true. Ships never go below the floor or to a version at or below their installed binary. Below that, reinstall /usr/local/bin/ship by hand and delete /var/lib/ship/update.\n8. Rotate or revoke the key. Release N, signed with key A, carries keys A and B in its binaries; release N+1 is signed with B. A ship whose installed binary does not know B refuses N+1 and stays on what it runs; reinstall it by hand. If a key leaks: remove it in the next release, raise -floor above every release it signed, and reinstall the installed binaries.\n9. Containers, Kubernetes and Homebrew do not update themselves: update the image or the package.\ndeploy/freebsd/ship (rc.d, restarted by daemon) and deploy/launchd/ship.plist (KeepAlive) restart the ship like systemd does; they have not been tried on real FreeBSD or macOS hosts yet.","title":"Operations runbook","translation_key":"","url":"/operations/"},{"excerpt":"Ordered steps in YAML: diagnostics, Prometheus queries and AI text.","lang":"","locale":"","tags":null,"taxonomies":{"category":["Documentation"]},"text":"A pipeline is a named list of steps in .shipyard.yaml. Each run goes through the queue, executes the steps in order and writes every step's result to the run log.\n\n\n\nStep type\nDoes\nKeys\n\n\n\n\ndiagnostic\nConfirms the project is configured and enabled.\n—\n\n\nprometheus\nRuns a named PromQL instant query.\nsource\n\n\nhealth\nLists the project's latest health check results for the next step. Runs on this Shipyard, not on ships.\n—\n\n\nai_text\nSends a prompt to the model for a role.\ntask, prompt, optional fallback\n\n\nagent\nRuns Claude Code in a repository directory.\nagent: claude-code, workdir, prompt, optional ref, args\n\n\nmerge\nMerges the pull request an earlier agent step opened, once the project's merge gate passes. Off unless the project sets auto_merge: true.\nsource\n\n\n\nEvery step has an id and an optional timeout (default 2m, at most 15m; agent steps default to 2h, at most 12h). A run's time budget is the sum of its step timeouts, at least 15 minutes and at most 24 hours. A failed step stops the pipeline. A pipeline has 1 to 20 steps.\n1. Local project check — no AI credentials\npipelines:\n  project-check:\n    steps:\n      - id: validate-config\n        type: diagnostic\n        timeout: 30s\nConfirms the project's configuration and records the result. Needs no AI credentials.\n2. Prometheus observation\nprometheus:\n  production:\n    url: https://prometheus.example.com\n    token_env: PROMETHEUS_TOKEN\n    query: \u0026#39;up{job=\u0026#34;my-project\u0026#34;}\u0026#39;\npipelines:\n  observe-production:\n    steps:\n      - id: validate-project\n        type: diagnostic\n      - id: collect-metrics\n        type: prometheus\n        source: production\n        timeout: 15s\nThe query result is written to the run log. A failed query, an error status or a response with warnings fails the step.\n3. Article draft with a different reviewer\npipelines:\n  article-draft:\n    steps:\n      - id: write\n        type: ai_text\n        task: writing\n        prompt: \u0026#34;Draft an article about ${input}. Use only supplied facts; list missing evidence.\u0026#34;\n        timeout: 2m\n      - id: review\n        type: ai_text\n        task: verification\n        prompt: \u0026#34;Review this draft and return a corrected version: ${previous}\u0026#34;\n        timeout: 2m\nwriting and verification resolve through ai.tasks and the project's models override, so the draft and the review can use different models. ${input} is the run input; ${previous} is the previous step's output. They are filled once — placeholder text inside the input is passed on as written. Prompts go to the provider as text, never to a shell. AI calls can cost money.\n4. Usage limits: fallback, wait or skip\nModels and agents run out of quota. Shipyard notices — an HTTP 429 with its reset headers from the API, or Claude Code's \u0026quot;You've hit your session limit · resets 3:45pm\u0026quot; — and decides per step:\npipelines:\n  article-draft:\n    steps:\n      - id: write\n        type: ai_text\n        task: writing\n        prompt: \u0026#34;Draft an article about ${input}.\u0026#34;\n        fallback: [local-writer, haiku]   # tried in order when the model is limited\n      - id: review\n        type: ai_text\n        task: verification\n        prompt: \u0026#34;Review: ${previous}\u0026#34;\n        on_limit: skip                    # carry on without this step\n\nfallback — model aliases from ai.models, tried in order when the step's model is limited.\non_limit: wait (default) — when every model is limited, the run is parked as Waiting until the earliest reset and continues by itself. Other runs keep going; only runs that need a limited model wait.\non_limit: skip — the step is skipped and the pipeline continues; ${previous} keeps the last output.\n\nA resumed run never repeats finished steps: their saved output is reused. Shipyard remembers which model is limited until when, so the next run goes straight to the fallback. The console shows the blocks above the run list.\n5. Coding agent with Claude Code\nagents:\n  claude_code:\n    binary: claude            # default; absolute path if not on PATH\npipelines:\n  fix-issue:\n    steps:\n      - id: code\n        type: agent\n        agent: claude-code\n        workdir: /srv/repos/ssg\n        prompt: \u0026#34;Fix the issue described here and run the tests: ${input}\u0026#34;\n        timeout: 3h\n        args: [--permission-mode, acceptEdits, --max-turns, \u0026#34;40\u0026#34;]\nShipyard runs claude -p in workdir with a fixed session ID and the args you set — add the permission flags your setup needs; Shipyard adds none on its own. When Claude Code reports a usage limit, the run waits until the reset printed in the message and then continues the same conversation with --resume, so the agent picks up where it stopped. The step's output is the agent's final answer.\nRun agent steps on a ship dedicated to that repository rather than on the Shipyard machine: the agent edits files with that machine's permissions. Log Claude Code in on that machine (or set ANTHROPIC_API_KEY in its environment) before the first run.\nCheckout per run\n      - id: code\n        type: agent\n        agent: claude-code\n        workdir: /srv/repos/ssg   # a git repository\n        ref: main                 # branch, tag or commit\n        prompt: \u0026#34;Fix the issue described here and run the tests: ${input}\u0026#34;\nWith ref, the agent does not work in workdir. Shipyard resolves ref to a commit when the step first starts and gives the run its own working tree at that commit. Your working tree, branches and uncommitted changes in workdir stay as they are, and two runs never share files.\n\nThe commit is pinned. A run that waits for a usage limit, or is repeated, continues at the same commit even when the branch has moved. The run log names the commit.\nThe tree lives as long as the run. A waiting run keeps it with the agent's changes; it is removed when the run succeeds or fails.\nThe tree is a separate repository that reads history from workdir and has no remote, no branches and none of your hooks. What the agent commits stays in the tree.\nref is read from workdir as it is. Shipyard does not fetch; update the repository yourself to start from newer code.\nTrees are kept in agents.claude_code.checkouts (default: shipyard/checkouts in the account's cache directory); on a ship, ship run -checkouts DIR.\nNeeds git 2.31 or newer on the machine that runs the step. Submodules and Git LFS files are not checked out.\n\nA ship older than this feature ignores ref and runs the agent in workdir; upgrade ships before you set it.\nDraft pull request\n      - id: code\n        type: agent\n        agent: claude-code\n        workdir: /srv/repos/ssg\n        ref: main\n        prompt: \u0026#34;Fix the issue described here and run the tests: ${input}\u0026#34;\n        pull_request:\n          enabled: true\n          base: main              # optional; default is the repository\u0026#39;s default branch\n          title: \u0026#34;Fix the parser\u0026#34; # optional\nWith pull_request, Shipyard publishes the files the agent changed in its checkout: one commit on a new branch agent/\u0026lt;run ID\u0026gt;-\u0026lt;step ID\u0026gt; and a draft pull request into base. A person reviews and merges it.\n\nNeeds ref, the GitHub App (github_app) with contents: write and pull_requests: write, and a step that runs on the Shipyard machine. A ship refuses the step.\nThe agent gets no GitHub token. Shipyard sends the changes itself after the agent has finished. It only creates the new branch; it never moves a branch, merges, or writes to base.\nThe commit you started from must be on GitHub. The new commit has the pinned commit as its parent.\nWhat counts is the files, not the agent's commits. .gitignore applies. An agent that changed nothing opens no pull request and the step still succeeds.\nThe description names the run and quotes the agent's final answer in a code block. Shipyard runs no tests.\nA repeated attempt opens no second pull request. The run remembers its branch and pull request and finds them again after a crash or timeout.\nThe run shows its branch and pull request in the console and as branch and pull_url in the API. The patch and the pull request details are kept as artifacts.\n\nMerge after review\nprojects:\n  - id: my-app\n    auto_merge: true\n    merge:\n      method: squash\n      required_checks: [test]\n\npipelines:\n  fix:\n    steps:\n      - id: code\n        type: agent\n        # … as above, with pull_request\n      - id: land\n        type: merge\n        source: code\nA merge step merges the pull request of the step named in source. It is off by default: without auto_merge: true on the project the step leaves the pull request to a person.\n\nEverything is checked for the pull request's current head commit. The base branch must be protected on GitHub, every required check must have passed, and the configured number of owners, members or collaborators must have approved that commit. A commit pushed after an approval makes the approval stale.\nA person still reviews. Shipyard opens drafts; someone marks the pull request ready and approves it.\nPending means waiting, broken means failed. A missing or running check, a missing approval or a draft parks the run as waiting; it is checked again every 5 minutes for merge.wait (default 24h). A failed check, a change request, a conflict or an unprotected base fails the run.\nGitHub's branch protection still applies. The merge names the commit that was checked, so GitHub refuses it when the head moved or a rule is not met.\nNeeds the GitHub App with contents: write, pull_requests: write, checks: read and statuses: read, and a step that runs on the Shipyard machine.\nLimits: 300 changed files and 20 MiB per step. Changes under .github/workflows are refused by GitHub.\n\nSandbox\nagents:\n  claude_code:\n    sandbox:\n      enabled: true\n      read: [/home/op/.nvm]             # optional extra read-only paths\n      write: [/home/op/.cache/go-build] # optional extra read-write paths\nWith the sandbox on, the agent and every command it starts can change only the step's workdir (with ref: only the run's own tree, and it reads the repository's history without being able to change it), a private temporary directory, Claude Code's own state (~/.claude, ~/.claude.json) and the paths in write. It can read the system directories, its own installation, your git configuration and the paths in read. The rest of the home directory, other repositories and Shipyard's data are out of reach.\n\nLinux 6.2 or newer (Landlock). No root and no container runtime needed.\nFreeBSD and macOS: not available. An enabled sandbox fails the step; the agent never runs unconfined.\nNetwork, CPU and memory are not limited. Limit those on the service or container that runs the worker or ship.\n\nIf a tool the agent needs is installed outside the system directories, add its path to read; add build caches to write.\nRun a pipeline\nIn the console: New run → Pipeline → pick the pipeline and project. Or from the Pipelines view, Run pipeline. API equivalent:\ncurl -X POST http://127.0.0.1:8080/api/v1/runs \\\n  -H \u0026#34;Authorization: Bearer $SHIPYARD_API_TOKEN\u0026#34; \\\n  -H \u0026#39;Content-Type: application/json\u0026#39; \\\n  -H \u0026#39;Idempotency-Key: my-project-check-001\u0026#39; \\\n  -d \u0026#39;{\u0026#34;project_id\u0026#34;:\u0026#34;ssg\u0026#34;,\u0026#34;kind\u0026#34;:\u0026#34;pipeline\u0026#34;,\u0026#34;task\u0026#34;:\u0026#34;project-check\u0026#34;,\u0026#34;input\u0026#34;:\u0026#34;\u0026#34;}\u0026#39;\nReusing the idempotency key returns the run already queued. One run per project executes at a time; others wait in the queue.\nIf Shipyard stops mid-run, diagnostic runs are picked up again (up to three attempts). Pipeline and AI runs are marked failed instead, so a paid model call is never repeated without you — use Retry.\nThe log records each stage's start and output and ends with pipeline completed. Messages over 16 KiB are truncated.","title":"Pipelines","translation_key":"","url":"/pipelines/"},{"excerpt":"Ubuntu, Raspberry Pi, FreeBSD and macOS — one static binary per platform.","lang":"","locale":"","tags":null,"taxonomies":{"category":["Documentation"]},"text":"Platform\nArchitecture\nFile\n\n\n\n\nUbuntu Linux\namd64\nshipyard-linux-amd64\n\n\nUbuntu Linux, Raspberry Pi 4/5 (64-bit OS)\narm64\nshipyard-linux-arm64\n\n\nRaspberry Pi 4 (32-bit OS)\narmv7\nshipyard-linux-arm\n\n\nFreeBSD\namd64\nshipyard-freebsd-amd64\n\n\nFreeBSD\narm64\nshipyard-freebsd-arm64\n\n\nmacOS, Apple Silicon\narm64\nshipyard-darwin-arm64\n\n\n\nEach binary is statically linked: no C library, interpreter or database server to install. The console is built in. Get them from Downloads.\nRunning as a service\n\nLinux — systemd; the Raspberry Pi guide has a complete unit file that works on any systemd distribution.\nContainers — see Run with Docker.\nFreeBSD and macOS — run the binary under your service manager (rc.d, launchd) with -config pointing at your configuration.\n\nKeep storage.path and logging.directory on a local disk; SQLite should not sit on a network share.","title":"Platforms","translation_key":"","url":"/platforms/"},{"excerpt":"Run work on other machines: install a ship, join it with a one-time token and route projects to it with labels.","lang":"","locale":"","tags":null,"taxonomies":{"category":["Documentation"]},"text":"A ship is a worker on another machine — a Raspberry Pi next to the hardware it tests, a build box with more cores, a FreeBSD host. Ships connect to Shipyard, lease runs, execute them locally and send logs and results back. Docks in the console lists every ship.\nHow it works\n\nShipyard opens a fleet endpoint (gRPC over TLS, port 8443 by default) with its own certificate authority.\nYou create a one-time join token in Docks. It is valid for one hour and carries the CA fingerprint, so the ship verifies it is talking to your Shipyard.\nship join exchanges the token for the ship's own client certificate. From then on every call uses mutual TLS.\nA project with runs_on labels runs only on a ship that carries all of them. Projects without runs_on stay on the Shipyard machine.\nCredentials never travel: a run tells the ship which environment variable or file holds a key, and the ship reads it locally.\n\n1. Open the fleet endpoint\nAdd to Shipyard's configuration and restart:\nruntime:\n  api_token_env: SHIPYARD_API_TOKEN\nfleet:\n  listen: 0.0.0.0:8443\n  address: shipyard.lan:8443          # what ships dial\n  hosts: [shipyard.lan, 192.168.1.10] # names and IPs in the server certificate\nShips must reach address. Open TCP 8443 to them in your firewall. With Docker, publish 8443 next to 8080.\n2. Route a project to ships\nprojects:\n  - id: firmware\n    repository: you/firmware\n    enabled: true\n    runs_on: [arch=arm64, site=garage]\n    # …\nRuns of firmware wait in the queue until a ship with both labels is free.\n3. Install the ship\nDownload ship for the machine's platform from Downloads:\nsudo install -m 0755 ship-linux-arm64 /usr/local/bin/ship\nsudo useradd --system --home-dir /var/lib/ship --shell /usr/sbin/nologin ship\nsudo install -d -m 0700 -o ship -g ship /var/lib/ship\nShips also run in containers — see Docker and Kubernetes below.\n4. Join\nIn the console open Docks → Add ship, give it a name and labels, and copy the command.\n\nRun it on the new machine as the ship user:\nsudo -u ship ship join -server shipyard.lan:8443 -token SYP1.… -name garage-pi\nThe ship writes its identity, private key and certificate to /var/lib/ship. The private key never leaves the machine. A token works once by default; create a new one for every ship. For many machines at once, such as one ship per Kubernetes node, set Ships in the dialog (or uses in the API) to the number of machines: the token then enrolls up to that many ships within its lifetime, and each ship sets its own name with -name. On the Shipyard host, shipyard ship token -labels mode=node -uses 12 -ttl 2h issues the same token from the command line.\nShips behind another NAT: set fleet.relay: true next to remote.relay. The join command then ends with -relay https://lighthouse… -yard … (or set SHIP_RELAY and SHIP_YARD). The ship tries -server first and uses Lighthouse when it cannot connect, on join and on every reconnect. Nothing listens on the ship and no port opens on the Shipyard side. The ship's TLS goes through Lighthouse end to end: Lighthouse sees only encrypted bytes and cannot read or change the work. Lighthouse lets a ship in only with the ticket it got at join; a revoked ship's ticket stops working.\n5. Run it as a service\n/etc/systemd/system/ship.service:\n[Unit]\nDescription=Shipyard ship\nWants=network-online.target\nAfter=network-online.target\n\n[Service]\nUser=ship\nGroup=ship\nStateDirectory=ship\nStateDirectoryMode=0700\nEnvironmentFile=-/etc/ship/ship.env\nExecStart=/usr/local/bin/ship run -state /var/lib/ship\nRestart=always\nRestartSec=5s\nUMask=0077\nNoNewPrivileges=true\nProtectSystem=strict\nProtectHome=true\n\n[Install]\nWantedBy=multi-user.target\nsudo systemctl daemon-reload\nsudo systemctl enable --now ship\njournalctl -u ship -f\nPut the provider keys this ship's runs need into /etc/ship/ship.env (mode 0600), e.g. OPENAI_API_KEY=…. A local model server on the ship (Ollama, vLLM) needs no key at all.\nOn FreeBSD, deploy/freebsd/ship is an rc.d script (ship_enable=\u0026quot;YES\u0026quot; in rc.conf, state in /var/db/ship); on macOS, deploy/launchd/ship.plist is a launchd job. Both restart the ship when it exits. Neither has been tried on a real host yet.\nSelf-update\nWith SHIP_UPDATE=on in /etc/ship/ship.env the ship takes the signed release that Shipyard offers (fleet.ship_update, see the runbook). It is off by default; any value other than on or off stops the ship at start.\n\nWhere it works: under systemd, rc.d, launchd, or started by hand when something restarts it. With SHIP_UPDATE=on the ship refuses to start in a container, in Kubernetes and under Homebrew (update the image or the package there), and when the ship user can write /usr/local/bin/ship or its directory.\nWhat it does: while idle, it downloads the release over its Fleet connection, resuming an interrupted download, and checks the signature against the keys built into the installed binary, then the platform, size, SHA-256 and version rules. It keeps the release in /var/lib/ship/update/, waits for its run, task and SSH sessions to end, and exits; the service manager starts it again, and the installed binary checks the release once more and runs it.\nWhen it goes wrong: a release that fails a check is deleted and not fetched again for an hour. A new version that exits three times before its first lease is rolled back to the previous one, then to the installed binary, and never taken again. A Shipyard outage is not a failed start.\nCheck: sudo -u ship ship update status -state /var/lib/ship prints the SHIP_UPDATE setting and the detected install kind, then the current, previous and proven versions, start count, bad versions, floor and last refusal. Docks shows each ship's version, install kind, whether self-update is on, the release offered to it and the fleet's target release, all read only; the ship reports its install kind (systemd, rcd, launchd, manual, container, kubernetes, homebrew) to Shipyard with every lease.\n\nDocker and Kubernetes\nThe Shipyard image contains /ship. In a container, configure it with environment variables; ship run joins by itself on the first start and keeps its identity on a volume, so restarts don't need a new token.\n\n\n\nVariable\nMeaning\n\n\n\n\nSHIP_SERVER\nFleet address, host:8443\n\n\nSHIP_TOKEN\nOne-time join token (only used on the first start)\n\n\nSHIP_NAME\nName in Docks; defaults to the host name\n\n\nSHIP_LABELS\nComma-separated labels, e.g. runtime=docker,arch=arm64\n\n\nSHIP_STATE\nState directory; /var/lib/ship in the image\n\n\nSHIP_HOST_ROOT\nNode mode: report the host whose filesystem is mounted read-only at this path, not the container (Linux)\n\n\nSHIP_CLAUDE\nClaude Code binary for agent steps\n\n\nSHIP_CHECKOUTS\nDirectory for the working trees of agent steps with a ref (Checkout per run); default is the account's cache directory\n\n\nSHIP_SANDBOX\nAny value confines agent steps to their workdir (Sandbox)\n\n\nSHIP_SANDBOX_READ, SHIP_SANDBOX_WRITE\nExtra paths a sandboxed agent may read or change, separated like PATH\n\n\nSHIP_DOCKER_CONTAINERS\nNames of Docker containers whose state and logs Shipyard may read (containerStatus, containerLogs), comma-separated; names only, no IDs or patterns; empty means none. Offered only while /var/run/docker.sock answers (checked at start and again at most every 30 seconds, so a Docker daemon started later appears without restarting the ship), and not in node or cluster mode. Access to the Docker socket is root-equivalent: the ship sends only GET /_ping, inspect and logs requests for the listed names, but a compromised ship process could do anything the socket allows. The ship user needs read and write access to the socket\n\n\nSHIP_SSH_ACCOUNTS\nLocal accounts people may reach through brokered SSH, comma-separated; empty means no SSH\n\n\nSHIP_SSH_AI_ACCOUNTS\nAccounts also open to AI sessions (needs infra.ssh.ai.enabled and more, see the SSH docs)\n\n\nSHIP_POLL_INTERVAL (flag -poll-interval)\nHow long an idle ship waits between asking for work, in Go duration syntax (500ms, 2s). Default 2s, allowed 500ms to 10s; anything else (2h, 0, soon) stops ship run at start with an error naming the setting. A shorter wait shortens the start of a task that only this ship can take and costs the server proportionally more polls. A refused ship still backs off from this value (doubling, up to 5 minutes). The ship logs the effective value when it starts\n\n\nSHIP_SSH_PORT\nPort of the local sshd that SSH sessions reach on 127.0.0.1; default 22\n\n\nSHIP_SSH_HOST_KEY_DIR\nDirectory with sshd's ssh_host_*_key.pub files; default /etc/ssh\n\n\nSHIP_SSH_RECORD\n1 lets this ship record SSH sessions; AI sessions need it, human ones when Shipyard records them\n\n\nSHIP_SSH_RECORDER\nPath of the ship binary sshd runs for recorded sessions; default the running binary\n\n\nSHIP_SSH_RECORD_SOCKET\nSocket where the ship waits for recorders; default /run/ship/ssh-record.sock\n\n\nSHIP_SERVICE_RESTART\nsystemd services, without .service, that Shipyard may restart (serviceRestart), comma- or space-separated, at most 64. Empty means none. Linux with systemd only, not in node or cluster mode; ship run exits on an invalid name or on ship, dbus, polkit or systemd-*. A polkit rule must allow the same list (Restart a service)\n\n\n\nDocker:\ndocker run -d --name ship --restart unless-stopped --read-only \\\n  -v ship-state:/var/lib/ship \\\n  -e SHIP_SERVER=shipyard.lan:8443 -e SHIP_TOKEN=SYP1.… -e SHIP_LABELS=runtime=docker \\\n  --entrypoint /ship shipyard:latest run\ncompose.yaml in the repository has the same as the ship profile: SHIP_TOKEN=SYP1.… docker compose --profile ship up -d ship.\nKubernetes: deploy/kubernetes/ship.yaml defines a StatefulSet — one ship per replica, each with its own volume and its own token in the ship-join secret (ship-0, ship-1, …), provider keys in ship-env, a non-root read-only container and /ship healthcheck as the liveness probe.\nkubectl apply -f deploy/kubernetes/ship.yaml\nkubectl -n shipyard logs -f statefulset/ship\nOne ship per node: deploy/kubernetes/ship-daemonset.yaml runs a DaemonSet in node mode. Create one token for all nodes (labels mode=node, Ships = node count), and on every node a state directory /var/lib/shipyard-ship (mode 0700, owner 65532) so a restarted pod keeps its ship. The node's filesystem is mounted read-only; the ship reports the node's hostname, uptime, load, memory and root filesystem, never runs privileged and gets no ServiceAccount token. Service status is not available in node mode. Details: node ships.\nOne ship per cluster: deploy/kubernetes/ship-cluster.yaml runs one ship with SHIP_KUBERNETES=in-cluster and labels mode=cluster. It lists the cluster's nodes (Ready, cordoned, kubelet version, roles, memory, disk and PID pressure) through a ServiceAccount that may only get and list nodes. Ask for it as the clusterNodes task.\nkubectl apply -f deploy/kubernetes/ship-daemonset.yaml\nship healthcheck exits non-zero until the ship has joined, when its certificate has expired, and when Shipyard has revoked the ship (it then prints revoked). Agent steps need Claude Code in the container: build your own image FROM the Shipyard image with the CLI added, and mount the repositories the agent works on.\nDocks\n\n\n\n\nColumn\nShows\n\n\n\n\nStatus\nOnline — called in within 15 seconds. Offline — not heard from. Revoked — no longer allowed.\n\n\nLabels\nWhat the ship carries for routing.\n\n\nPlatform, version\nReported by the ship.\n\n\nRunning\nThe run it is executing now, or Idle.\n\n\n\nRevoke cuts a ship off immediately: its certificate stops working, and a run it was executing is recovered like any interrupted run. To bring the machine back, join it again with a new token.\nOn the ship, a refused lease (PermissionDenied or Unauthenticated) makes it wait longer before asking again: 2, 4, 8 seconds and so on, with jitter, up to 5 minutes. It logs the first refusal, the revocation, at most one reminder every 15 minutes, and the recovery. After at least three refusals over at least a minute it counts itself revoked and writes the file revoked in its state directory; ship healthcheck then fails, so a container's health check or a Kubernetes liveness probe shows it. A short refusal, for example while Shipyard restarts, does not count, and other errors keep the 2-second interval. The first accepted lease clears the state; a new join gives a new ship, which ignores the old file. A run in flight stops at its next heartbeat, which Shipyard refuses too.\nThe run panel shows Ran on — the ship, or the Shipyard machine — for every run.\nCommands\nship join -server HOST:PORT -token TOKEN [-name NAME] [-label key=value]... [-state DIR]\nship run [-state DIR] [-claude PATH] [-checkouts DIR] [-sandbox] [-sandbox-read PATHS] [-sandbox-write PATHS]\nship healthcheck [-state DIR]   # exit 1, printing \u0026#34;revoked\u0026#34; when Shipyard refuses the ship\nship update status [-state DIR] # self-update state\nship version\n-state defaults to /var/lib/ship. Labels given with -label are added to those in the token.","title":"Ships and docks","translation_key":"","url":"/ships/"},{"excerpt":"Guides and notes on running Shipyard: what it solves, how to install it and how to operate a software portfolio with it.","lang":"","locale":"","tags":null,"text":"","title":"Blog","translation_key":"","url":"/blog/"},{"excerpt":"Shipyard 1.0.0 for Linux, Raspberry Pi, FreeBSD and macOS. Released 14 May 2026; download files are in testing.","lang":"","locale":"","tags":null,"text":"Version 1.0.0 — released 14 May 2026.\nFiles in testing.\n\n\n\nPlatform\nArchitecture\nShipyard\nShip\nStatus\n\n\n\n\nUbuntu Linux\namd64\nshipyard-linux-amd64\nship-linux-amd64\nIn testing\n\n\nUbuntu Linux, Raspberry Pi 4/5 (64-bit)\narm64\nshipyard-linux-arm64\nship-linux-arm64\nIn testing\n\n\nRaspberry Pi 4 (32-bit)\narmv7\nshipyard-linux-arm\nship-linux-arm\nIn testing\n\n\nFreeBSD\namd64\nshipyard-freebsd-amd64\nship-freebsd-amd64\nIn testing\n\n\nFreeBSD\narm64\nshipyard-freebsd-arm64\nship-freebsd-arm64\nIn testing\n\n\nmacOS, Apple Silicon\narm64\nshipyard-darwin-arm64\nship-darwin-arm64\nIn testing\n\n\n\nEach platform has two files:\n\nshipyard-* — the control plane: API, console and worker in one binary.\nship-* — the remote worker that joins a Shipyard from another machine. See Ships and docks.\n\nBoth are static binaries with no runtime dependencies.\nBosun and Lighthouse\n\n\n\nFile\nFor\nStatus\n\n\n\n\nbosun-1.0.0.apk\nAndroid 8.0 or newer — the Bosun app\nIn testing\n\n\nlighthouse-linux-amd64, lighthouse-linux-arm64\nThe relay for reaching a Shipyard behind NAT\nIn testing\n\n\n\nNext: install on a Raspberry Pi or read the configuration guide.","title":"Downloads","translation_key":"","url":"/downloads/"}]