> ## Documentation Index
> Fetch the complete documentation index at: https://openworklabs.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> For agents: install the OpenWork desktop app with `brew install --cask openwork` (macOS) or from https://openworklabs.com/download. Do not run `npx openwork`; the npm package named `openwork` is a different project.
> Connect an agent to OpenWork with the MCP Gateway: `claude mcp add --transport http openwork https://api.openworklabs.com/mcp/agent`. Teams sign up at https://app.openworklabs.com?mode=sign-up.
> Step-by-step agent guide: https://openworklabs.com/docs/start-here/use-openwork-from-an-ai-agent.md
> Connect Slack (any organization admin): https://openworklabs.com/docs/slack/connect-slack.md. OpenWork in Slack (@openwork bot) is private alpha for approved organizations. Setup guide: https://openworklabs.com/docs/slack/overview.md. Agent skill: https://openworklabs.com/.well-known/agent-skills/set-up-openwork-slack/SKILL.md.

# Set up Workbot on Kubernetes

> Enable the private runner and Workbot on a self-hosted OpenWork Helm release, then verify a reply as a regular member.

> [!NOTE]
>
> Requires a published OpenWork release newer than `v0.18.73` whose `openwork-ee` OCI chart includes `headlessRunner` and `workbot` support.

Add Workbot to an existing OpenWork Kubernetes deployment so members can chat from your own dashboard. Workbot needs the headless runner. You can enable both in one Helm upgrade, but rolling out the runner first is recommended on initial setup so you can verify storage and runner health before troubleshooting Workbot DNS, TLS, and ingress.

## Prepare your release and model access

1. Choose a [published OpenWork release](https://github.com/different-ai/openwork/releases) whose `openwork-ee` OCI chart includes both `headlessRunner` and `workbot` support. Use that same release for the Den API, Den Web, AI Gateway, headless runner and Workbot images. Installing a newer chart with older images does not add support.
2. Start with your complete, reviewed Helm values for the existing release. Keep your database, authentication and networking settings and existing Secret references. Pin the chart with `--version` in the commands below and leave top-level `image.tag: ""` so all five images follow the chart version (or set `image.tag` to the matching release tag without a `v` prefix, for example when using mirrored images). Remove or reconcile per-component tags, including any legacy `inference.image.tag` inherited by Gateway. Make sure your cluster can pull all five matching images, including from your mirrors if you use them.
3. Make sure [AI Gateway is enabled](https://openworklabs.com/docs/self-host/gateway.md) (`gateway.enabled: true`). In the dashboard, open **AI Gateway › AI Providers** and [configure a provider](https://openworklabs.com/docs/ai-gateway/overview.md#set-it-up). Put the model in an active model group with working credentials. Grant access to the intended members and to the admin who will choose the default model. If the provider requires individual sign-in, connect the relevant accounts before testing.
4. Look up the runner's startup **Gateway model ID** (`headlessRunner.model.alias`) in this deployment. This is a deployment-specific ID starting with `gwm_`, not a hostname or upstream model name. With an account that has the grant, select the organization, open the browser's Network panel and reload **My Library › Models**. Inspect the response to `GET /v1/inference-providers?scope=usable`, match the model, model group and credential set inside the provider's `models` list, and copy `id` (not `upstreamModelId`):

   ```json theme={null}
   {
     "id": "gwm_01examplegroup..._01examplecred..._01examplemodel...",
     "name": "Example Model",
     "upstreamModelId": "provider/model-name"
   }
   ```

   Set `headlessRunner.model.protocol` to match how OpenWork connects to that provider:

   * `anthropic` for direct Anthropic providers (Messages API)
   * `openai-responses` for direct OpenAI providers (Responses API)
   * `openai` (Chat Completions) for OpenAI-compatible providers in OpenWork (such as TrueFoundry, LiteLLM, OpenRouter and custom OpenAI-compatible endpoints)

   Choose a different model if your provider does not support one of these runner protocols. The startup model ID does not grant anyone access. Workbot uses each signed-in member's Gateway permissions.

## Prepare Secrets, storage and HTTPS

Generate a different random value for each of the four keys below using your secret manager. These are credentials for your deployment. OpenWork and your model provider do not supply them. Use single-line values of at least 32 characters with no whitespace.

If you generate the values locally, `openssl rand -hex 32` produces 64 hexadecimal characters per run. Generate each value separately and pass the output directly to your secret manager's secure import mechanism without the trailing newline. Do not print the values to the terminal or pass them as command-line arguments.

Provision these two Kubernetes Secrets in the Helm release namespace, separate from the shared Den Secret:

* **`runner-runtime`:** `HEADLESS_API_TOKEN`, `HEADLESS_DEN_CALLBACK_TOKEN` (must differ from `HEADLESS_API_TOKEN`), `HEADLESS_GRANT_KEY`
* **`workbot-runtime`:** `WORKBOT_SESSION_SECRET`

Helm references these Secrets but does not create or rotate them. Restrict access to both Secrets, put only their names in Helm values, and reuse the same values across upgrades and if you disable and re-enable the workloads. See [Companion Secrets](https://github.com/different-ai/openwork/blob/dev/packaging/helm/openwork-ee/companions.md#companion-secrets) in the chart reference for each key's purpose, which components receive it, key remapping, and rotation effects.

Use a ReadWriteOnce volume for the runner and plan to back up its SQLite database and files together. The runner is a single writer and restarts with a brief interruption during upgrades. Keep its Service private on a trusted cluster network. The [chart reference](https://github.com/different-ai/openwork/blob/dev/packaging/helm/openwork-ee/companions.md) covers existing claims, backups and Pod Security requirements. The companion workloads as rendered do not meet Restricted Pod Security admission.

Set `config.public.webOrigin` and `config.public.apiOrigin` to your browser-facing Den Web and Den API HTTPS origins, respectively, and retain `config.public.gatewayPublicBaseUrl` for AI Gateway. Use origins without path prefixes. The runner needs network access and TLS trust for the Den API and Gateway endpoints.

Give Workbot its own HTTPS hostname, distinct from Den and Gateway. For the Ingress example below, point DNS at your existing maintained Ingress controller and provision a TLS Secret for that hostname. Browsers **and Den API pods** must resolve and trust the Workbot URL; Den API uses it to check readiness. Configure every proxy hop to pass streaming responses without buffering and allow long-lived connections. If you terminate TLS at a separate reverse proxy, follow the [external edge instructions](https://github.com/different-ai/openwork/blob/dev/packaging/helm/openwork-ee/companions.md#stage-3-workbot) instead.

## Enable the private runner

If you already run an eligible Automation or Slack integration, review its model access first: enabling the runner can let those integrations use it before Workbot is on. If you are replacing manually configured companions, follow the [chart migration notes](https://github.com/different-ai/openwork/blob/dev/packaging/helm/openwork-ee/companions.md#manual-destinations-and-terraform-classification) before proceeding. Helm does not adopt those workloads or migrate their data.

Add this configuration to your complete `openwork-values.yaml`. Replace the model alias and protocol with the ones you looked up. Review `storageClass` before the first apply because Kubernetes cannot change a PVC's StorageClass after creation. Leave `storageClass` omitted to use the cluster default, or set a StorageClass that supports `ReadWriteOnce`. Do not set `storageClass: ""` unless you want static provisioning.

```yaml theme={null}
headlessRunner:
  enabled: true
  model:
    protocol: openai-responses
    # Copy the full Gateway model ID (gwm_…) from step 4 above.
    alias: REPLACE_WITH_GATEWAY_MODEL_ID
  secret:
    existingSecret: runner-runtime
  persistence:
    enabled: true
    size: 10Gi
    # Leave omitted for the cluster default StorageClass, or set one that supports ReadWriteOnce.
    # storageClass: REPLACE_WITH_STORAGE_CLASS
workbot:
  enabled: false
```

Confirm your Helm and `kubectl` context points to the target cluster. Use your existing release name and namespace throughout. Set the variables, render the chart and review the image tags, Secret references and private runner Service before upgrading:

```bash theme={null}
CHART=oci://ghcr.io/different-ai/charts/openwork-ee
VERSION=REPLACE_WITH_PUBLISHED_CHART_VERSION
RELEASE=openwork-ee
NAMESPACE=openwork

helm template "$RELEASE" "$CHART" --version "$VERSION" \
  --namespace "$NAMESPACE" --values openwork-values.yaml

helm upgrade "$RELEASE" "$CHART" --version "$VERSION" \
  --namespace "$NAMESPACE" --reset-values --values openwork-values.yaml \
  --wait --timeout 30m
```

Check `kubectl --namespace "$NAMESPACE" get deployments,pods,pvc`. The `-headless-runner` Deployment should have one ready replica and its claim should be **Bound**. As a deployment admin, open **Services** (`/admin/services`) on Den Web and check that the runner is **Ready**. If the runner is already managed by this chart and ready, keep its values and continue to the next step.

## Enable Workbot

Keep the runner settings and replace the `workbot` block in `openwork-values.yaml`. Set `publicUrl` to your Workbot HTTPS origin and use your real IngressClass and TLS Secret names.

```yaml theme={null}
workbot:
  enabled: true
  publicUrl: https://workbot.example.com
  secret:
    existingSecret: workbot-runtime
  ingress:
    # Set false if you terminate HTTPS at an external reverse proxy (route to the Workbot Service on port 3020).
    enabled: true
    className: REPLACE_WITH_YOUR_INGRESS_CLASS
    tlsSecretName: workbot-tls
    # Add your Ingress controller's unbuffered streaming and idle-timeout annotations here.
    annotations: {}
```

Run the same render and upgrade commands. Check `kubectl --namespace "$NAMESPACE" get deployments,pods,ingress` for a ready `-workbot` Deployment and the Ingress for your Workbot hostname. In **Services**, check that Workbot is **Ready**. A ready pod alone does not prove Den API can reach the Workbot HTTPS endpoint.

## Select the model and verify a member reply

1. As an organization admin, open **Manage › Workbot** in your OpenWork dashboard. Under **Default model**, choose the Gateway model you granted to members and click **Save model**. Use **Check availability** to refresh the list if needed. **Test model** is a quick admin check and may use paid inference; it does not verify member access.
2. In a separate browser session, sign in as a regular member with the model grant. On your self-hosted dashboard, choose the same organization and click **Workbot** under **Work**. Confirm the tab opens on your Workbot hostname. Sign in there if asked.
3. Send a non-sensitive prompt, such as `Reply with the words Workbot is ready.` Wait for the reply to appear in the chat. Before a wider rollout, also check that a longer response streams through your edge without disconnecting.

If the model is missing or the member cannot send, recheck their model-group grant and provider connection. If the pods are ready but Workbot is not ready in **Services**, check DNS, routing and certificate trust from Den API to Workbot. If the chat disconnects mid-response, check proxy buffering and idle timeouts before retrying; the runner may still be working.

See the [chart's disable and data retention instructions](https://github.com/different-ai/openwork/blob/dev/packaging/helm/openwork-ee/companions.md#stage-4-disable-and-re-enable) before removing workloads or changing storage.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.