Set up a checkout to change the control plane, console, CLI, or Drivers. The first-change walkthrough edits and runs CLI help without a database, controller, or account.
You need Git, a Node.js version supported by package.json,
its pinned pnpm version, the Bun version in .bun-version,
and the Go version in go.mod. The managed pre-push hook requires
Bun to check formatting. In a clean checkout, install the pinned dependencies:
pnpm install --frozen-lockfileThis sets up the repository's pre-push hook unless a custom hook configuration prevents it. Read the checkout and hook policy before changing shared dependencies or hook configuration.
- Local Setup starts the local Kubernetes platform and leads to deploying an Agent.
- Local Kubernetes development covers the contributor profile and health checks. Rebuilding deletes the local cluster and its PostgreSQL data. Use the rebuild procedure only for a disposable installation. For persistent Helm installations on k3d, follow the upgrade checklist, then the image upgrade procedure. The console is served by the controller.
- Testing covers isolated PostgreSQL, Docker, Kubernetes, and browser checks. Use the environment required by the behavior you changed.
- OpenShell tests provide an owned, reusable v0.1.9 cluster for Sandbox Driver development and its real model and containment proof. It is separate from the normal fail-closed OpenShell development profile and does not make OpenShell a supported production Agent runtime.
Controller images built by the Kubernetes-only launcher automatically record the
source checkout's Git HEAD. Turn on Debug mode in Console Settings to read it.
The SHA identifies the base commit; an image also includes local source edits.
Building a controller requires a Git checkout. Selecting an existing controller
image keeps that image's metadata.
To build a standalone controller image, supply the approved immutable Node image for your environment.
node scripts/build-controller.ts docker --target runtime \
--build-arg NODE_BASE_IMAGE='<approved-node-image@sha256:digest>' \
--tag openclaw-enterprise-controller:developmentThe helper detects the SHA without a custom build argument. Use podman in
place of docker for a Podman build. Building an image does not update a running
installation.
Use local checks for linting, formatting, types, and focused code checks. New platform functionality also needs integration coverage through the workflow that uses it; the integration guide lists suites and required infrastructure. The CI guide explains which checks run on pull requests.
For documentation or docs-site presentation changes, use the documentation checks; do not add or run tests for those changes. Follow the pull request policy and record the checks you ran, including anything skipped or unavailable.