The project licence governs this repository's code and says nothing about the application a role installs, which is where a restriction on commercial use usually sits: a deployment cleared to use Infinito.Nexus commercially is still barred from NLLB-200's CC BY-NC weights. Each invokable role names its licence in meta/<role>/license.yml with the url it was read from. The rights of a named licence live once in meta/licenses.yml, fifteen fields following the taxonomy choosealicense publishes. AND folds to the strictest combination, OR keeps the most favourable whole licence, and the seven contexts are derived from the rights rather than declared, so a heading cannot contradict the matrix under it. The generated page renders one matrix per context, a lint refuses a role that declares nothing, and a Playwright spec asserts the page against the deployed docs. 21 of 22 deprecated SPDX ids were resolved against the upstream text; EPSON's remains unread because its AUR page blocks automated access. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
OpenClaw
Description
OpenClaw is an open-source personal AI agent that runs on hardware you control. It ships a gateway process with a browser Control UI next to its CLI and TUI, keeps persistent memory and a workspace on disk, and performs browser and filesystem tasks inside its own sandbox.
Overview
This role deploys OpenClaw as a gateway container behind the reverse proxy on its own canonical domain. Its compose service is pinned to the isolating runtime that the Kata & gVisor role selects for the host, its gateway configuration file is rendered from the role, and its state directory is kept in a persistent volume. Access is fronted by an OAuth2 proxy with Keycloak sign-in when Keycloak is part of the deployment.
Features
- Agent gateway: The container runs the OpenClaw gateway bound to the LAN interface on port 18789, with an HTTP health check against
/healthz. - Isolating runtime: The compose service is pinned to Kata Containers where
/dev/kvmand the Kata shim are available, and to gVisor otherwise. - Single sign-on: When Keycloak is deployed, an OAuth2 proxy sits in front of the gateway and admits only members of the administrator group of this application.
- Gateway token: A generated gateway token guards the Control UI and the API, and the Control UI accepts the canonical domain as its only allowed origin.
- Reverse-proxy trust:
gateway.trustedProxiescarries the project-wide trusted-proxy CIDRs. Without them the gateway answers a Control UI WebSocket that arrives with forwarded headers from an untrusted source withtrusted_proxy_untrusted_sourceand closes it before the pairing step, which the Control UI reports as a network failure rather than as a pairing prompt. - Corporate design: With the design service deployed, the Control UI renders the corporate palette, logo and title in light and dark mode. See Control UI.
- Model gateway key: With the LiteLLM Gateway deployed, that gateway provisions a per-consumer virtual key aliased to this application.
- MCP client contract: With Home Assistant deployed, the role declares the MCP client side of the platform contract as an internal streamable-HTTP client with a read-only tool policy. The MCP server list itself lives in
openclaw.json, not in the container environment. - Persistent state: Memory and workspace live in a volume mounted at
/home/node/.openclaw, with the renderedopenclaw.jsonmounted into it, and are included in the container volume backup when that service is deployed. - Compose and Swarm: The role deploys in both modes and renders the gateway configuration file for the local host and the swarm peers.
Further Resources
Control UI
Sign-in
The Control UI asks for the gateway token and pairs every new browser once:
- Open the canonical domain and paste
applications.web-app-openclaw.secrets.credentials.gateway_tokeninto Gateway Token, then select Connect. - List the pending request on the host of the container:
container exec openclaw node dist/index.js devices list. - Approve it:
container exec openclaw node dist/index.js devices approve <requestId>. - Select Connect again.
Corporate design
| Carrier | Content |
|---|---|
| Theme slot of the Control UI | The design script stores the corporate theme in the slot for imported themes and selects it on the first visit. Its tokens read the --design-* palette for surfaces, text, borders, accent, focus and font. The theme appears under its own name in Settings → Appearance next to Claw, Knot and Dash. |
| Mounted logo set | favicon.svg, favicon-32.png, favicon.ico and apple-touch-icon.png of the Control UI are replaced by the generated corporate logo. |
| Design script | Sets the page title and mirrors a color mode chosen in the Control UI into data-design-theme. |
| Role stylesheet | Applies only while the corporate theme is selected: status colors, shadows and selection outside the theme slot, the brand color of filled primary controls, flat callouts, and the configured title in place of the product name. |
The corporate theme follows the light, dark or system mode of the Control UI. Claw, Knot, Dash or an imported theme chosen in Appearance renders its own palette.
make design-gallery app=web-app-openclaw waits three minutes for the pairing approval of its browser before it captures the dashboard views. It keeps the paired browser identity in the Playwright stage directory and reuses it on later runs until a full deploy or a role sync with pw= recreates that directory.
MCP Client
OpenClaw consumes MCP. Every deployed shared MCP server role is discovered
through MCP_DISCOVERED_SERVERS and written into the agent configuration.
Configuration
| Property | Value |
|---|---|
| Direction | client |
| Transport | Streamable HTTP |
| Config file | openclaw.json |
| Auth | Authorization header per server, from the discovery data |
Servers whose auth scheme cannot be presented as a header are dropped before rendering, so no entry carries a credential the server would reject.
Verification
OpenClaw exposes no administrator-visible list of configured MCP servers, so the
configured set is proven by a CLI test instead:
files/test/test.sh probes the agent's mcp surface and
fails when the exec itself fails or the output carries a failed to start server
line. The Playwright spec covers the complementary case, that the gateway
holding the MCP credentials refuses an unauthenticated caller.
Default state
Off. mcp.enabled is false unless an MCP server role is part of the
deployment.
How to disable
Remove the MCP server roles, or pin mcp.enabled: false for this role.
The rendered config then contains no MCP server entry.