Everything not listed in this document should behave the same as upstream OpenClaw. If a feature, setting, or behavior is not mentioned here, the upstream documentation is accurate and fully applicable — see the Documentation section of
instructions.mdfor links.
OpenClaw is a self-hosted AI agent gateway: a web chat and control panel in front of an LLM, reachable from messaging channels, with a workspace and memory of its own. This package runs the gateway, wires it to either a cloud provider or a local model server on the same box, and can — if you ask it to — give the agent administrative control of StartOS itself.
- Upstream repo: https://github.com/openclaw/openclaw
- Wrapper repo: https://github.com/Start9-Community/openclaw-startos
- Image and Container Runtime
- Volume and Data Layout
- File Models
- Dependencies
- Network Access and Interfaces
- Installation and First-Run Flow
- Actions
- Tasks
- Health Checks
- Backups and Restore
- Limitations and Differences
- Quick Reference for AI Consumers
One image, built here.
| Property | Value |
|---|---|
| Image | Built from this repo's Dockerfile |
| Architectures | x86_64, aarch64 |
| Command | The gateway, bound to the LAN |
| Subcontainer | Purpose |
|---|---|
openclaw-sub |
The gateway (primary) and, while SimpleX or Signal is enabled, bridge-proxy |
bridge-proxy is the second daemon, and it exists because of StartOS 0.4.1. A bridge service gates its binding with a Bearer token at the OS reverse proxy, and since 0.4.1 that gate challenges the internal bridge address too. OpenClaw's channel clients take only a URL, so a small loopback reverse proxy (assets/bridge-proxy/bridge-proxy.mjs, mounted read-only into the container) listens on 127.0.0.1, adds Authorization: Bearer <key> and forwards both plain requests and WebSocket upgrades to the bridge's address. The key is the one the bridge publishes in credentials.json on its public volume, which is mounted read-only and re-read on every connection, so a rotated key needs no restart. The daemon runs only while at least one route exists; primary requires it when it does.
The image also installs start-cli, pinned to a version by a build argument. That binary is what lets the agent administer the server when you grant it access, and it is why the container needs StartOS's root certificate.
Two oneshots run before the daemon, and four after it:
| Oneshot | When | Purpose |
|---|---|---|
install-root-ca |
Before | Installs StartOS's root CA so the container trusts the OS |
chown |
Before | Hands /data to the unprivileged user the gateway runs as |
check-simplex-plugin |
After | Brings the SimpleX plugin up to the pinned version |
check-signal-plugin |
After | Brings the Signal plugin up to the pinned version |
snapshot-automation |
After | Adds the daily snapshot automation unless the update made it |
server-state-snapshot |
After | Writes a server inventory into the agent's memory file |
The gateway is started through a one-line shell wrapper that first runs openclaw gateway recover-lock. A gateway that died uncleanly (crash, OOM, power loss) leaves its state lock behind, and from a new container's PID namespace OpenClaw cannot tell the holder is gone, so it would refuse to start. StartOS runs one gateway at a time, so a lock found at start is stale. The migration, Repair OpenClaw and the channel actions clear it the same way before they run the CLI.
The gateway starts unconfigured on purpose. It is launched with the flag that allows that, so the interface comes up and shows you what is missing rather than refusing to start.
One volume, holding the agent and everything it knows.
| Volume | Mount Point | Purpose |
|---|---|---|
main |
/data |
The agent's entire home |
| Path | Written by | Holds |
|---|---|---|
.openclaw/openclaw.json |
Actions | The gateway and agent configuration |
.openclaw/workspace/ |
Both | The agent's identity, memory, and files |
.startos/auth-profiles.json |
An action | Provider API keys |
.startos/config.yaml |
The package | Where start-cli points |
simplex.json |
An action | Whether SimpleX file exchange is on |
signal.json |
An action | Whether the Signal channel is on |
SOUL.md and IDENTITY.md are re-copied from the image on every install and upgrade, so an upstream revision of the agent's own instructions reaches an existing install. MEMORY.md is not — it is seeded once and then left alone, because it is what the agent has accumulated.
Every start rewrites one section of MEMORY.md: a snapshot of the server's metrics, packages, notifications, gateways, disks, and backup targets. It is how the agent knows what it is running on — and it means the memory file contains an inventory of your server. A daily automation refreshes the three most volatile subsections — metrics, packages, notifications. OpenClaw 2026.11 retired heartbeat configuration: on update, doctor turns the heartbeat this package used to configure into an ordinary automation, and the migration records that in .startos/snapshot-automation. Where that marker is absent (a fresh install, or an update from before 2026.9.4) the snapshot-automation oneshot adds the automation (openclaw cron add, every 24h, delivered nowhere) and writes the marker; OpenClaw refuses the add until an AI provider is configured, so it happens on the first start after that. The marker is why an automation you remove stays removed.
Four models, each owning a different boundary.
| File | Format | Modelled | Written by |
|---|---|---|---|
openclaw.json |
JSON | Yes — FileHelper.json |
Actions, init, and OpenClaw itself |
auth-profiles.json |
JSON | Yes — FileHelper.json |
An action |
config.yaml |
YAML | Yes — FileHelper.yaml |
main and init |
simplex.json |
JSON | Yes — FileHelper.json |
An action |
signal.json |
JSON | Yes — FileHelper.json |
An action |
The main configuration is shared with the application, not owned by the package. OpenClaw edits it too — changing the model from inside the chat writes to the same file — which is why the dependency declaration reads it reactively rather than trusting the action to be the only writer.
Every key the package models accepts at least what OpenClaw accepts there. Each write re-parses the whole file through the model, and a modeled key whose value the model rejects is dropped from disk, so a narrower type deletes the user's settings on the next start. Credential fields (gateway.auth.password, models.providers.*.apiKey, channels.telegram.botToken) take a string or a SecretRef object, kept verbatim; the default model may be a bare provider/model string. Actions never replace a SecretRef silently: Connect Telegram keeps the stored token when its field is left blank, and Reset Password warns before replacing a ref with plaintext.
Two gateway settings are pinned with z.literal: the control UI is enabled, and OpenClaw's Host-header origin fallback (dangerouslyAllowHostHeaderOriginFallback) is off. In its place, main writes gateway.controlUi.allowedOrigins every start: the origins of the ui interface's enabled addresses except loopback and link-local (the internal bridge, LAN IPs, .local, Tor, and any domain you add), read reactively, so adding or removing an address restarts the service with the new list. The bridge origin keeps the list nonempty when every off-box address is disabled: OpenClaw refuses a non-loopback Control UI whose list is empty, and while it stands in a runtime-only localhost list at start, it rejects its own later config writes (such as /model in chat) against an empty one. The list is what admits a domain or Tor origin, and a page on one address calling the gateway on another; it is not OpenClaw's whole origin check. Independently of it, OpenClaw accepts an origin whose host matches the request's Host when that host is a private IP, a .local name or a .ts.net name, and a loopback origin from a client connecting locally. Any other origin, such as another website's, is refused. main also writes gateway.trustedProxies every start, set to the bridge address the proxy connects from — without it OpenClaw answers every proxied request with 403 proxy_attribution_required. What remains in front of the gateway is its password and a one-time approval per browser — see Network Access and Interfaces.
API keys are stored in one place and consumed in another. The action writes them into the auth-profiles file; OpenClaw reads them from the environment. main bridges the two at start, so a key added by the action reaches the gateway on the restart that follows. The file is the package's, which is why it lives under .startos/ and not in OpenClaw's agent directory: a file of that name there is a retired credential source that OpenClaw's doctor archives and that makes the gateway refuse an agent whose own credential store is empty.
The start-cli configuration is rewritten at every start with the server's current address, so the agent's administrative tooling follows the box rather than a value recorded at install.
Four, all optional, and each active only while it is selected. All four are declared in startos/dependencies.ts, so their version ranges and health checks are published with the package.
| Dependency | Required | Kind | Version | Health check | Why |
|---|---|---|---|---|---|
| Ollama | No — only if chosen | running |
>=0.31.2:2 |
primary |
Local inference backend |
| vLLM | No — only if chosen | running |
>=0.23.1-rc.0:13 |
primary |
Local inference backend |
| llama.cpp | No — only if chosen | running |
>=11960:1 |
primary |
Local inference backend |
| SimpleX Websocket Bridge | No — only if enabled | running |
>=7.0.2:3 |
websocket |
Chat and file exchange over SimpleX |
| Signal Messenger Bridge | No — only if enabled | running |
>=0.101:2 |
api |
Chat over Signal |
The inference dependency follows the model you are actually using. Whether each is active is derived from the primary model and its fallbacks, so selecting a local backend adds it and switching to a cloud provider drops it — including when the switch is made from inside the chat rather than through the action. Each is required to be running and passing its own health check, since an unhealthy model server is the same as an absent one.
A cloud provider needs no dependency at all, only an API key and internet. That includes Ollama (cloud): OpenClaw's own ollama-cloud provider calls https://ollama.com directly, separate from the local ollama backend.
Local backends are reached over the internal bridge, and their API key is read directly out of the backend's own published volume rather than being asked for again: the public volume of vLLM or llama.cpp is mounted read-only into a temporary container and its credentials.json read from there. llama.cpp is reached on its key-gated api-key host (interface openai-api), not on the password-protected Web UI host. Each start re-resolves every configured local backend's address and key and rewrites them in openclaw.json when they changed, so a moved address or rotated key heals on restart.
SimpleX is different in kind: enabling it mounts the bridge's file-exchange directories and its public volume into this container, resolves the bridge's ws binding (sdk.host.getBridgeAddress, host main, port 5225, plaintext leg) as a const, and routes it through the bridge-proxy daemon described under Image and Container Runtime. The channel's wsUrl is the fixed loopback address ws://127.0.0.1:5225; the update migration moves a connection an older release wrote (the bridge address, with allowUnsafeRemoteWs) over to it. The minimum bridge version is the first that publishes the key.
Signal works the same way without the file mounts: Configure Signal sets channels.signal.transport to { kind: "container", url: "http://127.0.0.1:8080" }, the bridge's api binding (host main, port 8080) is a second route on the same bridge-proxy, and attachments travel over the bridge's REST API. A channels.signal block written by hand before this action existed is left alone until the action is submitted.
One interface.
| Interface | Id | Type | Port | Description |
|---|---|---|---|---|
| Web UI | ui |
ui | 18789 | The chat and the control panel |
Bound on the ui-multi MultiHost over HTTP and not masked.
The gateway password is the gate, and each browser is approved once. OpenClaw accepts browser origins from this interface's addresses, and same-host origins on private IPs and .local names whether listed or not; it refuses other websites (see File Models). Its device pairing cannot be relaxed. A browser that passes the password is held at "Approve this browser" until the Approve Browser Pairing action admits it, and it then keeps a per-device credential until it is removed in the Web UI's device list. So anyone who can reach this address, knows the password, and can run that action has the agent — and, if StartOS access has been granted, the server. A critical task blocks the service from starting until that password is set, so there is no window where it is reachable without one.
Outbound, the gateway talks to whichever provider is configured, to any messaging channel you connect, and — for local backends and SimpleX — to the sibling service over the internal bridge.
Install creates the agent's directory structure, seeds its workspace from the image, points start-cli at the server, and pins the gateway settings. It then raises two critical tasks: set a gateway password, and configure an AI provider.
The first visit to the Web UI from any browser ends at "Approve this browser" after the password; running Approve Browser Pairing admits it and the page connects on its own.
Neither can be skipped — critical blocks startup, and an agent with no model and no password is not a usable state.
Install also raises an optional Login to StartOS task. It is raised at install only, so once dismissed or done it never comes back; the action stays available. Once running, the gateway comes up on its interface and writes the server snapshot into the agent's memory.
Granting StartOS access is opt-in and deliberately not a critical task — see the action below before running it.
Updating from an older release migrates OpenClaw's state. The migration first points an existing SimpleX channel at the loopback proxy, then runs OpenClaw's own doctor --fix --non-interactive against the stopped service — the same repair OpenClaw's updater runs; coming from before 2026.9.4 it first moves the auth-profiles file out of the agent directory and imports the legacy session store. Doctor also exits non-zero when a plugin cannot load on the new OpenClaw, after its repairs have run. When that plugin is SimpleX or Signal, its channel is enabled and the installed build is behind the package's pin, the migration installs the pin and runs doctor again. Any remaining failure fails the update with doctor's output, naming the plugins when they are the cause, and StartOS rolls the service back to the data it had before the update; the Repair OpenClaw action is the manual route for anything doctor reports it cannot fix on its own.
Nine actions.
Generates the password for the web interface and shows it once.
- What it changes: the password in the configuration. A password stored as a SecretRef is replaced by the new plaintext one; the action warns first.
- Cost: the service restarts.
- Repeat safety: each run generates a new password and invalidates the old one; once a password exists, the action asks for confirmation before replacing it.
Chooses the backend — a cloud provider with an API key, or a local model server — plus the model and an optional fallback.
- What it changes: the API key in the auth-profiles file, the model selection in the configuration, and for a local backend, a provider entry pointing at that service's endpoint on the internal bridge. An existing entry keeps its other model rows, and a keyless backend (Ollama, llama.cpp) keeps any key or SecretRef already set on it; the
startosplaceholder is written only when there is none. - Cost: the service restarts, and the dependency set changes to match.
- Repeat safety: idempotent, pre-filled with the current selection.
- Choosing a local backend makes that package a required dependency; choosing a cloud provider removes it.
Enables the Telegram channel with a bot token and a policy for who may direct-message the agent.
- Leaving the token blank keeps the stored one, including a SecretRef, so the DM policy can change without re-entering it. A first connection requires a token.
Enables the WhatsApp channel with a DM policy and an allow-list of numbers.
- Requires the service to be running, since pairing happens against the live gateway.
Enables the SimpleX channel and its DM policy, and turns file exchange with the bridge on or off.
-
Requires the service to be stopped, like Configure Signal: OpenClaw's plugin commands read and write state themselves, and from an action's container (a different PID namespace) they are refused while the gateway holds its state lock.
-
What it changes: the channel configuration, the plugin policy, and whether the bridge's directories are mounted.
-
It repairs the plugin's enablement and allow-list entries when it skips an install because the plugin is already current — an installed plugin still has to be enabled and named to load.
Enables the Signal channel for the account linked in Signal Messenger Bridge, and its DM policy. Requires the service to be stopped.
- What it changes: the channel configuration (
channels.signal,containertransport at the loopback proxy), the plugin policy, and whether the bridge'spublicvolume is mounted. - The Signal plugin (
@openclaw/signal) is released with OpenClaw and pinned to the same version. - The DM policy is Pairing, Allowlist or Open, and Allowed Phone Numbers is written to
allowFromas entered. Open adds"*", which OpenClaw requires to accept unlisted senders; the others remove it. - Group settings (
groupPolicy,groupAllowFrom,groups) are not managed: values already in the config are kept, and without any OpenClaw's default isallowlistwith nobody on it, so the agent stays out of groups. - A
channels.signalblock written by hand prefills the form, so submitting it adopts that setup.
Admits every browser waiting at "Approve this browser" on the Web UI.
- Requires the service to be running, since the pending requests live in the gateway.
- What it changes: each pending pairing request becomes an approved operator device with a durable per-device credential. Remove one from the Web UI's device list.
- Repeat safety: approves whatever is pending at that moment — nothing, if nobody is waiting — so run it right after your own login attempt, not on a schedule.
Authenticates the agent's start-cli against this server, using your StartOS master password.
- This grants the agent root-equivalent control of the server. It can then start and stop packages, read logs, change network settings, and run backups. The action's own warning says to do it only on a server designated for development, and that warning should be taken literally.
- What it changes: a
start-clisession stored on the volume. It can run before the first start: it hands/data/.startosto the gateway's user itself. - Everything that reaches the chat can then reach the server, which makes the gateway password and the channel DM policies load-bearing for the whole box.
Removes that session.
- What it changes: the stored authentication, deleted.
- The agent keeps working; it just cannot administer the server until you log in again.
Runs one of OpenClaw's own maintenance commands against the stopped service and returns its output and exit code.
- Requires the service to be stopped. Doctor takes ownership of the state database.
- Two commands, each with a report-only default:
doctor --lintreports,doctor --fix --non-interactiverepairs config, plugin policy and state;doctor --session-sqlite dry-runcounts importable legacy session history,--session-sqlite importimports it. - What it changes: with a toggle on, whatever doctor decides to repair — config normalization, state-database migrations, legacy file imports. Back up first; the action's warning says so.
- The package update already runs the repairing forms for you (see Installation and First-Run Flow); this action is for a gateway that still refuses to start afterwards, or for reading doctor's report.
Three, two of them blocking.
| Task | Severity | Raised when | Cleared when |
|---|---|---|---|
| Set Gateway Password | critical |
Any init that finds no password | The action runs |
| Configure AI Provider | critical |
Install with no credentials stored | The action runs |
| Login to StartOS | optional |
Install | The action runs |
critical blocks the service from starting, so a fresh install shows the two setup tasks first. The login task is optional and raised once: dismissing it is a legitimate choice, and nothing raises it again.
One check on the gateway, and one on the bridge proxy while SimpleX or Signal is enabled.
| Check | Displayed as | Method | Grace |
|---|---|---|---|
primary |
"Web Interface" | The gateway's /healthz answers on its own address |
40s |
bridge-proxy |
"Bridge Proxy" | Every loopback route is listening | 10s |
It queries the gateway over the internal bridge using the service's own resolved address rather than a hostname, so it survives the address changing and does not depend on name resolution between containers.
bridge-proxy reports that the proxy is listening, not that the bridge accepts the key: a 401 from the bridge shows up in the gateway log (the channel's reconnect loop), not here.
primary reports that the gateway is serving. It says nothing about the model: a wrong API key, a rate limit, or a local backend that is running but not loaded all show a green check and an error in the chat.
The main volume is copied wholesale — sdk.Backups.ofVolumes('main'). That is the whole agent: configuration, provider API keys, the gateway password, channel tokens, the workspace, and the accumulated memory.
The backup contains every credential the agent holds, in recoverable form: provider keys, the Telegram bot token, and — if StartOS access was granted — the session that administers your server. Treat it accordingly.
It also contains the server snapshot written into memory, which is an inventory of what is installed on this box.
A restored instance comes back configured and remembers what it knew. The start-cli address is rewritten to the new server on the first start, but the session is not — an agent restored onto a different server has to be logged in again before it can administer that one.
- Granting StartOS access gives the agent root-equivalent control of the server. It is optional and revocable, and it is the single most consequential thing this package can do.
- The reverse proxy is trusted, and the origin check is not an exclusive allowlist. The interface's addresses are listed, and OpenClaw also accepts any same-host origin on a private IP or
.localname; another website's origin is refused. The gateway password and a one-time approval per browser are the gate. - The backup holds every credential, including the server session.
- The configuration is co-owned with the application, which edits it at runtime — a change made in the chat is as real as one made through an action.
- The agent's memory contains a server inventory, rewritten every start.
- Local backends must be running and healthy, or the gateway has no model.
- A cloud provider sends your conversations to that provider. Only a local backend keeps them on the box.
SOUL.mdandIDENTITY.mdare overwritten on every upgrade; edits to them do not survive. The snapshot automation is yours to edit once it exists (openclaw cron edit, or Automations in the Web UI).- One agent. The package configures the default agent only.
package_id: openclaw
image: built from ./Dockerfile # also installs a pinned start-cli binary
architectures:
- x86_64
- aarch64
subcontainers:
- openclaw-sub # gateway runs as `node`; oneshots that chown run as root
volumes:
main: /data # HOME and OPENCLAW_STATE_DIR both live here
file_models:
- .openclaw/openclaw.json # gateway + agent config; OpenClaw writes it too
- .startos/auth-profiles.json # provider API keys; package-owned, not OpenClaw's agent dir
- .startos/config.yaml # start-cli host, rewritten each start
- simplex.json # whether SimpleX file exchange is enabled
- signal.json # whether the Signal channel is enabled
assets:
- bridge-proxy/bridge-proxy.mjs # loopback proxy that adds the bridge's Bearer key
startos_managed_env_vars:
- HOME
- OPENCLAW_STATE_DIR
- NODE_EXTRA_CA_CERTS
- ANTHROPIC_API_KEY # bridged from auth-profiles.json when present
- OPENAI_API_KEY
- GEMINI_API_KEY
- XAI_API_KEY
- OLLAMA_API_KEY # Ollama Cloud (`ollama-cloud/<model>`); the local Ollama backend does not use it
dependencies:
- ollama # optional, kind: running + primary health check, only while selected
- vllm # same
- llama-cpp # same
- simplex-websocket-bridge # optional, only while the channel is enabled; >=7.0.2:3 publishes the key
- signal-messenger-bridge # optional, only while the channel is enabled; >=0.101:2 publishes the key
interfaces:
ui: { type: ui, port: 18789 } # gateway password + one-time browser approval (approve-devices)
actions:
- set-password
- configure-api-credentials
- connect-telegram
- connect-whatsapp # only-running
- configure-simplex # only-stopped
- configure-signal # only-stopped
- approve-devices # only-running; admits browsers waiting to pair with the Web UI
- login-to-os # grants root-equivalent StartOS control
- revoke-startos-access
- repair-openclaw # only-stopped; runs `openclaw doctor`
tasks:
- { action: set-password, severity: critical } # reactive
- { action: configure-api-credentials, severity: critical } # install
- { action: login-to-os, severity: optional } # install only; never re-raised
health_checks:
- primary # checkWebUrl against the service's own bridge address; says nothing about the model
- bridge-proxy # checkPortListening on each loopback route; only while SimpleX or Signal is enabled