Skip to main content
Configure OpenCluster through environment variables. Docker Compose provisions the bundled database credentials and encryption key; Helm uses your existing Secrets. Choose a model provider, model ID, and API key to enable Chat and Investigations.

Minimal configuration

For a packaged deployment with the standard encryption-key mount already provisioned, the equivalent service settings are:
Direct alternatives are the same names without _FILE, for example OC_AI_API_KEY. Use direct values for local development and mounted files for production when practical. Never set both forms of one secret. Standard packaged deployments mount the provisioned credential-encryption key at /run/opencluster/credentials/sealing-key; no key variable is needed. For a standalone process or a custom deployment, point the encryption-key file setting at the original provisioned key if it is stored elsewhere. The control plane requires a key and refuses to start if it cannot decrypt an existing Integration credential. Restore the original key from its independent backup. The standalone process does not automatically load .env. If using .env.example, copy it to .env, fill in the file paths, and export its values before starting:
Compose uses the same OC_* names for runtime options and mounts its local credentials as files. See Compose preparation.

GitHub App setup

GitHub and Slack App credentials belong to the deployment. Other Integration Types remain available through the API when these credentials are absent. Configure a GitHub App with the permissions for the GitHub Integration. OpenCluster reads from existing GitHub Integrations using the App ID and private key. To enable GitHub Connect, also supply the App’s OAuth client ID and client secret. In GitHub, enable Request user authorization (OAuth) during installation. Set the first callback URL to your OpenCluster public HTTPS origin followed by /api/v1/integrations/connect/callback. Leave the Setup URL empty. The App does not need a webhook.
  • Docker Compose. Set OC_GITHUB_APP_ID and OPENCLUSTER_GITHUB_APP_PRIVATE_KEY_FILE to the App ID and absolute path to its private key. Add the optional override to your Compose command:
    For Connect, also supply OC_GITHUB_CLIENT_ID and OC_GITHUB_CLIENT_SECRET in your Compose environment.
  • Helm. Set github.appID and put the private key in the existing credentials Secret under github.privateKeyKey. For Connect, also set github.clientID and put the OAuth secret in the same Secret under github.clientSecretKey. These key settings name entries in the Secret.
  • Standalone. Use the GitHub variables in the environment reference. Prefer the _FILE inputs for credentials.

Slack App setup

Set OC_SLACK_CLIENT_ID and either OC_SLACK_CLIENT_SECRET_FILE or OC_SLACK_CLIENT_SECRET to enable Slack app authorization. In your Slack app settings, register your public HTTPS origin followed by /api/v1/integrations/connect/callback as an OAuth redirect URL. To receive mentions, set OC_SLACK_SIGNING_SECRET_FILE or OC_SLACK_SIGNING_SECRET. In Slack Event Subscriptions, set the request URL to your public HTTPS origin followed by /webhooks/v1/slack/events and subscribe to the app_mention bot event. To receive follow-ups without a mention in existing Chat threads, also subscribe to the message.channels bot event for public channels or message.groups for private channels. The app must have the corresponding channel history scope and belong to the channel. To let a workspace-installed app ask for more information, enable Interactivity & Shortcuts in Slack. Set its Request URL to the same public /webhooks/v1/slack/events endpoint, then set OC_SLACK_INTERACTIVITY=true. The app needs chat:write and Slack must identify the workspace in the callback. See the Slack guide for scopes, connection options, and channel access.

Backend listener and public origin

The standalone backend listens on :8081. Its local public origin is http://localhost:8081. OC_SERVER_ADDRESS controls that backend listener. OC_PUBLIC_URL is the actual public entry point used by browser requests, sign-in and Integration callbacks, and generated webhook URLs. It is independent of the listen address. For production, set OC_PUBLIC_URL to the reachable HTTPS origin served by your existing edge routing. Browser origins may have one trailing slash. Paths, credentials, queries, fragments, and invalid hosts or ports are rejected. HTTP is allowed only for localhost, 127.0.0.1, and [::1] development origins. Session-cookie security is unchanged. Use ASCII DNS names or canonical IP addresses. Mapped and scoped IPv6 addresses are unsupported. A separately installed frontend may listen on http://localhost:8080. Set that as the public origin only after verifying its same-origin proxy to backend 8081 for /api/ (including SSE, authentication, and callbacks) and /webhooks/. This repository does not supply that frontend or proxy. Without it, access the backend directly on 8081.

Initial signup

Open /setup in a compatible frontend over a trusted private connection. For a standalone process, bind OC_SERVER_ADDRESS to 127.0.0.1:8081 and set OC_PUBLIC_URL to the frontend’s local origin. The frontend must proxy /api/ on that same origin without rewriting Origin or cookie attributes. A fresh or reset database allows the first caller to create an Admin. Keep the API inaccessible to untrusted callers, including reverse proxies and other workloads, until signup completes. Existing Organization or User records prevent another initial signup.

Applying changes

Configuration and secret files are read once at startup. An interrupted execution can resume only if its recorded provider and exact model match the current settings. An interrupted execution without a recorded model stops. Completed Chat replies can still be saved after a model change. A new Chat turn carries forward earlier Messages and Tool results without sending the old model’s private reasoning. A file update does not reload a running process. For Compose, recreate the control plane with docker compose --env-file .secrets/compose.env -f deploy/compose/compose.yaml up -d --force-recreate control-plane. For Helm, ordinary values change the Deployment and trigger rollout. After updating an existing Secret, run kubectl rollout restart deployment/<release>-opencluster, then kubectl rollout status deployment/<release>-opencluster. Confirm /readyz and a bounded Investigation before considering the change complete. Set OC_LOG_LEVEL to debug, info, warn, or error (default: info). Logs are structured JSON. Set OC_OTLP_ENDPOINT to export traces to an OpenTelemetry collector. See Troubleshooting for diagnosing failures. Local authentication is always available. To enable OIDC, configure its issuer, client ID, and client secret together. Audit Events are retained for 90 days by default. Admins can choose 1–365 days, or 0 to disable automatic pruning, through the Organization policy.

Model provider

Anthropic and OpenRouter are the target providers for OSS v0.1. Live model qualification is pending. Set OC_AI_PROVIDER to anthropic or openrouter, OC_AI_MODEL to the exact model identifier, and OC_AI_API_KEY or OC_AI_API_KEY_FILE to the credential. The model must support Tool calling and structured responses. All Organizations use the deployment’s configured model. OpenCluster manages context and output allowances automatically. Token usage reported by providers may be incomplete and is not a billing ledger. For OpenRouter, OpenCluster requires zero data retention, denies data collection, disables provider fallbacks, requires supported parameters, and sorts eligible endpoints by price. Requests fail when no eligible endpoint is available. After configuring a model, restart the control plane, check /readyz, and run an Investigation to verify provider access and structured results. Review the security model before sending production data to a model provider.

Environment reference

Webhook admission limits

Each control-plane process allows a shared burst of 600 webhook requests and restores 10 requests per second before authentication. This protects both alert and Slack intake. Changing an Integration identifier or forwarding header does not create fresh capacity. During overload, alert webhooks receive 503 and Slack receives 429. Both include Retry-After. The budget is process-wide and multiplies across replicas. Integration identifiers and credentials do not create separate in-memory quotas. The metrics endpoint exposes oc.webhooks.requests by surface and bounded result, oc.webhooks.alert_events for newly committed Alert Events, and oc.webhooks.slack_ack_duration for Slack acknowledgement latency. Each replica runs up to eight Chat and Investigation executions concurrently. Each Organization can have up to 100 unclaimed Investigations across replicas. Automatic and manually requested Investigations share that capacity. Chat admission has its own queue limit. When a model provider is configured, an alert delivery that opens new Incidents must fit all their automatic Investigations. If the current backlog cannot fit them, the whole delivery is refused with 503 and Retry-After. A delivery needing more than 100 slots receives permanent 400. Without a model provider, alert intake records Incident state without reserving Investigation capacity.