Skip to content

Base image ​

declareBaseImage ​

File: parameters/baseImages/<name>/index.ts

The image the agent runs in. Its applyParameter is required, and must start with FROM.

ts
export default declareBaseImage({
  applyParameter: () => `FROM node:20-bookworm
RUN npm install --global bun@1.3.14`,
});

runOptions ​

Type: string[]
Default: []

More docker run options for the agent's containers, for agents that need more of the kernel than Docker allows by default, e.g. Claude Code's bubblewrap sandbox, which needs user namespaces: ["--security-opt", "seccomp=unconfined", "--security-opt", "apparmor=unconfined"]. Each option and value is its own string. Ask for the least you need: --privileged works, but gives the agent the whole machine.

Some hosts forbid what no option can allow. Ubuntu 23.10 and later stop unconfined processes making user namespaces until sysctl kernel.apparmor_restrict_unprivileged_userns=0.