Skip to content
Operator has no release yet: these pages describe unreleased main.

Running Seats on a Harness

Every model a seat runs on is a harness the engine drives: Claude Code for Anthropic’s models, Codex for OpenAI’s, OpenCode for open models on any provider, and the other harnesses of the table below. An LLMProvider names the harness (harness), the model in that harness’s own grammar, and how it signs in: on a subscription you already have, or on a metered API key.

It renders one entry of Crewlet’s providers.llm; Crewlet’s LLM backends describes what the engine does with it. This guide covers what changes when the engine runs in a pod: the image, the login, and where a seat’s executor runs.

The harness is a program the engine starts, in the engine’s own container, and Crewlet’s image ships none, so a company whose seats should do any work runs on a class that names a derived image. It adds the harness, with whatever runtime it needs (Node.js for most of them; Claude Code, Codex, OpenCode, Copilot, Grok Build and Muse Code need none, each being one self-contained binary). Build one from the engine image you run, named by digest: the engine of the operator’s release, or the copy of Crewlet’s main image that Installing makes in your registry. Pin both the engine and the harness.

A class names one engine image, so a company that runs two harnesses, or a harness and stdio tool servers, needs one image with all of them. Each Dockerfile here and the one of Building the image takes the image it extends as ENGINE_IMAGE: push the first image, then build the next Dockerfile with its ENGINE_IMAGE naming it, rather than pasting one Dockerfile into another (One image with a harness).

The engine’s root filesystem is read-only: a harness the engine runs in the pod writes under the home the engine gives each seat and under /tmp, both writable, and the engine keeps the socket each such run reaches the seat’s tools through in a directory of its own under /tmp. A seat’s executor run runs in the pod too, in a box directory on the pod’s sandboxes volume, with the harness’s own shell, so whatever the seat’s work runs there (git, a compiler, a package manager) has to be in the image, or be installed by the run into its box’s home (Where a seat’s executor runs). Each running harness takes 200 to 450 MB. Size the class’s data.resources for maxConcurrent of them per provider, which bounds the provider’s harness in every phase but the executor’s, and for one more, with whatever its shell runs, for each agent seat whose executor runs on the pod at once, which maxConcurrent does not bound, and for each executor run parked on a person’s question, whose processes are stopped but keep their memory until the run resumes or its pause TTL expires (Box storage). One process lives for a phase’s whole run, its tool calls included, so where seats wait on each other for a place, raise maxConcurrent and the pod’s memory together. An OpenCode call is at the top of that range (untested on 2.3.2): one call held about 440 MB at its peak, some 365 MB of it the private server every call starts, and each call running beside it about 250 to 350 MB more, the binary’s pages being shared between them; a short opencode api session.get reading a call’s usage follows each. OpenCode also unpacks about 19 MB of native libraries into each seat’s home, under the TMPDIR the engine gives it (<home>/tmp), beside a database of about 7 MB while a seat’s calls run: about 26 MB per OpenCode seat on the data volume, and on a seat pod’s scratch volume (scratchSizeLimit) for each seat the pod holds. To save an executor OpenCode run’s session as it works, or to pack it itself, Crewlet exports the session in the pod’s container, one export at a time on the pod: about 90 MB for about half a second on an ordinary session, and up to about ten times the session at its peak. A save waits while the container lacks that room (Crewlet’s A running job’s session, saved as it works).

Anthropic’s installer runs in a build stage of its own and only the binary it installed is kept:

# The engine image you run, by digest, and the Claude Code release to add.
ARG ENGINE_IMAGE
ARG CLAUDE_CODE_VERSION=2.1.330
# The installer needs curl, which the engine image does not ship, and leaves a
# download cache, a launcher and the build user's ~/.claude.json behind, none
# of which a seat reads: only the binary leaves this stage.
FROM ${ENGINE_IMAGE} AS claude-code
ARG CLAUDE_CODE_VERSION
USER root
RUN apt-get update && apt-get install -y --no-install-recommends curl
USER crewlet
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN curl -fsSL https://claude.ai/install.sh | bash -s "${CLAUDE_CODE_VERSION}"
FROM ${ENGINE_IMAGE}
ARG CLAUDE_CODE_VERSION
COPY --from=claude-code --chown=0:0 \
/home/crewlet/.local/share/claude/versions/${CLAUDE_CODE_VERSION} /usr/local/bin/claude
# The image is how the harness is updated. The engine starts it with only an
# allowlist of its own environment, which DISABLE_UPDATES is not on, so an ENV
# here would not reach it: the switch goes in the managed settings every
# claude reads.
COPY <<'JSON' /etc/claude-code/managed-settings.json
{"env": {"DISABLE_UPDATES": "1"}}
JSON

The installer checks the binary’s SHA-256 against Anthropic’s release manifest before it installs it, and a CLAUDE_CODE_VERSION that names no release fails the build. Updates are off because, left on, Claude Code would download each new release into each seat’s home on the data volume, about 250 MB a copy that nothing runs: the engine runs the claude on its PATH.

Keep the managed settings to that switch. Every claude the image starts reads them, a seat’s executor run on the pod included, and Crewlet starts that run with --permission-mode bypassPermissions: a policy there that disables the mode (permissions.disableBypassPermissionsMode), or that narrows the run’s tools, breaks every executor run on the pod.

Build it from the engine image,

Terminal window
docker build --build-arg ENGINE_IMAGE=<your registry>/crewlet@sha256:<digest> \
-t <your registry>/crewlet-claude-code:<crewlet commit> .

and name it in the class, which every company of the class then runs:

# EngineClass with-claude-code, excerpt
spec:
engine:
image: <your registry>/crewlet-claude-code@sha256:<digest> # crewlet <commit>

Crewlet’s codex profile is written for Codex CLI 0.171.0, npm’s @openai/codex: its runner refuses an older release by name before the run starts, and runs a newer one with each run in a fresh session (Where a seat’s executor runs). The package’s launcher is a Node.js script that starts the build of one of its platform packages, a directory holding Codex’s static musl binary and the files it finds beside itself, so the image needs only that directory, with codex on the PATH. The files live in images/codex/ of this repository: a package.json naming the release exactly, 0.171.0, a package-lock.json holding every package’s integrity, and this Dockerfile:

# The engine image you run, by digest.
ARG ENGINE_IMAGE
# Node.js and Codex's package tree are fetched and checked here, with a curl
# and an xz the engine image does not ship: only this platform's vendored
# Codex directory leaves this stage.
FROM ${ENGINE_IMAGE} AS codex
ARG TARGETARCH
# Crewlet's floor Node (NODE_FLOOR_VERSION and its SHA-256s in crewlet/crewlet's
# scripts/node-pin.env), reused rather than pinned again. It runs npm here and
# nothing at run time: Codex is a static musl binary.
ARG NODE_VERSION=22.23.5
ARG NODE_SHA256_AMD64=cdeb8670a0c81f51b4dc4ac61919f9b1ad917b304bf8221eb939570663d240f8
ARG NODE_SHA256_ARM64=2babb9eb5264860d540849f4b064a6fbdebcdc323657d9d382ce23d313fd5e09
USER root
RUN apt-get update && apt-get install -y --no-install-recommends curl xz-utils
SHELL ["/bin/bash", "-euo", "pipefail", "-c"]
WORKDIR /fetch
RUN case "${TARGETARCH}" in \
amd64) platform=linux-x64 target=x86_64-unknown-linux-musl sha256=${NODE_SHA256_AMD64} ;; \
arm64) platform=linux-arm64 target=aarch64-unknown-linux-musl sha256=${NODE_SHA256_ARM64} ;; \
*) echo "no Node.js or Codex build for ${TARGETARCH}" >&2; exit 1 ;; \
esac; \
curl -fsSLo node.tar.xz "https://nodejs.org/dist/v${NODE_VERSION}/node-v${NODE_VERSION}-${platform}.tar.xz"; \
echo "${sha256} node.tar.xz" | sha256sum -c -; \
mkdir /opt/node; \
tar -xJf node.tar.xz -C /opt/node --strip-components=1; \
echo "${platform}/vendor/${target}" > /fetch/vendor
ENV PATH=/opt/node/bin:${PATH}
# package.json pins @openai/codex at 0.171.0, the one release Crewlet's codex
# profile is written for: its runner refuses an older one and continues a
# session only on that release. A bump needs the profile re-measured on the
# new release first. npm ci installs exactly the lock, every package checked
# against its integrity, and of the platform packages those of this machine's
# CPU. Codex has no install scripts.
WORKDIR /opt/codex-npm
COPY package.json package-lock.json ./
RUN npm ci --ignore-scripts --no-audit --no-fund; \
mkdir -p /out/opt /out/usr/local/bin; \
cp -a "node_modules/@openai/codex-$(cat /fetch/vendor)" /out/opt/codex; \
ln -s /opt/codex/bin/codex /out/usr/local/bin/codex
# Codex finds its rg and helpers through the codex-package.json beside its own
# executable, so the directory stays whole and PATH reaches it by a symlink.
FROM ${ENGINE_IMAGE}
COPY --from=codex --chown=0:0 /out/ /

Build it with that directory as the context, from the engine image, or from another image of One image with a harness,

Terminal window
docker build --build-arg ENGINE_IMAGE=<your registry>/crewlet@sha256:<digest> \
-t <your registry>/crewlet-codex:<crewlet commit> images/codex

and check that Codex runs in it as the engine’s pod runs it, as uid 10001 on a read-only root with an empty HOME, no capabilities and no network:

Terminal window
image=<your registry>/crewlet-codex:<crewlet commit>
docker run --rm --read-only --network none --user 10001:10001 --cap-drop ALL \
--tmpfs /tmp:exec --tmpfs /home/crewlet:exec,uid=10001,gid=10001 -e HOME=/home/crewlet \
--entrypoint /usr/local/bin/codex "$image" --version

which passes when it prints codex-cli 0.171.0. The obvious alternatives are wrong:

  • npm install -g @openai/codex puts the Node.js launcher on the PATH, which the engine image would then need Node.js for.
  • Only the codex binary, copied alone to /usr/local/bin: Codex looks for its package beside its own executable, as codex-package.json, and from it finds the rg it searches with (codex-path) and the helpers packaged beside it (bin/codex-code-mode-host, codex-resources). The symlink keeps the directory whole: codex doctor in the built image reports the install consistent, its package /opt/codex and its search command the bundled rg.
  • No update switch is needed, unlike Claude Code’s: codex update updates only an install a package manager made, and on this one answers Could not detect the Codex installation method; the root filesystem is read-only anyway.

The directory adds about 425 MB to the image (the binary alone is 315 MB). Dependabot proposes each new Codex release, and that pull request is the trigger to re-measure Crewlet’s codex profile on the release before it merges, as the profile supports only the release it is written for. Then name it in the class:

# EngineClass with-codex, excerpt
spec:
engine:
image: <your registry>/crewlet-codex@sha256:<digest> # crewlet <commit>

Crewlet drives OpenCode 2.3.2 only, npm’s @opencode/cli: a box on an older release ends its run at once, naming the release, and one on a newer release runs, but its sessions start fresh and none continues in another box. npm’s opencode-ai is OpenCode 1.x and rejects the --standalone every command of Crewlet’s profile carries, so on it every call fails. The package’s install script puts the binary of one of its platform packages in place, a self-contained program that needs no Node.js. This Dockerfile takes that binary straight from the platform package and checks it against the integrity npm’s registry records, as the Slack server’s is (Building the image):

# The engine image you run, by digest.
ARG ENGINE_IMAGE
# The platform package is fetched and checked here, with a curl the engine
# image does not ship: only the binary leaves this stage.
FROM ${ENGINE_IMAGE} AS opencode
ARG TARGETARCH
# The OpenCode release Crewlet drives, and each platform package's dist.integrity on npm's
# registry. amd64 takes the baseline build, which runs on any x86-64 node: the
# other needs AVX2, and the image runs on whichever node its pod lands on.
ARG OPENCODE_VERSION=2.3.2
ARG OPENCODE_INTEGRITY_AMD64=sha512-c8f1PimJ0dtKcF1sF7I+BSsySOH6HzmELqEfDTduzqBG2OzBH6g1sPwC/R5LhTf6kfG7FeLH5UFr9ZTTlcRdEw==
ARG OPENCODE_INTEGRITY_ARM64=sha512-t44ZuW5CKaWiRSp4gWUDurMf4edyXw/SmUty1pRi827zda0T2RatKWj4LnMUewNCL05COLB1Ppg8RWicswhFaQ==
USER root
RUN apt-get update && apt-get install -y --no-install-recommends curl
SHELL ["/bin/bash", "-euo", "pipefail", "-c"]
WORKDIR /fetch
RUN case "${TARGETARCH}" in \
amd64) package=cli-linux-x64-baseline integrity=${OPENCODE_INTEGRITY_AMD64} ;; \
arm64) package=cli-linux-arm64 integrity=${OPENCODE_INTEGRITY_ARM64} ;; \
*) echo "no OpenCode build for ${TARGETARCH}" >&2; exit 1 ;; \
esac; \
curl -fsSLo opencode.tgz "https://registry.npmjs.org/@opencode/${package}/-/${package}-${OPENCODE_VERSION}.tgz"; \
test "sha512-$(openssl dgst -sha512 -binary opencode.tgz | base64 -w0)" = "${integrity}"; \
tar -xzf opencode.tgz --strip-components=2 package/bin/opencode
FROM ${ENGINE_IMAGE}
COPY --from=opencode --chown=0:0 /fetch/opencode /usr/local/bin/opencode

Pin the @opencode/cli release Crewlet’s opencode profile is written for (OpenCode 2.3.2 today), not npm’s newest: Crewlet refuses an older release, and on a newer one no session continues in another box. Take the dist.integrity of its cli-linux-x64-baseline and cli-linux-arm64 packages at that version. The obvious alternatives are wrong:

  • OpenCode’s own installer, curl https://opencode.ai/v2/install, fetches the same package with no checksum, and picks the baseline or musl build from the CPU and libc of the machine running the build, not of the node the pod runs on.
  • No update switch is needed, unlike Claude Code’s. Every call the engine makes carries update: disable in the configuration it writes for that call, and the commands it runs outside a call (auth import, auth export, auth list, --version) check for no release. OpenCode’s updater replaces only what a package manager (npm, pnpm, Bun, Yarn, Vite+, Homebrew or WinGet) or its own installer put in place, so it cannot touch /usr/local/bin/opencode, and the root filesystem is read-only anyway.
  • Never add an /etc/opencode configuration to the image: OpenCode reads it as machine-wide managed configuration over every seat’s call, and nothing the engine sets overrides it (Isolation).
  • The binary links glibc, which the engine image’s Debian has; the musl packages are for Alpine. Of the native libraries it unpacks, only its file watcher’s needs more, libstdc++ and libgcc_s, which Debian has too. The engine switches the watcher off on every command it runs (OPENCODE_FILEWATCHER_DISABLE), and the check below loads it anyway, since a provider’s env can switch it back on.

Crewlet judges whether a continued OpenCode session reaches the model whole, rather than compacted to a summary, only on the releases it has measured, in a box running the release that wrote the session. Any other release runs too, but every continuation of its sessions, like one whose image changed release while its turn ran, is told as one that may be a summary, with its task again (Bring your own image).

Build it from the engine image, or from another image of One image with a harness,

Terminal window
docker build --build-arg ENGINE_IMAGE=<your registry>/crewlet@sha256:<digest> \
-t <your registry>/crewlet-opencode:<crewlet commit> .

check that OpenCode runs in it as the engine’s pod runs it, as uid 10001 on a read-only root, with an empty HOME and /tmp that, like the pod’s, allow running what is written there, no capabilities and no network,

Terminal window
image=<your registry>/crewlet-opencode:<crewlet commit>
docker run --rm --read-only --network none --user 10001:10001 --cap-drop ALL \
--tmpfs /tmp:exec --tmpfs /home/crewlet:exec,uid=10001,gid=10001 -e HOME=/home/crewlet \
--entrypoint /usr/local/bin/opencode "$image" auth list --standalone --print-logs 2>&1 |
grep -E 'level=ERROR|No authenticated integrations'

which passes when it prints one line, No authenticated integrations. It starts the private server on loopback that every call the engine makes starts, and loads every native library the binary unpacks, where --version alone loads one. A library that does not load is no failure to OpenCode: it carries on without it, prints the same answer, exits 0, and says so only in its log, as level=ERROR with watcher backend not supported, which is why the check reads the log. That is what a missing libstdc++ looks like, and what a plain --tmpfs does, which mounts noexec: the pod’s /tmp and home are on an emptyDir volume, which allows exec, and each seat’s TMPDIR is on the data volume, which ordinarily does too. Run the check on a machine of the platform the image is for: under emulation, as docker buildx runs another platform’s image, OpenCode misses its own five-second deadline for activating its plugins and fails with Location plugins did not finish activating. The binary adds about 210 MB to the image. Then name it in the class:

# EngineClass with-opencode, excerpt
spec:
engine:
image: <your registry>/crewlet-opencode@sha256:<digest> # crewlet <commit>

Gemini CLI is npm’s @google/gemini-cli, a JavaScript bundle that runs on Node.js 20 or newer, and Crewlet’s Gemini CLI runner is written for 0.70.0. npm installs it in a stage of its own, from the official Node.js image on the engine image’s Debian, and only Node.js and the package leave that stage:

# The engine image you run, by digest, and the Node.js that runs Gemini CLI:
# the current LTS, on the engine image's Debian (trixie), so the binary finds
# the libraries it links there.
ARG ENGINE_IMAGE
ARG NODE_IMAGE=node:26.13.1-trixie-slim@sha256:e6bedef217677b276c591795e169840edd9096dbf13f29df8ef8d1856b8820bc
# npm checks the package against the integrity its registry records. Its
# optional native dependencies (a pseudo-terminal, a keychain) serve an
# interactive session alone, and a headless call uses neither.
FROM ${NODE_IMAGE} AS gemini-cli
ARG GEMINI_CLI_VERSION=0.70.0
RUN npm install --global --omit=optional --ignore-scripts --no-audit --no-fund \
"@google/gemini-cli@${GEMINI_CLI_VERSION}"
FROM ${ENGINE_IMAGE}
COPY --from=gemini-cli /usr/local/bin/node /usr/local/bin/node
COPY --from=gemini-cli /usr/local/lib/node_modules/@google/gemini-cli \
/usr/local/lib/node_modules/@google/gemini-cli
# Node.js links libatomic, which the engine image does not ship: Debian's
# package puts it in place for whichever architecture the image is built for.
USER root
RUN apt-get update && apt-get install -y --no-install-recommends libatomic1 \
&& rm -rf /var/lib/apt/lists/* \
&& ln -s ../lib/node_modules/@google/gemini-cli/bundle/gemini.js /usr/local/bin/gemini
USER crewlet

The bundle carries every module it needs, so the package has no other dependency to install. node stays on the image’s PATH because a seat’s executor run on the pod runs its notes hook and its helper under it, as node. No update switch is needed: every executor run’s settings turn Gemini CLI’s updater off, and the root filesystem is read-only anyway. Never add an /etc/gemini-cli directory to the image: Gemini CLI reads its settings and its policies there as machine-wide ones over every seat’s call, and they outrank the ones the engine writes into each seat’s home.

Build it from the engine image, or from another image of One image with a harness,

Terminal window
docker build --build-arg ENGINE_IMAGE=<your registry>/crewlet@sha256:<digest> \
-t <your registry>/crewlet-gemini-cli:<crewlet commit> .

check that Gemini CLI runs in it as the engine’s pod runs it, as uid 10001 on a read-only root, with an empty HOME, no capabilities and no network,

Terminal window
image=<your registry>/crewlet-gemini-cli:<crewlet commit>
docker run --rm --read-only --network none --user 10001:10001 --cap-drop ALL \
--tmpfs /tmp:exec --tmpfs /home/crewlet:exec,uid=10001,gid=10001 -e HOME=/home/crewlet \
--entrypoint /usr/local/bin/gemini "$image" --version

which passes when it prints 0.70.0, and fails with error while loading shared libraries where Node.js lacks a library it links. Node.js and Gemini CLI add about 75 MB to the image. Then name it in the class:

# EngineClass with-gemini-cli, excerpt
spec:
engine:
image: <your registry>/crewlet-gemini-cli@sha256:<digest> # crewlet <commit>

Crewlet drives Qwen Code 0.28.4, npm’s @qwen-code/qwen-code, which runs on Node.js 22 or newer; a seat’s executor run on it is a plain node script of Crewlet’s that drives qwen, so the node Qwen Code needs is all it needs. The engine image ships no Node.js, so this Dockerfile installs both in a stage of the node image that shares the engine image’s Debian release, and keeps only the node binary and the package tree:

# The engine image you run, by digest.
ARG ENGINE_IMAGE
# Node.js and Qwen Code are installed here, with the npm the engine image does
# not ship: only the node binary and the installed package tree leave this
# stage. npm checks each package against the integrity the registry records.
FROM node:26.13.1-trixie-slim@sha256:e6bedef217677b276c591795e169840edd9096dbf13f29df8ef8d1856b8820bc AS qwen-code
ARG QWEN_CODE_VERSION=0.28.4
RUN npm install --global --prefix /opt/qwen-code "@qwen-code/qwen-code@${QWEN_CODE_VERSION}"
FROM ${ENGINE_IMAGE}
USER root
# node links libatomic, which the engine image's Debian does not ship; the
# engine image and the node stage share a Debian release, so its package fits.
RUN apt-get update && apt-get install -y --no-install-recommends libatomic1 \
&& rm -rf /var/lib/apt/lists/*
COPY --from=qwen-code --chown=0:0 /usr/local/bin/node /usr/local/bin/node
COPY --from=qwen-code --chown=0:0 /opt/qwen-code /opt/qwen-code
RUN ln -s /opt/qwen-code/bin/qwen /usr/local/bin/qwen
USER crewlet

Pin the Qwen Code release Crewlet’s qwen-code profile is written for, and the newest Node.js LTS release by digest. npm runs no package’s install script it was not told to allow, so @qwen-code/audio-capture’s, which builds the voice input a headless run never uses, is skipped. Qwen Code’s update check is off in the settings Crewlet writes for every call (general.enableAutoUpdate), and the root filesystem is read-only anyway.

Build it from the engine image,

Terminal window
docker build --build-arg ENGINE_IMAGE=<your registry>/crewlet@sha256:<digest> \
-t <your registry>/crewlet-qwen-code:<crewlet commit> .

then check that Qwen Code runs in it as the engine’s pod runs it, answering an ACP initialize with no network:

Terminal window
image=<your registry>/crewlet-qwen-code:<crewlet commit>
printf '%s\n' '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":1,"clientCapabilities":{}}}' |
docker run -i --rm --read-only --network none --user 10001:10001 --cap-drop ALL \
--tmpfs /tmp:exec --tmpfs /home/crewlet:exec,uid=10001,gid=10001 -e HOME=/home/crewlet \
-e OPENAI_API_KEY=unused --entrypoint /usr/local/bin/qwen "$image" \
--acp --auth-type openai --approval-mode yolo | head -c 160

which passes when it prints a result naming qwen-code and 0.28.4. A missing shared library shows here as node’s error while loading shared libraries: libatomic.so.1 is the one the engine image lacks. Node.js and Qwen Code add about 160 MB to the image. Then name it in the class:

# EngineClass with-qwen-code, excerpt
spec:
engine:
image: <your registry>/crewlet-qwen-code@sha256:<digest> # crewlet <commit>

Crewlet’s Copilot runner drives GitHub Copilot CLI 1.0.114 or later, npm’s @github/copilot, and refuses a box with an older release by name before the run starts (Crewlet’s Copilot runner). The package’s loader starts the binary of one of its platform packages, a self-contained program that embeds its own Node.js, so the image needs only that binary as copilot on the PATH. The files live in images/copilot/ of this repository: a package.json naming the release exactly, 1.0.114, the newest Crewlet has measured, a package-lock.json holding every package’s integrity, and this Dockerfile:

# The engine image you run, by digest.
ARG ENGINE_IMAGE
# Node.js and Copilot's package tree are fetched and checked here, with a curl
# and an xz the engine image does not ship: only the binary of this platform's
# package leaves this stage.
FROM ${ENGINE_IMAGE} AS copilot
ARG TARGETARCH
# Crewlet's floor Node (NODE_FLOOR_VERSION and its SHA-256s in crewlet/crewlet's
# scripts/node-pin.env), reused rather than pinned again. It runs npm here and
# nothing at run time: the binary embeds its own Node.js.
ARG NODE_VERSION=22.23.5
ARG NODE_SHA256_AMD64=cdeb8670a0c81f51b4dc4ac61919f9b1ad917b304bf8221eb939570663d240f8
ARG NODE_SHA256_ARM64=2babb9eb5264860d540849f4b064a6fbdebcdc323657d9d382ce23d313fd5e09
USER root
RUN apt-get update && apt-get install -y --no-install-recommends curl xz-utils
SHELL ["/bin/bash", "-euo", "pipefail", "-c"]
WORKDIR /fetch
RUN case "${TARGETARCH}" in \
amd64) platform=linux-x64 sha256=${NODE_SHA256_AMD64} ;; \
arm64) platform=linux-arm64 sha256=${NODE_SHA256_ARM64} ;; \
*) echo "no Node.js or Copilot CLI build for ${TARGETARCH}" >&2; exit 1 ;; \
esac; \
curl -fsSLo node.tar.xz "https://nodejs.org/dist/v${NODE_VERSION}/node-v${NODE_VERSION}-${platform}.tar.xz"; \
echo "${sha256} node.tar.xz" | sha256sum -c -; \
mkdir /opt/node; \
tar -xJf node.tar.xz -C /opt/node --strip-components=1; \
echo "${platform}" > /fetch/platform
ENV PATH=/opt/node/bin:${PATH}
# npm ci installs exactly the lock, every package checked against its
# integrity, and of the platform packages those of this machine's CPU; the
# glibc one's binary is what the image runs. Copilot has no install scripts.
WORKDIR /opt/copilot
COPY package.json package-lock.json ./
RUN npm ci --ignore-scripts --no-audit --no-fund; \
cp "node_modules/@github/copilot-$(cat /fetch/platform)/copilot" /fetch/copilot
FROM ${ENGINE_IMAGE}
COPY --from=copilot --chown=0:0 /fetch/copilot /usr/local/bin/copilot

Build it with that directory as the context, from the engine image, or from another image of One image with a harness,

Terminal window
docker build --build-arg ENGINE_IMAGE=<your registry>/crewlet@sha256:<digest> \
-t <your registry>/crewlet-copilot:<crewlet commit> images/copilot

and check that Copilot runs in it as the engine’s pod runs it, as uid 10001 on a read-only root with an empty HOME:

Terminal window
image=<your registry>/crewlet-copilot:<crewlet commit>
docker run --rm --read-only --network none --user 10001:10001 --cap-drop ALL \
--tmpfs /tmp --tmpfs /home/crewlet:uid=10001,gid=10001 -e HOME=/home/crewlet \
--entrypoint copilot "$image" --version

which prints GitHub Copilot CLI 1.0.114. and a line on how to update it, which the engine never does. The obvious alternatives are wrong:

  • npm install -g @github/copilot puts a loader script on the PATH that needs a Node.js in the image only to start the same binary, and lets the loader’s own package float within its range. npm ci installs exactly the lock, each package checked against its integrity, and only the binary reaches the image.
  • No update switch is needed in the image. Left on, Copilot would download each new release into each seat’s cache and run that instead, but the engine sets COPILOT_AUTO_UPDATE=false on every call it makes, an executor run’s included.
  • The binary links glibc, which the engine image’s Debian has; the linuxmusl packages are for Alpine. A run’s script needs bash and git beside it, which the engine image has too.

The binary adds about 220 MB to the image. On its first call in a seat’s home, Copilot also unpacks its package, about 236 MB, under that home’s cache, once per seat: on the data volume, or on a seat pod’s scratch volume (scratchSizeLimit) for each seat the pod holds. Dependabot proposes each new Copilot release, and that pull request is the trigger to measure the release with Crewlet’s runner before it merges. Then name it in the class:

# EngineClass with-copilot, excerpt
spec:
engine:
image: <your registry>/crewlet-copilot@sha256:<digest> # crewlet <commit>

Grok Build is xAI’s own harness, one static binary per platform, not the same-named community package on npm. Crewlet’s Grok runner runs exactly 1.0.92: a box with an older release is refused by name before the run starts, and a newer one runs but never continues a session, so pin 1.0.92 (Crewlet’s Grok Build runner). xAI serves each release by its version and publishes no checksum, so the SHA-256s below are the ones Crewlet pins for 1.0.92; a build stage fetches the binary and checks it, and only the binary leaves that stage:

# The engine image you run, by digest, and Grok Build 1.0.92, the release the
# runner runs, with its SHA-256 per architecture, as Crewlet's recipe pins them
# (xAI publishes none).
ARG ENGINE_IMAGE
ARG GROK_VERSION=1.0.92
# The fetch needs curl, which the engine image does not ship.
FROM ${ENGINE_IMAGE} AS grok
ARG GROK_VERSION
USER root
RUN apt-get update && apt-get install -y --no-install-recommends curl ca-certificates
RUN set -eu; \
case "$(dpkg --print-architecture)" in \
amd64) a=x86_64; s=add4d201dbf2c0bd6077a36feb55a76939de30bae48dbb06f16b2307d38ceacb ;; \
arm64) a=aarch64; s=8c74f1dc6cdc1befff6b9faada06bec4cf6759d04f2a60cdc28ece5ff696b44f ;; \
esac; \
curl -fsSL --retry 5 --retry-all-errors -o /grok "https://x.ai/cli/grok-${GROK_VERSION}-linux-${a}"; \
echo "$s /grok" | sha256sum -c -; chmod 0755 /grok
FROM ${ENGINE_IMAGE}
COPY --from=grok /grok /usr/local/bin/grok

The binary is about 200 MB. Build it from the engine image, and name it in the class:

# EngineClass with-grok, excerpt
spec:
engine:
image: <your registry>/crewlet-grok@sha256:<digest> # crewlet <commit>

Muse Code is one static binary per platform, and Crewlet’s Muse Code runner runs exactly 1.4.25: a box with an older release is refused, and a newer one runs but never continues a session, so pin 1.4.25. Meta’s release manifest names each platform’s file, its size and its SHA-256 by release, so a build stage fetches the binary and checks it, and only the binary leaves that stage; Meta’s launcher script, which re-checks for updates, is not needed:

# The engine image you run, by digest, and Muse Code 1.4.25, the release the
# runner runs, with its SHA-256 per architecture, from that release's manifest
# (https://lookaside.facebook.com/lookaside/muse/download/?channel=muse&version=<release>&file=manifest.json).
ARG ENGINE_IMAGE
ARG MUSE_VERSION=1.4.25-R9361.1
# The fetch needs curl, which the engine image does not ship.
FROM ${ENGINE_IMAGE} AS muse-code
ARG MUSE_VERSION
USER root
RUN apt-get update && apt-get install -y --no-install-recommends curl ca-certificates
RUN set -eu; \
case "$(dpkg --print-architecture)" in \
amd64) f=muse-x86-linux; s=c1b728fb9732503c5e1869e3ad2f2c9bdb5b2638fb4cf398d6e2c46aa6d8f94a ;; \
arm64) f=muse-aarch64-linux; s=8fe089115ef137879fca46986d55edf18d5d3ab9cfdb6441c67e9d1807b4108a ;; \
esac; \
curl -fsSL --retry 5 --retry-all-errors -o /muse \
"https://lookaside.facebook.com/lookaside/muse/download/?channel=muse&version=${MUSE_VERSION}&file=${f}"; \
echo "$s /muse" | sha256sum -c -; chmod 0755 /muse
FROM ${ENGINE_IMAGE}
COPY --from=muse-code /muse /usr/local/bin/muse

The binary is about 450 MB. Build it from the engine image, and name it in the class:

# EngineClass with-muse-code, excerpt
spec:
engine:
image: <your registry>/crewlet-muse-code@sha256:<digest> # crewlet <commit>

Crewlet’s Kimi Code runner drives Kimi Code CLI 2.7.2, npm’s @moonshot-ai/kimi-code, the one release Crewlet supports: a box with an older release is refused by name before the run starts, and a newer one runs in sessions of its own alone, so a session continues only between boxes on 2.7.2 (Crewlet’s Kimi Code runner). Kimi Code is a Node.js program with packages of its own (ws, qrcode, chokidar), and the runner drives it through a Node.js script of its own, so the image needs node (22.19 or newer, Kimi’s own floor) and kimi on the PATH. The files live in images/kimi-code/ of this repository: a package.json naming the release exactly, a package-lock.json holding every package’s integrity, and this Dockerfile:

# The engine image you run, by digest.
ARG ENGINE_IMAGE
# Node.js and Kimi Code's package tree are fetched and checked here, with a
# curl and an xz the engine image does not ship: only node and the tree leave
# this stage.
FROM ${ENGINE_IMAGE} AS kimi
ARG TARGETARCH
# Crewlet's floor Node (NODE_FLOOR_VERSION and its SHA-256s in crewlet/crewlet's
# scripts/node-pin.env), reused rather than pinned again: Kimi Code's own floor
# is 22.19, and Crewlet's pin moves within 22 as releases land.
ARG NODE_VERSION=22.23.5
ARG NODE_SHA256_AMD64=cdeb8670a0c81f51b4dc4ac61919f9b1ad917b304bf8221eb939570663d240f8
ARG NODE_SHA256_ARM64=2babb9eb5264860d540849f4b064a6fbdebcdc323657d9d382ce23d313fd5e09
USER root
RUN apt-get update && apt-get install -y --no-install-recommends curl xz-utils
SHELL ["/bin/bash", "-euo", "pipefail", "-c"]
WORKDIR /fetch
RUN case "${TARGETARCH}" in \
amd64) platform=linux-x64 sha256=${NODE_SHA256_AMD64} ;; \
arm64) platform=linux-arm64 sha256=${NODE_SHA256_ARM64} ;; \
*) echo "no Node.js build for ${TARGETARCH}" >&2; exit 1 ;; \
esac; \
curl -fsSLo node.tar.xz "https://nodejs.org/dist/v${NODE_VERSION}/node-v${NODE_VERSION}-${platform}.tar.xz"; \
echo "${sha256} node.tar.xz" | sha256sum -c -; \
mkdir /opt/node; \
tar -xJf node.tar.xz -C /opt/node --strip-components=1
ENV PATH=/opt/node/bin:${PATH}
# npm ci installs exactly the lock, every package checked against its
# integrity. Kimi Code's postinstall only migrates a legacy Python kimi on the
# PATH, and the optional clipboard addon is unused headless.
WORKDIR /opt/kimi-code
COPY package.json package-lock.json ./
RUN npm ci --omit=optional --ignore-scripts --no-audit --no-fund; \
mkdir /out; \
cp /opt/node/bin/node /out/node; \
ln -s /opt/kimi-code/node_modules/@moonshot-ai/kimi-code/dist/main.mjs /out/kimi
FROM ${ENGINE_IMAGE}
COPY --from=kimi --chown=0:0 /opt/kimi-code /opt/kimi-code
COPY --from=kimi --chown=0:0 /out/ /usr/local/bin/

Build it with that directory as the context, from the engine image, or from another image of One image with a harness,

Terminal window
docker build --build-arg ENGINE_IMAGE=<your registry>/crewlet@sha256:<digest> \
-t <your registry>/crewlet-kimi-code:<crewlet commit> images/kimi-code

and check that Kimi Code runs in it as the engine’s pod runs it, as uid 10001 on a read-only root with an empty HOME:

Terminal window
image=<your registry>/crewlet-kimi-code:<crewlet commit>
docker run --rm --read-only --network none --user 10001:10001 --cap-drop ALL \
--tmpfs /tmp --tmpfs /home/crewlet:uid=10001,gid=10001 -e HOME=/home/crewlet \
--entrypoint sh "$image" -c 'node --version && kimi --version'

which prints v22.23.5 and 2.7.2. The obvious alternatives are wrong:

  • npm install -g @moonshot-ai/kimi-code pins Kimi Code alone: its packages float within their ranges, so two builds of one Dockerfile can differ, and nothing checks what was fetched. npm ci installs exactly the lock, each package checked against its integrity.
  • The optional clipboard addon, @mariozechner/clipboard, is a native library for copying to a desktop’s clipboard, which no seat’s run has: --omit=optional leaves it out. --ignore-scripts skips Kimi Code’s postinstall, which only migrates a Python kimi of the older line it finds on the PATH.
  • Debian’s own nodejs is older than Kimi Code’s floor, and would move with the distribution rather than with a pin. The pin is Crewlet’s floor Node, NODE_FLOOR_VERSION in Crewlet’s scripts/node-pin.env, with its SHA-256s, reused rather than pinned again.

Nothing under /opt/kimi-code or /usr/local/bin is written at run time: Kimi Code keeps its state under the home the engine gives each seat. Node.js and the package tree add about 180 MB to the image. Dependabot proposes each new Kimi Code release, and as Crewlet supports one release, that pull request is the trigger to re-measure it with Crewlet’s runner before it merges. Then name it in the class:

# EngineClass with-kimi-code, excerpt
spec:
engine:
image: <your registry>/crewlet-kimi-code@sha256:<digest> # crewlet <commit>

Crewlet’s Hermes runner drives Hermes Agent 0.23.3, the one release Crewlet supports: a box with an older release is refused by name before the run starts, and a newer one runs in sessions of its own alone (Crewlet’s Hermes Agent runner). Hermes is a Python application with its own interpreter, Node.js and tools, and PyPI’s hermes-agent is not current. Nous Research’s nousresearch/hermes-agent image holds a whole install under /opt/hermes, so the image takes it from there. The file lives in images/hermes/ of this repository:

# The engine image you run, by digest.
ARG ENGINE_IMAGE
# Nous Research's own image of the one release Crewlet's Hermes runner
# drives. Its /opt/hermes is a whole install, root-owned, with its own Python,
# Node.js and tools under /opt/hermes/tools, which runs offline on a
# read-only root as any user: an install.sh install instead serves only the
# account that ran it, preparing each other home's dependencies from the
# network at its first launch.
FROM nousresearch/hermes-agent:v0.23.3@sha256:3e9fe4c6ef36490f43aa0d0d80f9df64e9c92a576eee3042f1a97c8813c05355 AS hermes
FROM ${ENGINE_IMAGE}
USER root
# Hermes's bundled node links libatomic, which the engine image's Debian does
# not ship; the two images share a Debian release, so its package fits.
RUN apt-get update && apt-get install -y --no-install-recommends libatomic1 \
&& rm -rf /var/lib/apt/lists/*
COPY --from=hermes --chown=0:0 /opt/hermes /opt/hermes
# The install's virtual environment runs /usr/local/bin/python3, a link into
# /opt/hermes/tools, as are node, npm, npx, rg, ffmpeg and ffprobe there.
COPY --from=hermes --chown=0:0 /usr/local/bin/ /usr/local/bin/
RUN ln -s /opt/hermes/bin/hermes /usr/local/bin/hermes
USER crewlet

Build it from the engine image, or from another image of One image with a harness,

Terminal window
docker build --build-arg ENGINE_IMAGE=<your registry>/crewlet@sha256:<digest> \
-t <your registry>/crewlet-hermes:<crewlet commit> images/hermes

and check that Hermes runs in it as the engine’s pod runs it, as uid 10001 on a read-only root with an empty HOME and no network:

Terminal window
image=<your registry>/crewlet-hermes:<crewlet commit>
docker run --rm --read-only --network none --user 10001:10001 --cap-drop ALL \
--tmpfs /tmp:exec --tmpfs /home/crewlet:exec,uid=10001,gid=10001 -e HOME=/home/crewlet \
--entrypoint /usr/local/bin/hermes "$image" --version

which passes when its first line reads Hermes Agent v0.23.3. The obvious alternative is wrong: Hermes’s own scripts/install.sh, run as root, serves only the account that ran it. Under another account’s home, the first launch prepares that home’s own dependency environment, about 490 MB fetched from the network, and fails offline or on a read-only install.

Nothing under /opt/hermes is written at run time: Hermes keeps its state under the home the engine gives each seat. The install adds about 790 MB to the image. Dependabot proposes each new tag of Nous Research’s image, and as Crewlet supports one release, that pull request is the trigger to re-measure it with Crewlet’s runner before it merges. Then name it in the class:

# EngineClass with-hermes, excerpt
spec:
engine:
image: <your registry>/crewlet-hermes@sha256:<digest> # crewlet <commit>

Crewlet drives the Pi Coding Agent 1.6.0 or later, npm’s @earendil-works/pi-coding-agent, which runs on Node.js 22.19 or newer; its runner refuses a box with an older release by name. The engine image ships no Node.js, so this Dockerfile installs both in a stage of the node image that shares the engine image’s Debian release, and keeps only the node binary and the package tree:

# The engine image you run, by digest.
ARG ENGINE_IMAGE
# Node.js and pi are installed here, with the npm the engine image does not
# ship: only the node binary and the installed package tree leave this stage.
# npm checks each package against the integrity the registry records.
FROM node:26.13.1-trixie-slim@sha256:e6bedef217677b276c591795e169840edd9096dbf13f29df8ef8d1856b8820bc AS pi
ARG PI_CODING_AGENT_VERSION=1.6.0
RUN npm install --global --prefix /opt/pi "@earendil-works/pi-coding-agent@${PI_CODING_AGENT_VERSION}"
FROM ${ENGINE_IMAGE}
USER root
# node links libatomic, which the engine image's Debian does not ship; the
# engine image and the node stage share a Debian release, so its package fits.
RUN apt-get update && apt-get install -y --no-install-recommends libatomic1 \
&& rm -rf /var/lib/apt/lists/*
COPY --from=pi --chown=0:0 /usr/local/bin/node /usr/local/bin/node
COPY --from=pi --chown=0:0 /opt/pi /opt/pi
RUN ln -s /opt/pi/bin/pi /usr/local/bin/pi
USER crewlet

Pin the newest @earendil-works/pi-coding-agent release, 1.6.0 or later, and the newest Node.js LTS release by digest. The package of the older @mariozechner scope is a different, frozen program. Pi’s version and update checks are off on every call Crewlet makes (PI_OFFLINE), and the root filesystem is read-only anyway.

Build it from the engine image, or from another image of One image with a harness,

Terminal window
docker build --build-arg ENGINE_IMAGE=<your registry>/crewlet@sha256:<digest> \
-t <your registry>/crewlet-pi:<crewlet commit> .

then check that pi runs in it as the engine’s pod runs it, as uid 10001 on a read-only root, with an empty HOME, no capabilities and no network,

Terminal window
image=<your registry>/crewlet-pi:<crewlet commit>
docker run --rm --read-only --network none --user 10001:10001 --cap-drop ALL \
--tmpfs /tmp:exec --tmpfs /home/crewlet:exec,uid=10001,gid=10001 -e HOME=/home/crewlet \
-e PI_OFFLINE=1 --entrypoint /usr/local/bin/pi "$image" --version

which passes when it prints 1.6.0. A missing shared library shows here as node’s error while loading shared libraries: libatomic.so.1 is the one the engine image lacks. Then name it in the class:

# EngineClass with-pi, excerpt
spec:
engine:
image: <your registry>/crewlet-pi@sha256:<digest> # crewlet <commit>

Cursor Agent ships as one package per platform, with its own node and rg, and Crewlet’s Cursor Agent runner runs exactly 2026.11.22-e9042b2: a box with an older release is refused, and a newer one runs but never continues a session, so pin that release. It is never installed from npm. Cursor’s install script names each release’s package but no checksum, so the recipe pins the SHA-256 of each platform’s package as downloaded; Dependabot cannot bump it, and a new release is measured before its pin moves:

# The engine image you run, by digest, and Cursor Agent 2026.11.22-e9042b2,
# the release the runner runs, with its package's SHA-256 per architecture.
ARG ENGINE_IMAGE
ARG CURSOR_VERSION=2026.11.22-e9042b2
# The fetch needs curl, which the engine image does not ship.
FROM ${ENGINE_IMAGE} AS cursor-agent
ARG CURSOR_VERSION
USER root
RUN apt-get update && apt-get install -y --no-install-recommends curl ca-certificates
RUN set -eu; \
case "$(dpkg --print-architecture)" in \
amd64) a=x64; s=7663b1c5d1b56e095ef8e23bef38d66df6cfd665c4873470214e0e411f0f97b3 ;; \
arm64) a=arm64; s=7b7dd0020fb9a2a9e1e7e3f39e2f9f512d1dd9577174ecda8aa82ac31dbc9565 ;; \
esac; \
curl -fsSL --retry 5 --retry-all-errors -o /cursor.tgz \
"https://downloads.cursor.com/lab/${CURSOR_VERSION}/linux/${a}/agent-cli-package.tar.gz"; \
echo "$s /cursor.tgz" | sha256sum -c -; \
mkdir -p /opt/cursor-agent && tar -xzf /cursor.tgz -C /opt/cursor-agent --strip-components=1
# The package stays whole: its launcher runs the node beside it, which the
# runner's helper runs on too, and PATH reaches it by a symlink.
FROM ${ENGINE_IMAGE}
COPY --from=cursor-agent /opt/cursor-agent /opt/cursor-agent
USER root
RUN ln -s /opt/cursor-agent/cursor-agent /usr/local/bin/cursor-agent
USER crewlet

The package is about 540 MB unpacked. Build it from the engine image, and name it in the class:

# EngineClass with-cursor-agent, excerpt
spec:
engine:
image: <your registry>/crewlet-cursor-agent@sha256:<digest> # crewlet <commit>

A CursorAgent provider signs in with its Cursor login or a Cursor account’s key (auth.mode: APIKey, CURSOR_API_KEY). webTools: Denied is refused: Cursor has no setting that turns its web tools off (Crewlet’s Cursor Agent runner).

A subscription login is made at a terminal, by crewlet llm login or the harness’s own command, and a pod has none. auth therefore takes the login from a Secret, in one of two forms; takes a metered key instead; for the three harnesses that read their model provider’s key from their environment, takes none and signs in with that key in env; or, for a cloud provider or a gateway, signs in with env alone:

Sign-inWhat the Secret holdsUse it when
auth.tokenSecretRefa long-lived headless token the harness mints, such as the CLAUDE_CODE_OAUTH_TOKEN of claude setup-tokenthe harness is Claude Code, the one harness whose Crewlet profile names a token variable: it never needs refreshing
auth.credentialBundleSecretRefa bundle of the harness’s login (its credential files, or for OpenCode the document opencode auth export --standalone prints), from crewlet llm export <key> on a machine where you logged inany harness: none but Claude Code mints a token Crewlet hands on (for QwenCode, its Qwen subscription login, not measured against Qwen’s service)
auth.mode: APIKey with auth.apiKeySecretRefthe harness’s metered API keythe harness’s Crewlet profile names a key variable (below)
env, with auth.mode: Subscriptionthe key of the model provider the harness runs on, in the variable the harness reads for it (OPENROUTER_API_KEY, ANTHROPIC_API_KEY, NOUS_API_KEY, …)the harness is Hermes, Pi or OpenCode: with its model provider’s key in its environment, it needs no login
env, with auth.mode: Envwhat signs the harness in from its environment: for Claude Code a gateway’s ANTHROPIC_AUTH_TOKEN, or a cloud provider’s switch and that provider’s credentials; for Gemini CLI Vertex AI’s GOOGLE_GENAI_USE_VERTEXAI with its project and key; for Copilot a GitHub token in GH_TOKEN or GITHUB_TOKEN; for Hermes, Pi and OpenCode their model provider’s keythe harness reaches its model through a cloud provider or a gateway rather than on the vendor’s own subscription or key (below)

What each harness takes, in the engine the operator is tested against, Crewlet’s main (Crewlet’s profiles name the variables; a test holds the API’s rules and this table to that engine’s own verdict on every harness and every sign-in, so neither can fall behind it):

harnesstokenSecretRefauth.mode: APIKey fillsA key in envauth.mode: Env signs in withcredentialBundleSecretRefRuns a seat’s executor
ClaudeCodeCLAUDE_CODE_OAUTH_TOKENANTHROPIC_API_KEYnoANTHROPIC_AUTH_TOKEN, CLAUDE_CODE_USE_BEDROCK, CLAUDE_CODE_USE_VERTEX, CLAUDE_CODE_USE_FOUNDRY, CLAUDE_CODE_USE_ANTHROPIC_AWS, CLAUDE_CODE_USE_ANTHROPIC_GOOGLE_CLOUD, CLAUDE_CODE_USE_MANTLE or CLAUDE_CODE_USE_GATEWAY in envyesyes, on any sign-in
CodexnoCODEX_API_KEYnonoyesyes, on any sign-in
GeminiCLInoGEMINI_API_KEYnoGOOGLE_GENAI_USE_VERTEXAI in env, for Vertex AIyesyes, on any sign-in
QwenCodenoOPENAI_API_KEY, with --auth-type openai: DashScope’s key by default, or another OpenAI-compatible service’s with its OPENAI_BASE_URL in envnonoyes: its Qwen subscription login, .qwen/subscription_credentials.json, run with --auth-type qwen-subscription, not measured against Qwen’s serviceyes, on any sign-in
CursorAgentnoCURSOR_API_KEY, a Cursor account’s API keynonoyesyes, on any sign-in
CopilotnoCOPILOT_GITHUB_TOKEN, the first of the three variables it reads, ahead of GH_TOKEN and GITHUB_TOKENnoGH_TOKEN or GITHUB_TOKEN in envyesyes, on any sign-in
GroknoXAI_API_KEYnonoyesyes, on any sign-in
MuseCodenoMETA_API_KEY, a metered Model API keynonoyesyes, on any sign-in
KimiCodenoKIMI_MODEL_API_KEY, a Moonshot API key, beside the provider’s model in KIMI_MODEL_NAMEnonoyesyes, on any sign-in
OpenCodenonoyesa key in envyesyes, on any sign-in
Hermesnonoyesa key in envyesyes, on any sign-in
Pinonoyesa key in envyesyes, on any sign-in

A provider names one of the two logins: given both, which login the harness acts on would be its own choice between its environment and its files, so the API server refuses the pair. Crewlet hands a token to a harness only through the variable its profile names, and the engine refuses a token for a harness whose profile names none, since it would reach nothing, so the API server refuses tokenSecretRef on any harness but ClaudeCode first. A Subscription provider that names neither is refused, with one exception:

  • Hermes, Pi and OpenCode on a key in env. Each fronts many model providers and reads each provider’s key from that provider’s own variable, so Crewlet’s profile for it names no key variable and marks it as signing in through its environment: Crewlet passes the provider’s env to it untouched, which is the route its profile documents for a metered key. Crewlet counts an entry as a sign-in only by its name (below).
  • Every other harness keeps to a token, a bundle or a key. A harness whose profile names a key variable takes its key with auth.mode: APIKey; the engine refuses that variable in env (below), and a key in env under any other name is one the harness does not read.
  • QwenCode keeps to its key, or to its Qwen subscription login (Qwen Code 0.28’s paid Plus or Pro login) in a bundle. Crewlet’s profile reads that login from Qwen Code’s own documentation, not measured against Qwen’s service. Its profile names no token variable and none that signs it in from env, so the API server refuses a QwenCode provider under Subscription without a bundle.

env may never set the harness’s own token or key variable, the ones the table names (ANTHROPIC_API_KEY for ClaudeCode, CURSOR_API_KEY for CursorAgent, and so on), in any auth mode: auth owns them, and whether a value in env reached the harness would turn on the mode and on what else holds a credential, so the engine refuses the document and the API server refuses the provider first. Another harness’s variable is no such conflict: ANTHROPIC_API_KEY is OpenCode’s Anthropic key. Nor may env set ClaudeCode’s ANTHROPIC_AUTH_TOKEN or a CLAUDE_CODE_USE_* switch under any mode but Env (A cloud provider or a gateway), or KimiCode’s KIMI_MODEL_NAME under any mode: KimiCode reads its key only beside a model there, which Crewlet sets from model under APIKey, so a value in env would swap the provider’s model and its model provider.

Nor may env set a variable the engine sets on every call to keep the harness inside its seat’s own home and the call’s working directory: the home, the XDG directories and the temporary directory of every harness, and the harness’s own configuration directory (and, for Codex, the directory of its state database), or, for OpenCode, its configuration directory and OPENCODE_CONFIG_PROJECT_DISABLE, the switch that keeps OpenCode from reading project configuration from the directories above a seat’s call, and, for ClaudeCode, CLAUDE_CODE_DISABLE_CLAUDE_MDS and CLAUDE_CODE_DISABLE_AUTO_MEMORY, the switches that keep every CLAUDE.md above a seat’s call, and Claude Code’s auto-memory, out of it. env is layered over them, so a value there would replace that isolation for every seat on the provider: the engine refuses the document, and the API server refuses the provider first. Another harness’s variable is no conflict here either: CODEX_HOME means nothing to OpenCode. A test holds the API’s rule, its message and this table to the engine’s lists:

env may not setFor
HOME, XDG_CONFIG_HOME, XDG_DATA_HOME, XDG_STATE_HOME, XDG_CACHE_HOME, TMPDIRevery harness
CLAUDE_CONFIG_DIR, CLAUDE_CODE_DISABLE_CLAUDE_MDS, CLAUDE_CODE_DISABLE_AUTO_MEMORYClaudeCode
CODEX_HOME, CODEX_SQLITE_HOMECodex
OPENCODE_CONFIG_DIR, OPENCODE_CONFIG_PROJECT_DISABLEOpenCode
CURSOR_CONFIG_DIRCursorAgent
KIMI_CODE_HOMEKimiCode
HERMES_HOMEHermes
PI_CODING_AGENT_DIRPi

Nor may env set TZ. The engine hands every harness it starts its own zone, the TZ of its pod where that names a zone it knows and UTC otherwise, and reads a limit’s reset in it when the harness names its time without one, so a zone of the provider’s own would be replaced, or would have the reset read in the wrong zone: the engine refuses the document, and the API server refuses the provider first. Set TZ on the engine instead, in the class’s podTemplate or the Company’s runtime.env, to move every harness’s zone.

Under auth.mode: Subscription, env may not set a variable the engine sets there to sign the harness in with the login its seat’s home holds either: GeminiCLI’s GOOGLE_GENAI_USE_GCA, which the engine sets to true, since Gemini CLI picks its sign-in from its environment and a login alone selects nothing. The engine sets it after env, so a value there would be replaced on every call: it refuses the document, and the API server refuses the provider first. Under APIKey the engine sets nothing there, and the variable is yours.

apiVersion: crewlet.ai/v1alpha1
kind: LLMProvider
metadata:
name: hermes
spec:
companyRef: {name: acme}
harness: Hermes
model: anthropic/claude-sonnet-5 # an OpenRouter model id: OPENROUTER_API_KEY selects OpenRouter
auth:
mode: Subscription
env:
- name: OPENROUTER_API_KEY
valueFrom:
secretKeyRef: {name: openrouter, key: apiKey}

OpenCode reads its model as <provider>/<model>, splitting it at the first slash: anthropic/claude-sonnet-5 runs Anthropic’s model on ANTHROPIC_API_KEY, and openrouter/anthropic/claude-sonnet-5 runs it through OpenRouter on OPENROUTER_API_KEY (opencode models --standalone lists the providers it knows). A model with no slash, or with nothing but white space before or after it, names no provider or no model, and every call the provider made would fail inside OpenCode, which OpenCode 2 refuses with Invalid model reference, so the engine refuses it and the API server refuses it first, at spec.model.

For Claude Code, on a headless token:

Terminal window
claude setup-token # on your machine: prints the token
kubectl create secret generic claude-subscription -n acme --from-literal=oauthToken=...
apiVersion: crewlet.ai/v1alpha1
kind: LLMProvider
metadata:
name: claude-code
spec:
companyRef: {name: acme}
harness: ClaudeCode
model: sonnet
auth:
tokenSecretRef: {name: claude-subscription, key: oauthToken}

The login, and the homes the harness keeps for each seat, live on the data volume, under /var/lib/crewlet/llm-harness/<loginName>, so a restarted data pod keeps them; a seat pod keeps them on a scratch volume it loses at every start (see Seat pools). That matters for a bundle: the engine restores one, when it starts and at every revision it applies, only into a login there that is empty or that was installed before the bundle’s own login, which the bundle’s install record says. A refresh keeps its login’s record, so the login the running engine refreshed wins over a bundle of the same login in the Secret, whose refresh token the vendor may have retired since; a bundle crewlet llm export wrote after a new login replaces it the next time the engine starts or applies a revision, and moving the provider to another loginName restores one at once (Rotating a credential). Nor does it restore one into a login crewlet llm logout emptied (A seat on a harness runs signed out). A bundle restored over a newer login is how a vendor that rotates refresh tokens logs a deployment out, which is why a token is the better of the two wherever the harness mints one.

Providers that set the same loginName and drive the same harness share one login and its seats’ homes, which is how several models run off one subscription. Each harness keeps its files in a directory of its own under the login (/var/lib/crewlet/llm-harness/<loginName>/<harness>, such as claude-code or codex), so a provider of another harness with that loginName shares the directory and nothing in it (Per-phase models).

Moving a provider to another harness is an ordinary change, applied with no restart: the new harness starts signed out in a login of its own beside the old one’s, which stays there for a move back. Sign the new harness in. A bundle belongs to the harness it was exported from, so a provider’s auth.credentialBundleSecretRef still holds the old harness’s files after the move, and the engine refuses to restore it into the new harness’s empty login, logging harness_bundle_restore_failed, until the Secret holds a bundle exported from the new harness (An entry moved to another harness).

OpenCode 2 keeps its logins in a database of its own rather than in files, so an OpenCode bundle holds one file: the document opencode auth export --standalone printed. The engine keeps it as the login of record (opencode/credentials/exported-credentials under /var/lib/crewlet/llm-harness/<loginName>), imports it into an empty database in a seat’s home before the seat’s calls, and exports it back when OpenCode refreshed it (Token refresh across seats).

Make it on a machine with OpenCode 2, npm’s @opencode/cli: crewlet llm login <key> runs OpenCode’s own opencode auth login --standalone in a login home of the entry’s own, or sign in with OpenCode yourself and adopt that login with crewlet llm login <key> -from-host, which reads it through your OpenCode’s export (Broker the vendor’s own login); then crewlet llm export <key>. The export prints every login the OpenCode it runs in holds, keys stored with opencode auth login included, so a bundle adopted from your own home carries every provider you signed in to there: adopt from a home holding only the login the provider should run on (-from-host -home <dir>), or sign in with crewlet llm login, whose login home holds the entry’s login alone.

A login OpenCode 1.x made (~/.local/share/opencode/auth.json) is not read: a bundle holding one is refused when the engine restores it, which it logs as harness_bundle_restore_failed, and the provider runs signed out, so export it again from OpenCode 2. A bundle signs in a seat’s executor run too, whose box is seeded with the login (Where a seat’s executor runs).

This is the sign-in of a Hermes, Pi or OpenCode provider in auth.mode: Subscription with neither a token nor a bundle, or in auth.mode: Env: a key in its env. Crewlet counts an entry as that sign-in only when its name says it holds a credential: one of its parts between underscores is, in any case, KEY, KEYS, APIKEY, ACCESSKEY, SECRETKEY, TOKEN, SECRET, PASSWORD, PASSWD, CREDENTIAL, CREDENTIALS, AUTH, OAUTH or PAT. So OPENROUTER_API_KEY and GH_TOKEN sign the harness in, and HTTPS_PROXY or HERMES_MAX_TOKENS (a count of model tokens) do not; the API server refuses such a provider when its env holds no such name, since crewlet llm list would report it signed in to nothing. Write its auth.mode: Subscription explicitly, as auth may not be empty. A key in env is a ${NAME} the engine resolves from its encrypted store, so it never refreshes and runs on a seat pod too.

Name only the sign-in you mean the harness to use. Beside a credential bundle a key in env is a second sign-in, which the harness settles by its own rules rather than by the order you wrote them in. Hermes, for one, loads its home’s .env over its environment, so a variable the bundle’s .env also sets takes the file’s value, while a model provider’s key in env wins over an OAuth login in the bundle’s auth.json, so Hermes runs on the metered key and the subscription goes unused.

auth.mode: APIKey gives the harness the key of auth.apiKeySecretRef instead, billing the metered account: Claude Code on an Anthropic API key, Codex on an OpenAI one. Crewlet hands the key over in the variable the harness’s profile names, and in Crewlet’s main nine name one (the table above); for the others the key would reach nothing, so the engine refuses the mode for them and the API server refuses it first. Hermes, Pi and OpenCode take their model provider’s key in env instead. CursorAgent’s key is a Cursor account’s API key, from the Cursor dashboard, not a model provider’s.

apiVersion: crewlet.ai/v1alpha1
kind: LLMProvider
metadata:
name: claude-metered
spec:
companyRef: {name: acme}
harness: ClaudeCode
model: claude-sonnet-5
auth:
mode: APIKey
apiKeySecretRef: {name: anthropic, key: apiKey}

The key is one key: a harness holds one sign-in and rotates nothing, so a second key is a second provider, later in a seat’s chain, which a seat falls back to when the first is out of its limits. The API server refuses apiKeySecretRef without auth.mode: APIKey, and the mode without it: Crewlet would read the harness’s key variable from its own secret store and the engine’s environment then, which hold no key this provider names. A gateway or proxy in front of the vendor is a variable the harness reads from its environment, which goes in env from a Secret, such as Claude Code’s ANTHROPIC_BASE_URL, and reaches every phase of the provider, a seat’s executor run included. Such a variable is the provider’s route: an address, a host:port or a name, never one with a key in it, which Crewlet refuses, naming the variable. A seat’s carried session continues only under the provider and route it ran under, unless its harness resumes on its launch’s route (Crewlet’s rule). A gateway that takes a token of its own in place of the vendor’s key signs the harness in under auth.mode: Env instead (below).

auth.mode: Env signs the harness in with its env and nothing else: a cloud provider’s switch and that provider’s credentials, such as Claude Code on Amazon Bedrock, Google Vertex AI or Microsoft Foundry, or a gateway’s address and the token it issued you. Crewlet hands the harness neither its token variable nor its key variable under it, and seeds no login into the homes it runs in, so the cloud provider or the gateway is the harness’s one sign-in: under Subscription or APIKey the mode’s own token or key would reach the harness beside it, and the harness would pick between the two by rules of its own. crewlet llm list reports a provider under it signed in with env, whichever harness reads the env.

apiVersion: crewlet.ai/v1alpha1
kind: LLMProvider
metadata:
name: claude-bedrock
spec:
companyRef: {name: acme}
harness: ClaudeCode
model: sonnet
auth:
mode: Env
env:
- name: CLAUDE_CODE_USE_BEDROCK
valueFrom:
secretKeyRef: {name: claude-bedrock, key: useBedrock} # holds 1
- name: AWS_REGION
valueFrom:
secretKeyRef: {name: claude-bedrock, key: region}
- name: AWS_BEARER_TOKEN_BEDROCK
valueFrom:
secretKeyRef: {name: claude-bedrock, key: bearerToken}
---
apiVersion: crewlet.ai/v1alpha1
kind: LLMProvider
metadata:
name: claude-gateway
spec:
companyRef: {name: acme}
harness: ClaudeCode
model: sonnet
auth:
mode: Env
env:
- name: ANTHROPIC_BASE_URL
valueFrom:
secretKeyRef: {name: llm-gateway, key: baseURL}
- name: ANTHROPIC_AUTH_TOKEN
valueFrom:
secretKeyRef: {name: llm-gateway, key: token}

Every value of env comes from a Secret, the cloud switch’s 1 included, and reaches every phase of the provider, a seat’s executor run too, which it signs in as it signs the provider’s other phases in (Where a seat’s executor runs). The API server holds the provider to what signs its harness in from env, as the engine does (the table above):

  • ClaudeCode needs one of the names its Crewlet profile lists as signing it in from its environment: ANTHROPIC_AUTH_TOKEN, or a platform switch (CLAUDE_CODE_USE_BEDROCK, _VERTEX, _FOUNDRY, _ANTHROPIC_AWS, _ANTHROPIC_GOOGLE_CLOUD, _MANTLE or _GATEWAY), with what the gateway or the cloud provider reads beside it. Each is refused in env under Subscription and APIKey, which hand Claude Code a token or a key beside it.
  • Copilot needs a GitHub token in GH_TOKEN or GITHUB_TOKEN, the names its profile lists. Both outrank the login Copilot keeps, so they are refused in env under Subscription and APIKey; under APIKey its key is COPILOT_GITHUB_TOKEN.
  • Hermes, Pi and OpenCode need their model provider’s key under a name Crewlet reads as a credential (below), as under Subscription, with no login of theirs beside it.
  • Every other harness is refused the mode: its Crewlet profile names nothing that signs it in from its environment, so it would sign in to nothing.

tokenSecretRef and credentialBundleSecretRef are refused with the mode, since no token or login reaches the harness, and so is apiKeySecretRef, which APIKey alone reads.

In every phase of a seat the harness drives its own loop: it asks the model, calls the seat’s tools, which reach it as the MCP tools of one server, and asks again, until the model stops or the engine ends the run. Every call goes through the engine’s gates on its way to the tool, so a seat’s tools are the same in every phase. Where the loop runs is the phase’s to decide, never the provider’s, and there is no setting for it:

  • Every phase but the executor (the reviewer, a delegated worker, the summariser) runs the harness in the engine’s pod that holds the seat, a data pod or a seat pod alike, turn by turn, with the harness’s own shell and editor denied, so the seat’s tools are the only ones it has. The harness reaches them through crewlet mcp-relay, the engine’s own binary, which it starts as a stdio MCP server and which carries its calls over a unix socket in a directory the engine makes for itself under the pod’s /tmp, open to the engine’s user alone: no listener, no token and no network.
  • The seat’s executor is the harness’s own run, detached from the turn, in a box: the vendor’s whole harness, with its own shell and editor, the seat’s tools reached back over the engine’s tool bridge. The turn waits until the run reports, and resumes then, on whichever engine pod holds the seat.

starts a run

the seat's tools, over MCP

starts a detached run

the seat's tools, on loopback, witha token signed for the run

Enginethe seat's turn

Harness, every other phasethe seat's toolsits only tools

crewlet mcp-relaya unix socket under /tmp

Harness, the executorits own loop, shell and editor,in a box on the sandboxes volume

/mcp/ tool bridgethe pod's own listener

The engine pod that holds the seat

The provider it runs on. Crewlet runs a seat’s executor on every harness the API offers, each having an in-box runner. Each launch walks the seat’s executor chain, spec.llm.default, else the Company’s default-fleet once it has a member, else the head of the Company’s spec.llm.order, and takes the first provider that is not sitting out its spent plan on the node (on a fleet, the member with room that Crewlet’s balancer picks, so the operator’s verdicts read every member). A run that hits its plan’s limit is not moved to the next provider, but the next launch skips the spent one.

Where it runs. Every run is a process tree of the engine pod that holds the seat, a data pod or a seat pod alike, in a box directory on the pod’s sandboxes volume: Crewlet’s direct cell, which the operator writes as the company document’s providers.sandbox for every Company. There is no setting for it: Crewlet’s container cell, which starts a container per box, needs a container runtime no engine pod has. The run’s harness is the engine image’s (The image needs the harness); it signs in on any sign-in, the box of a Subscription provider seeded with its login, which writes a refreshed one back, and an APIKey or Env one’s with none; and a restart of its pod ends the run, which Crewlet carries on in a fresh one. The Company’s spec.sandbox, which the API refuses empty, only tunes the boxes: how long a pod may be gone before its runs are carried on elsewhere (hostGraceSeconds), how long a box waits paused on a person’s answer (defaultPauseTTLSeconds), a round cap (defaultMaxTurns), the commits’ credit (commitAttribution) and the setup every box is given (setup). ADR-0008 records why, and what was ruled out: Crewlet’s container cell, a setting with one value to choose, and a class setting that forbids runs on the pod.

A Codex run needs Codex CLI 0.171.0 or later in the engine image. Crewlet’s runner refuses an older release by name before the run starts, and runs a newer one with each run in a fresh session, since a session continues only between boxes on 0.171.0 (Crewlet’s Codex). crewlet llm doctor holds the engine image’s codex to the same rule. A Copilot run needs GitHub Copilot CLI 1.0.114 or later in the engine image: Crewlet’s runner refuses an older release by name before the run starts (Crewlet’s Copilot runner). A Kimi Code run needs Kimi Code CLI 2.7.2, npm’s @moonshot-ai/kimi-code, the one release Crewlet supports, and the node it runs on (22.19 or newer, Kimi’s own floor) on the PATH beside it, in the engine image: Crewlet’s runner drives it through a Node.js script of its own and refuses an older release, or a box with no node, by name before the run starts. A newer release runs, in sessions of its own alone, so a session continues only between boxes on 2.7.2 (Crewlet’s Kimi Code runner). A Hermes run needs Hermes Agent 0.23.3, the one release Crewlet supports, in the engine image: Crewlet’s runner refuses an older release by name before the run starts, and a newer one runs in sessions of its own alone (Crewlet’s Hermes Agent runner). A Grok run needs Grok Build 1.0.92, xAI’s own binary, in the engine image: Crewlet’s runner refuses an older release by name before the run starts, and a newer one runs in sessions of its own alone (Crewlet’s Grok Build runner). An OpenCode run needs OpenCode 2.3.2, the @opencode/cli package (opencode --version prints opencode v2.3.2): Crewlet’s runner ends a run at once in a box that has OpenCode 1.x, npm’s opencode-ai, with this box runs OpenCode 1.…; the opencode runner drives OpenCode 2 (the @opencode/cli package) in the run’s report, and in one with an older 2.x with this box runs OpenCode 2.…; the opencode runner supports OpenCode 2.3.2 (Crewlet’s OpenCode runner).

A run is a process of the engine pod, running as the engine’s user with the harness’s shell: it reads and writes what that user can on the pod, a data pod’s data volume and the engine’s secret store included. What confines it is the pod’s own boundary, the restricted security context and the network policy the class sets (Exposure), and nothing between it and the engine. Place agent seats in a seat pool to keep their runs off the data volume. Its box is a directory on the pod’s sandboxes volume, an emptyDir the class bounds (data.sandboxSizeLimit for the data pods, and seatPools.defaults.sandboxSizeLimit for every seat pod): a box past it has the kubelet evict the pod. Crewlet points the run’s temporary directories into its box and confines it to nothing else, so a command that names /tmp or the engine’s home outright writes to the pod’s scratch volume (scratchSizeLimit), which evicts the pod the same way, and one that names a path under /var/lib/crewlet on a data pod writes to its data volume (Box storage). Whatever the run’s shell runs (git, a compiler, a package manager) is the image’s, or what the run installs into its box’s home. A run is detached from the engine’s process, but not from its container: a restart of the engine’s container, or a pod replaced by a rollout, a drain or an eviction, ends it, and Crewlet carries its round on in a fresh run, in the same box where the pod kept it and in a fresh one from what the run pushed where the pod’s sandboxes volume went with it, continuing the session Crewlet saved as the run worked or as its pod drained, where a save landed, at most twice a round (When a Direct run’s pod stops).

A box’s environment is the pod’s PATH, locale, TERM, TZ, TLS trust and proxy variables, the box’s home and temporary directories, and the run’s own: the seat’s identity, the Company’s and the Seat’s setup steps’ env, the Seat’s spec.sandbox.env, and the provider’s sign-in and its whole env beneath them. Lowest of all, where an Integration supplies any for a lane the seat has on, are the non-secret settings its box CLI reads and, beneath those, the variable naming each file it writes into the box for that CLI, set to the file’s path under the box’s home: one under a name the harness signs in with never reaches the box, and none counts toward the run’s sign-in. Every run is also handed the engine’s time zone as TZ, the zone Crewlet reads a limit’s reset in when the harness names its time without one: the TZ the class’s podTemplate or the Company’s runtime.env sets on the pod where it names a zone the engine knows, and UTC otherwise, never the image’s local time. The provider’s env reaches an executor run as it reaches the provider’s other phases: a gateway’s ANTHROPIC_BASE_URL, and under auth.mode: Env the ANTHROPIC_AUTH_TOKEN it takes, or a Bedrock or Vertex switch and its region. What each box carries of a credential is in What a coding box carries.

The seat’s tools reach a run through the engine’s tool bridge, at /mcp/, on its own engine pod’s listener on loopback: a data pod’s public listener, or a seat pod’s port 8080, which serves the bridge to loopback alone. It needs nothing more, in any pool, with or without a public address.

While a node holds the seat, Ready is True, LeaseHeld, and its message names the provider and the harness the seat’s executor runs on, the pod its box is on, and the providers a launch falls back to.

A seat whose own spec.sandbox signs Claude Code in, with CLAUDE_CODE_OAUTH_TOKEN, ANTHROPIC_API_KEY, ANTHROPIC_AUTH_TOKEN or a platform switch (CLAUDE_CODE_USE_BEDROCK and the rest above) in its env or its setup steps’ or the Company’s setup steps’ env, runs its Claude Code executor on that sign-in alone, with the provider’s model: Crewlet hands the run none of the provider’s sign-in then, its token, its key or a sign-in in its env, since Claude Code ranks its sign-ins by name, and a provider’s key beside the seat’s plan token would win. The rest of the provider’s env, a gateway’s address among it, still reaches the run. A seat that signs Copilot in, with COPILOT_GITHUB_TOKEN, GH_TOKEN or GITHUB_TOKEN from a Secret, runs its Copilot executor the same way. A GitHub Integration’s GITHUB_TOKEN, which the engine gives a box for the agent’s git and gh, never signs Copilot in: the engine withholds it from a Copilot box, and the agent’s tools read the token from the Integration’s file instead.

Its bounds. Two fields bound a provider’s harness in the engine’s pod, in every phase but the executor’s, and since a run of the harness asks the model many times and calls the seat’s tools in between, neither is a bound on one request:

  • timeoutSeconds bounds one stretch of the harness’s model work with no tool call in flight, from its launch or the answer to its last tool call to its next call or its end (600 seconds unset). A tool call stops the clock, however long a delegation or a slow tool server takes, and the next stretch starts afresh. A stretch past it ends the run with a timeout, which is retryable: a seat’s chain moves on to its next provider.
  • maxConcurrent bounds the provider’s live harness processes in each pod (4 unset). One process lives for a whole run and holds its place through the run’s tool calls, so it is also how many seats’ runs the provider has going at once in the pod, and a run past it waits. A model call made on the same provider from inside a run’s tool call, such as a delegated worker’s, borrows that run’s place: waiting for one of its own could leave every place held by runs that are each waiting on such a call.

effort sets how hard the provider’s model reasons, in the harness’s own levels, and renders as the entry’s effort; unset runs the harness’s default. The API admits each harness’s own levels: low, medium, high, xhigh or max on ClaudeCode; none, minimal, low, medium, high, xhigh, max, ultra or persistent on Codex; none, minimal, low, medium, high, xhigh or max on OpenCode, Copilot and Grok; those and ultra on Hermes; minimal to max on MuseCode; low to max on KimiCode; and off, minimal, low, medium, high, xhigh or max on Pi. GeminiCLI, QwenCode and CursorAgent have no setting Crewlet passes, and refuse it. Crewlet also refuses a level a Claude model runs without, such as any level on claude-haiku-4-5, and reports it on the provider. Crewlet’s models guide says how each harness is handed it.

An executor run is bounded by neither: it is never stopped on a clock, and its rounds are uncapped unless the Seat’s spec.sandbox.maxTurns, else the Company’s spec.sandbox.defaultMaxTurns, sets a cap, which becomes the harness’s own turn cap. A cap is at most 1000: a capped run keeps a record of every request in its box (Gemini CLI’s about 130 KB a request), so work that needs more is split into smaller items, or its Seat’s cap is lifted with 0. A seat holds up to two executor runs at once, each for a different conversation, unless its spec.sandbox.maxConcurrentRuns names another count. A token ceiling (tokenBudget) on the Seat or the Company below turn_engine.executor_min_budget_tokens (65000 unless spec.engineConfig sets it) leaves no room for any launch: Crewlet’s dry run refuses it, reported Invalid on the object.

Every commit an executor run makes as itself credits Crewlet as co-author (Co-authored-by: Crewlet <[email protected]>), which GitHub lists among the commit’s participants beside the seat, and names what it was made for: Crewlet-Seat: the seat’s handle, Crewlet-Run: the run’s turn and Crewlet-Work-Item: the item its turn is charged to, or none. Git adds them through a hook the run’s box is given, and a person’s commit the run amends, cherry-picks or rebases is left alone. The Company’s spec.sandbox.commitAttribution: false turns all four off; see Crewlet’s Commit attribution.

A seat’s executor run is given the values of its environment and files that hold something, and starts without every one that resolves to nothing, as refusing it would fail the seat’s turn: a value read from a Secret that holds an empty value, and one whose Secret or key does not exist under a key its block lists as one the run can do without. The list says which absences are expected: Crewlet leaves those out quietly, and logs every other one as a gap of the run (sandbox_env_unresolved). A value is listed by its key: in spec.sandbox.optionalKeys, a variable of spec.sandbox.env; in a setup step’s optionalKeys, the Company’s or the Seat’s, a variable of the step’s env or a path of its files.

spec: # Company nimbus
sandbox:
setup:
- name: npm-registry
files:
- path: .npmrc
valueFrom:
secretKeyRef: {name: nimbus-npm, key: npmrc}
optionalKeys: [.npmrc]

Under a listed key, such a value is left out: the variable is not set, or the file not written, and the run starts without it. A missing Secret or key there holds nothing back, and the object that gives the value names it in its ResolvedRefs=True message, with the list that lets it go: the Seat for its own spec.sandbox and steps, and the Company, which has no ResolvedRefs, in its SecretsSynced message for its own steps. Once the Secret is back, the operator pushes its value and applies the document again. When it is deleted, the operator, under the Enforce policy, takes the value out of the engine’s secret store and has the engine read the store again, by applying the next document or, while that one is held, by activating the revision the engine runs again, so no run starts with a deleted Secret’s value. A revision the engine runs that reads the key as required, as one from before the key was listed does, or whose reading the operator does not know, keeps the value instead, until no engine pod runs, or would start on, such a revision, the new revision activating once with it and then again without it. A pod that refused the next document keeps running the revision before it, which keeps the value while it does; only a data pod starts on that revision again if it restarts, while a seat pod starts on nothing and tries the fleet’s revision again, and a pod that runs no company and would start on none holds nothing back. A pod whose revision the operator cannot learn keeps every value, as a data pod does while it is down or cut off from the engine’s fleet (Applying a document). A Secret key also read where it is required holds the document instead, and keeps its value in a revision the engine runs that requires it too until the next one applies. The layers of a run’s environment are laid in order, the Company’s steps, then the Seat’s, then spec.sandbox.env, a later one winning a variable, and the list beside the value that wins is the one that counts for it; a step’s files are its own. A provisioned value an Integration mints for the seat is never left out quietly, whatever the list says: until it is minted, each run starts without it, and Crewlet logs it as awaited (sandbox_env_unresolved, at info). One nothing mints, while no Integration of the company has provisioning: Engine, is left out (Crewlet’s Credentials and the run environment).

The API refuses an entry naming no variable or path of its own block. A Secret key that holds an empty value under a key nothing lists does not hold the document, since Crewlet applies the seat and starts each run without the value: the object that gives the value reports ResolvedRefs=False SecretValueEmpty, with a Warning event, or the Company’s SecretsSynced for its own steps, as the Seat does a provisioned value nothing mints (NoProvisioner). Either is reported only where it is the value a run is given: a step’s variable the Seat’s own env replaces is none.

The executor verdict (What the operator reports) reads the variables that sign the seat’s harness in once the reconcile has read their Secrets: one a run goes without signs nothing in, and the box is given the provider’s sign-in as it is with no variable of the seat’s. A run goes without a value that is empty, whether or not its key is listed; one whose Secret or key is missing, under a key optionalKeys lists; and a provisioned one while no Integration of the company has provisioning: Engine. What the box receives from the provider is in What a coding box carries.

A seat placed in a seat pool runs on a seat pod, which keeps nothing between starts and serves only its probes and its own boxes. Every phase but the executor runs its harness there as it does on a data pod, reaching the seat’s tools through a socket under the seat pod’s own /tmp. The seat’s executor runs on the seat pod, in a box on its own sandboxes volume, calling the seat’s tools back through the bridge the seat pod serves its own boxes on loopback, with or without a public address. Nothing off a seat pod dials it. One thing a data pod does for a harness a seat pod cannot do:

  • A credential bundle. The login lives under the harness’s state directory, which on a seat pod is its scratch volume, so every seat pod restores the bundle at each start and then refreshes the login on its own, beside the data pod. A vendor that rotates refresh tokens retires the token the other pods hold at each refresh, and logs them out. A seat in a seat pool that runs on a provider with credentialBundleSecretRef, in any phase, is refused with Applied=False, HarnessAuthNotPortable, which holds the company’s document: applied, it would log out every seat on that login, the data pod’s included. Sign it in with tokenSecretRef (Claude Code), auth.mode: APIKey (a harness the table above gives a key variable) or, for Hermes, Pi or OpenCode, its model provider’s key in env, or place the seat in data.

A fleet is a named set of providers of one model class on one harness, such as several Claude plans and a metered key that all run Opus. A chain that names a fleet alone runs on whichever member has room for each new piece of work: Crewlet balances the members on their usage (Balanced, the default), or fills them in list order (Sequential), in place of a hand-ordered fallback chain. Fleets are listed on the Company, beside its model order, and a Seat’s chain or spec.assistant.model names one with kind: LLMFleet:

# Company nimbus, excerpt
spec:
llm:
fleets:
- name: claude-opus # the key, a DNS label; it never changes
displayName: Claude Opus # what people read; unset, the name
strategy: Sequential
members:
- name: claude-max
- name: claude-team
- name: claude-api
- name: default-fleet
members:
- name: claude-api
---
# Seat lead, excerpt
spec:
llm:
default:
- kind: LLMFleet
name: claude-opus
  • A fleet stands alone in a chain: the API refuses one beside a provider, and in spec.llm.order.
  • default-fleet exists without being listed, with no members. List it to give it members: a seat that names no default chain then runs on it rather than the head of spec.llm.order.
  • A fleet with no members is valid. A seat or Ask Crewlet on it waits until one joins, and the engine reports an advisory, not an error.
  • Every member may take the seat’s work, so each one’s sign-in is held to where the seat runs: a member signed in with a credential bundle is refused for a seat in a seat pool, at the field that names the fleet.
  • The API refuses two fleets with one display name, ignoring case. Crewlet’s dry run holds the members to one model class on one harness, which the operator reports on the Company.

A seat keeps its harness’s own web tools. Ask Crewlet (configured under spec.assistant) does not: it reads the company only through the signed-in person’s own requests, so Crewlet runs the provider spec.assistant.model names with no tool of its own (no shell, no file reader, no tool server but the engine’s own, which serves the person’s Ask Crewlet tools) and with its web tools off, whatever the provider’s webTools says. Any provider of a harness Crewlet can run that way may be Ask Crewlet’s model, one the company’s seats run on included, and those seats keep their own web tools. Today that is ClaudeCode or Pi: Codex keeps a shell its read-only sandbox only confines, OpenCode’s deny-all policy has not been measured to take its tools away, and no other harness has a measured way to turn its web tools off, so a provider of any of them is refused for Ask Crewlet though it may still run a seat. The model may also name a fleet (kind: LLMFleet), each of whose members is held to the same rule. Ask Crewlet runs its model in the engine’s pod, as a seat’s phases but the executor run. Ask Crewlet is off until the model is set:

apiVersion: crewlet.ai/v1alpha1
kind: LLMProvider
metadata:
name: assistant
spec:
companyRef:
name: nimbus
harness: ClaudeCode
model: sonnet
timeoutSeconds: 90
maxConcurrent: 4
auth:
mode: APIKey
apiKeySecretRef:
name: anthropic
key: apiKey
spec:
assistant:
model:
name: assistant
tokenBudget:
day: 200000 # each person's ceiling, charged on top of the company's own
instructions: # how Ask Crewlet writes for everybody
length: Brief
format: TLDR
text: Use British spelling. Name tasks by their key.

A provider no seat runs on, as here, keeps the person in the drawer from queueing behind a seat’s long call, and its timeout is sized for one round rather than for a coding task. Crewlet refuses a model on any other harness in the dry run before every apply, at assistant.model, and the refusal is reported on the Company; the API cannot refuse it, since the rule turns on the provider’s own spec. The bounds of a turn (its steps, its time, how long a proposed change waits for approval, how long a conversation is kept) are fixed in Crewlet. Crewlet’s configuration reference describes the block.

instructions are the company’s layer of how Ask Crewlet writes: length (Brief, Balanced or Detailed), format (Lead, the answer first in plain sentences; Lists, bullets and tables where they help; or TLDR, a one-line TL;DR first) and text, at most 1000 characters on tone, terms and structure. Each person may add their own on the engine’s dashboard, kept under the seat they hold rather than in the document, and theirs win where the two differ. Instructions shape tone, length and layout only, never what Ask Crewlet may read, propose or do. A text reaches every answer’s prompt, so Crewlet refuses one holding what looks like a credential in the dry run before every apply, at assistant.instructions.text, reported on the Company without repeating it; the API cannot tell a credential apart there. Crewlet’s Ask Crewlet guide describes both layers.

A provider may still turn its harness’s web tools off for the seats on it with webTools: Denied, which renders as the entry’s overrides: {web_tools: denied}. The API admits it only for a harness Crewlet can turn the web off for: ClaudeCode, Codex, OpenCode, Copilot, KimiCode and Pi. Every other harness’s profile carries no measured web denial, and Crewlet refuses the setting.

Ask Crewlet’s web needs no setting. The engine reads any public https page for it, never the model’s harness, and only at an address that came from somewhere other than the model: the person’s question, a search’s results, a link on a page it read or an address field of a record it read in Crewlet. It searches the web through one more run of its provider, the harness’s own web search and no other tool, handed the query alone, whatever the provider’s webTools says, and the search’s tokens are charged to the turn. ClaudeCode has such a run; Pi does not, and Ask Crewlet on Pi reads pages but does not search. Crewlet’s Ask Crewlet guide describes both.

Ask Crewlet has no shell, files or browser of its own, so a task that needs scripts, generated files or hours of steps is one it proposes for one of the company’s agent seats, which the person approves like any other change; the seat then does the work in its own box, with its own tools and budget. The images a person attaches to a question reach the model where its harness takes them: ClaudeCode does, Pi does not, and Ask Crewlet on Pi takes no image.

Crewlet’s custom harness and the profile overrides of the built-in ones are not offered, but for the web stance above: they name the binary and the arguments the engine’s pod runs. Nor is the container cell: an engine pod has no container runtime to start one in, and so nor is a seat’s browser (Crewlet’s role.sandbox.browser), which runs only in a container box.

Nor is Crewlet’s inherit-env login, which gives the harness whichever token or key the engine’s container environment holds. A credential there is outside the engine’s encrypted store: every process the engine runs (the harness, a stdio MCP server) can read it, and the engine resolves a ${NAME} written in many fields of the company document from its environment too, so whoever can write such a field can have the engine send the value anywhere. The operator puts no credential of the engine’s own into its environment for the same reason (Credential Positions); tokenSecretRef, credentialBundleSecretRef, auth.mode: APIKey and a key in env for Hermes, Pi or OpenCode take the login from a Secret instead.