diff --git a/apps/docs/content/docs/platform/self-hosting/architecture.mdx b/apps/docs/content/docs/platform/self-hosting/architecture.mdx
index 8d504dfa975..ba603792f53 100644
--- a/apps/docs/content/docs/platform/self-hosting/architecture.mdx
+++ b/apps/docs/content/docs/platform/self-hosting/architecture.mdx
@@ -63,7 +63,7 @@ Scheduled workflows, polling triggers, connector syncs, subscription renewal, an
### Optional Chat service
-The chart can also render the optional `copilot` service, its separate PostgreSQL database, and its migration job. These are separate from the app and workflow database. Enabling them requires the service's image, license, credentials, and database configuration; see the chart's `copilot` values and [reference architectures](/platform/self-hosting/reference-architectures).
+The chart can also render the optional `copilot` service, its separate PostgreSQL database, and its migration job. These are separate from the app and workflow database. Enabling them requires the service's image, license, credentials, and database configuration; see [Chat service](/platform/self-hosting/chat).
## Where state lives
diff --git a/apps/docs/content/docs/platform/self-hosting/chat.mdx b/apps/docs/content/docs/platform/self-hosting/chat.mdx
new file mode 100644
index 00000000000..0337cfd8e6f
--- /dev/null
+++ b/apps/docs/content/docs/platform/self-hosting/chat.mdx
@@ -0,0 +1,81 @@
+---
+title: Chat service
+description: Connect self-hosted Sim to the Sim-hosted Chat service, or run the Mothership in your own cluster
+---
+
+import { Tab, Tabs } from '@/components/ui/tabs'
+import { Callout } from '@/components/ui/callout'
+
+Chat, the Sim Chat workflow block, and Inbox run on a separate service, the Mothership. A self-hosted Sim either connects to the Mothership Sim hosts or to one you run beside it. Without either, set `NEXT_PUBLIC_CHAT_DISABLED=true` to hide Chat.
+
+| | Sim-hosted Mothership | Your own Mothership |
+| --- | --- | --- |
+| You run | Sim only | Sim, the Mothership, its PostgreSQL database, Redis, and model provider accounts |
+| From Sim you need | A customer API key | A runtime license, a registry token for the private image, and the release bundle |
+| Model inference | Sim's model providers | The providers you configure, such as Amazon Bedrock in your own account |
+
+## Connection settings
+
+These are set on **Sim**, not on the Mothership.
+
+| Variable | Description |
+| --- | --- |
+| `COPILOT_API_KEY` | Sim-hosted: the customer API key issued to your account. Your own: the Mothership's `COPILOT_INBOUND_API_KEY`. A runtime license is never an API key |
+| `SIM_AGENT_API_URL` | The Mothership origin as the Sim server reaches it. Defaults to `https://www.copilot.sim.ai`, the Sim-hosted service |
+| `MOTHERSHIP_SIM_TRANSPORT` | How the Mothership reaches Sim. `direct`: it calls Sim at its own `SIM_ENDPOINT`. `checkpoint`: Sim collects workspace tool calls by polling the Mothership over outbound HTTPS, so the Sim-hosted service needs no route into Sim. A Mothership you run still reaches `SIM_ENDPOINT` for account validation and usage reporting with either transport. Self-hosted Sim defaults to `checkpoint` |
+| `INTERNAL_API_SECRET` | Sim's existing secret. Your own Mothership uses the same value |
+
+For the Sim-hosted service, set `COPILOT_API_KEY` and keep the defaults. Chat attachments also need an object storage bucket; see [Object storage](/platform/self-hosting/object-storage).
+
+## Run the Mothership
+
+
+
+
+The chart's `copilot` values deploy the Mothership, its own PostgreSQL (bundled, or external through `copilot.database`), and a migrations Job. Start from `helm/sim/examples/values-copilot.yaml`.
+
+| Value | Notes |
+| --- | --- |
+| `copilot.enabled` | `true` |
+| `copilot.server.image.tag` or `.digest` | Required. The image is versioned apart from the chart: pin the `main-` tag from the Mothership release notes |
+| `copilot.server.imagePullSecrets` | A `docker.io` pull Secret with username `simstudioai` and the registry token from Sim. Applies to the Mothership pods only |
+| `copilot.server.env.LICENSE_KEY` | The runtime license, beginning `lic-` |
+| `copilot.server.env.COPILOT_INBOUND_API_KEY` | A random value, for example `openssl rand -hex 32` |
+| `copilot.server.env.INTERNAL_API_SECRET` | The app's `INTERNAL_API_SECRET` |
+| `copilot.server.env.SIM_ENDPOINT` | The Sim origin as the Mothership pod reaches it, without a trailing slash |
+| `copilot.server.env.REDIS_URL` | Required, even with one replica |
+| Provider credentials | For the models you route, for example `OPENAI_API_KEY` and `ANTHROPIC_API_KEY_1`. Claude on Bedrock signs with the pod's AWS identity and needs no key |
+
+With the Mothership enabled, the chart points the app at it: `SIM_AGENT_API_URL` is the in-cluster Service, `MOTHERSHIP_SIM_TRANSPORT` is `direct`, and `COPILOT_API_KEY` comes from the Mothership's Secret. A key you set in `app.env` or map through `externalSecrets.remoteRefs.app` wins. With `app.secrets.existingSecret`, the chart sets none of them, so store them in that Secret. The app's NetworkPolicy also allows traffic to and from the Mothership pods.
+
+Each Mothership pod gets 120 seconds to hand its in-flight chats to another replica on shutdown (`copilot.server.terminationGracePeriodSeconds`). Keep it about 30 seconds above the Mothership's `COPILOT_SHUTDOWN_HANDOFF_MS`.
+
+
+
+
+Run the image from the release bundle as its `ENTERPRISE.md` describes, with a dedicated PostgreSQL 16+ database and Redis 7+, then set the [connection settings](#connection-settings) on Sim: `SIM_AGENT_API_URL` to the Mothership origin, `COPILOT_API_KEY` to its `COPILOT_INBOUND_API_KEY`, and `MOTHERSHIP_SIM_TRANSPORT=direct` when the Mothership can reach Sim.
+
+
+
+
+Model routing, provider hosts (Anthropic, Amazon Bedrock, OpenAI, Azure OpenAI, and others), and every Mothership setting are documented in `ENTERPRISE.md` in the release bundle.
+
+## Network access
+
+
+ Running the Mothership yourself does not make Chat offline. It validates its runtime license with `www.license.copilot.sim.ai` over HTTPS at startup and every hour, and stops if the license is invalid. Chat content goes to the model providers you configure.
+
+
+| From | To | Why |
+| --- | --- | --- |
+| Sim | The Mothership origin | Chat requests, with long-lived streaming responses |
+| The Mothership | `SIM_ENDPOINT` | Account validation and usage reporting with either transport, and workspace tools with `direct` |
+| The Mothership | `www.license.copilot.sim.ai:443` | Runtime license |
+| The Mothership | Your model providers | Inference |
+| Your nodes | `docker.io` | Pulling the private image, unless you mirror it |
+
+For AWS GovCloud (US), see [Reference architectures](/platform/self-hosting/reference-architectures#aws-govcloud-us).
+
+## Verify
+
+Open a new chat in a test workspace, ask it to list a workspace resource, and have it create a test workflow. Then reload the browser during a longer response and confirm the chat recovers. A health check alone does not exercise the license, provider credentials, or the connection back to Sim.
diff --git a/apps/docs/content/docs/platform/self-hosting/environment-variables.mdx b/apps/docs/content/docs/platform/self-hosting/environment-variables.mdx
index 26bf5ae59bb..1d9ddcab03a 100644
--- a/apps/docs/content/docs/platform/self-hosting/environment-variables.mdx
+++ b/apps/docs/content/docs/platform/self-hosting/environment-variables.mdx
@@ -200,7 +200,9 @@ Plain JavaScript without imports runs in isolated-vm within Node child workers i
| Variable | Description |
|----------|-------------|
-| `COPILOT_API_KEY` | API key for the default Sim service. Required for Chat, the Sim Chat workflow block, and Inbox operations that use that service |
+| `COPILOT_API_KEY` | API key for the Chat service (the Mothership). Required for Chat, the Sim Chat workflow block, and Inbox operations that use that service. See [Chat service](/platform/self-hosting/chat) |
+| `SIM_AGENT_API_URL` | Mothership origin the Sim server calls. Defaults to `https://www.copilot.sim.ai`, the Sim-hosted service |
+| `MOTHERSHIP_SIM_TRANSPORT` | `direct` (the Mothership calls Sim) or `checkpoint` (Sim polls the Mothership for workspace tool calls over outbound HTTPS). Self-hosted Sim defaults to `checkpoint` |
| `NEXT_PUBLIC_CHAT_DISABLED` | Set to `true` to hide the Chat module: the workspace lands on your first workflow, with no chats list or editor Chat panel. Chat is shown when unset; `bunx sim-setup` sets it for you if you skip the chat key |
| `PII_URL` | Base URL of the Presidio service backing PII detection and redaction. The Helm chart wires it to its own `pii` Service when `pii.enabled`; on Compose point it at the PII service on your network. Local development and the Helm fallback use `http://localhost:5001`; that address works only when the service is reachable there. Point production at a running service to use redaction |
| `ADMIN_API_KEY` | Admin API key for GitOps operations and organization provisioning |
diff --git a/apps/docs/content/docs/platform/self-hosting/index.mdx b/apps/docs/content/docs/platform/self-hosting/index.mdx
index a997df1561f..8765f5c8933 100644
--- a/apps/docs/content/docs/platform/self-hosting/index.mdx
+++ b/apps/docs/content/docs/platform/self-hosting/index.mdx
@@ -63,7 +63,7 @@ The editor and execution engine run within your deployment. Configure these depe
| --- | --- |
| Knowledge bases | An OpenAI, Azure OpenAI, OpenRouter, or Gemini embedding key, or your own Ollama server. `KB_EMBEDDING_MODEL` selects the model (`text-embedding-3-small` by default); `EMBEDDING_OUTPUT_DIMS` selects the stored vector width. Use `ollama/` and `OLLAMA_URL` for local embeddings. |
| Agent blocks | A model provider key or a self-hosted compatible endpoint such as Ollama, vLLM, LM Studio, or LiteLLM. |
-| Chat | `COPILOT_API_KEY` for the default Sim service. Set `NEXT_PUBLIC_CHAT_DISABLED=true` to hide Chat when it is not configured. |
+| Chat | `COPILOT_API_KEY` for the Sim-hosted Chat service, or your own Mothership; see [Chat service](/platform/self-hosting/chat). Set `NEXT_PUBLIC_CHAT_DISABLED=true` to hide Chat when it is not configured. |
| OAuth integrations | Your provider app and credentials for each OAuth service you use. API-key integrations take keys in their blocks. |
| Remote Function or Pi execution | An E2B or Daytona provider key and the appropriate immutable image. Function and Pi use separate images. |
diff --git a/apps/docs/content/docs/platform/self-hosting/meta.json b/apps/docs/content/docs/platform/self-hosting/meta.json
index 5dd14c57752..1aa182f8433 100644
--- a/apps/docs/content/docs/platform/self-hosting/meta.json
+++ b/apps/docs/content/docs/platform/self-hosting/meta.json
@@ -15,6 +15,7 @@
"email",
"redis",
"sandboxes",
+ "chat",
"background-jobs",
"networking",
"security",
diff --git a/apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components/status-notice/status-notice.tsx b/apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components/status-notice/status-notice.tsx
index 8c6c9e7476a..96edce3ddc6 100644
--- a/apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components/status-notice/status-notice.tsx
+++ b/apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components/status-notice/status-notice.tsx
@@ -2,6 +2,7 @@
import { ChipLink } from '@sim/emcn'
import { CircleAlert } from '@sim/emcn/icons'
+import { useDeploymentShape } from '@/lib/core/config/deployment-shape'
import { STATUS_PAGE_URL } from '@/lib/status-page'
import { useStatusPage } from '@/hooks/queries/status-page'
@@ -39,7 +40,9 @@ function StatusAlert() {
}
export function StatusNotice({ preview = false }: StatusNoticeProps) {
- const { data } = useStatusPage({ enabled: !preview })
+ // status.sim.ai reports Sim Cloud, so a self-hosted deployment neither polls nor shows it.
+ const { hosted } = useDeploymentShape()
+ const { data } = useStatusPage({ enabled: hosted && !preview })
const status = preview ? PREVIEW_STATUS : data?.status
diff --git a/apps/sim/lib/mothership/generated/docs-manifest.ts b/apps/sim/lib/mothership/generated/docs-manifest.ts
index 2b1d1327aa0..e1d146d9c6f 100644
--- a/apps/sim/lib/mothership/generated/docs-manifest.ts
+++ b/apps/sim/lib/mothership/generated/docs-manifest.ts
@@ -429,6 +429,7 @@ export const DOCS_MANIFEST: readonly string[] = [
'platform/self-hosting/architecture.mdx',
'platform/self-hosting/authentication.mdx',
'platform/self-hosting/background-jobs.mdx',
+ 'platform/self-hosting/chat.mdx',
'platform/self-hosting/desktop.mdx',
'platform/self-hosting/docker.mdx',
'platform/self-hosting/email.mdx',