openclaw
by weak-fox
Helm packaging for OpenClaw on Kubernetes with aio-sandbox integration and flexible model/provider configuration.
About this chart
OpenClaw Helm Chart
Project overview, demo GIF and architecture are in weak-fox/openclaw-helm.
This chart deploys OpenClaw on Kubernetes using standard Helm templates.
Architecture
| Component | Port | Notes |
|---|---|---|
| OpenClaw Gateway | 18789 | In-pod listener |
| aio-sandbox | 8080 | In-pod listener (CDP/VNC/noVNC) |
Key Point
- Model/provider config is easy to switch in values (
provider/api/baseUrl/model). - Control UI security behavior is easy to tune via
gateway.controlUi. - Uses
aio-sandbox(agent-infra sandbox) plus shared workspace storage so browser actions are visible, OpenClaw workspace config files can be updated through browser-driven flows, and shell/Jupyter tasks can run in the same environment. - Uses default OpenClaw gateway token flow (does not set
OPENCLAW_GATEWAY_PASSWORD). - API key is injected from Kubernetes Secret.
- Sandbox uses the agent-infra sidecar pattern (CDP + VNC + noVNC on port
8080). values.schema.jsonis included for early validation (helm lint/ install-time schema check).
Values Layout
global: naming and shared image registryworkload: deployment and pod settingsgateway: service, trusted proxies, control UIopenclaw: image, API-key secret, config, bootstrap, runtime plugin configsandbox: browser sidecar settingsstorage: PVC, tmp, shared memory
Image Repository Rule
All images use a consistent rule:
- If
repositoryis absolute (for exampleghcr.io/openclaw/openclaw), it is used directly. - If
repositoryis relative (for exampleopenclaw/openclaw) andglobal.imageRegistryis set, final image is<global.imageRegistry>/<repository>.
Path Variables
init-config.sh and init-skills.sh consume path values from Helm templates:
openclaw.paths.homeopenclaw.paths.homeDiropenclaw.paths.workspaceDiropenclaw.paths.sessionsDirsandbox.workspaceMountPathsandbox.shmMountPath
This avoids hardcoding /home/node/.openclaw and makes path changes explicit in values.
Image Pull Policies
Each image role can be controlled separately:
openclaw.image.pullPolicy(main container)openclaw.init.configPullPolicy(init-config)openclaw.init.skillsPullPolicy(init-skills in online mode)openclaw.bootstrap.seedImage.pullPolicy(init-skills in offline mode)sandbox.image.pullPolicy(sandbox sidecar)
Image Pull Secrets
Use existing registry secrets via workload.imagePullSecrets (default []):
workload:
imagePullSecrets:
- name: regcred
The chart only references these secrets and does not create them.
Install
helm install openclaw ./charts/openclaw -n openclaw --create-namespace
Basic Setup
- Create namespace:
kubectl create namespace openclaw
- Create API key secret:
kubectl create secret generic openclaw-api-key \
-n openclaw \
--from-literal=OPENCLAW_API_KEY=sk-xxxx
- Install chart:
helm install openclaw ./charts/openclaw -n openclaw
Control UI security note (important)
By default:
gateway:
controlUi:
dangerouslyAllowHostHeaderOriginFallback: false
When your deployment is not strict loopback (common in Kubernetes), Control UI auth/origin checks may block startup unless you provide a secure production config.
For temporary/local validation only, you can use:
gateway:
controlUi:
dangerouslyAllowHostHeaderOriginFallback: true
Quick bypass (local testing / debug):
gateway:
controlUi:
allowInsecureAuth: true
dangerouslyAllowHostHeaderOriginFallback: true
dangerouslyDisableDeviceAuth: true
Or apply quickly via install/upgrade flags:
helm upgrade --install openclaw ./charts/openclaw -n openclaw \
--set gateway.controlUi.allowInsecureAuth=true \
--set gateway.controlUi.dangerouslyAllowHostHeaderOriginFallback=true \
--set gateway.controlUi.dangerouslyDisableDeviceAuth=true
For production, follow official OpenClaw security guidance and run security checks:
- Control UI docs: https://docs.openclaw.ai/web/control-ui
- Security docs: https://docs.openclaw.ai/security
- Security audit command:
openclaw security audit --deep
Offline-seed install (your image set)
helm install openclaw ./charts/openclaw -n openclaw \
-f ./charts/openclaw/examples/values.offline-seed.yaml
The example uses:
ghcr.io/agent-infra/sandbox:1.0.0.152ghcr.io/openclaw/openclaw:2026.11.10ghcr.io/weak-fox/openclaw-offline-seed:v1.0.81-oc-2026.11.10
Optional: chart-managed API key secret
openclaw:
secrets:
apiKey:
existingSecret: ""
create: true
name: openclaw-api-key
key: OPENCLAW_API_KEY
value: sk-xxxx
Verify
helm lint ./charts/openclaw
helm template openclaw ./charts/openclaw >/tmp/openclaw-rendered.yaml
helm template openclaw ./charts/openclaw -f ./charts/openclaw/examples/values.offline-seed.yaml >/tmp/openclaw-rendered-offline.yaml
Deploy openclaw with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has openclaw on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartopenclaw is pinned at v1.0.84 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply