---
url: /getting-started.md
---
# Getting Started

> **Local development and demo only:** The Docker Compose instructions in this guide are intended exclusively for isolated local development and demonstrations. Do not use this setup unchanged for production or test systems; those systems require a separate, non-public and appropriately secured deployment procedure.

* Install uv: <https://docs.astral.sh/uv/getting-started/installation/>
  * [Using UV during development](./development/workflow.md#working-with-uv)
* Install [Node.js 22+](https://nodejs.org/en/download/package-manager)

## ⚙️ Configure the environment

Configuration is done via **YAML configuration files** (primary) with optional **environment variable overrides**.

Each service reads a `config.yaml` mounted into the container. Environment variables can override any YAML setting using a service-specific prefix and `__` (double underscore) as the nested delimiter.

**YAML keys are lowercase** (e.g. `models:`, `redis:`, `host:`, `password:`). Environment variable names stay UPPERCASE — they are matched case-insensitively against the settings, so existing env vars remain valid.

| Service              | YAML file (in `stack/`) | Env Prefix          |
| -------------------- | ----------------------- | ------------------- |
| core-service         | `core.config.yaml`      | `MUCGPT_CORE_`      |
| assistant-service    | `assistant.config.yaml` | `MUCGPT_ASSISTANT_` |
| assistant-migrations | `assistant.config.yaml` | `MUCGPT_ASSISTANT_` |

> **Migration notes (from older versions):**
>
> * **Lowercase your `config.yaml` keys** (e.g. `models:`, `redis:`, `host:`, `password:`). Most legacy UPPERCASE YAML keys are ignored — but a top-level `SSO:` section and `ROLE`/`ADMIN_ROLE` under `sso` **fail startup validation** with an actionable error, because silently ignoring them would disable the SSO role check. Other mistakes also fail loudly at startup (missing required database fields, empty models list).
> * **Move model connection settings into a `providers` section** and reference it from each model via `provider: <key>` (see [Models Configuration](./operations/models.md#models-configuration-yaml)). Inline `type`/`endpoint`/`api_key`/`api_version` on `models[]` entries are rejected at startup with a pointer to the new scheme.
> * **Replace `MUCGPT_CORE_LANGFUSE__*` environment variables with the standard `LANGFUSE_PUBLIC_KEY` / `LANGFUSE_SECRET_KEY` / `LANGFUSE_HOST`** — the old prefixed variables are silently ignored (see [Secrets](./operations/configuration.md#secrets)).
> * **Replace `MUCGPT_ASSISTANT_DATABASE_URL` with nested DB settings** such as `MUCGPT_ASSISTANT_DB__HOST`, `__NAME`, `__USER`, and `__PASSWORD`. The full-URL override is no longer supported; missing nested settings fail migration startup with an actionable error.
> * **Remove `MIGRATION_SHOW_SQL` from assistant migration Jobs.** It is no longer supported and is ignored.

## 🚀 Initial Setup

```bash
cd stack
cp .env.example .env
cp core.config.yaml.example core.config.yaml
cp assistant.config.yaml.example assistant.config.yaml
```

## 📚 Operations guides

| Guide                                                     | Contents                                                                  |
| --------------------------------------------------------- | ------------------------------------------------------------------------- |
| [Configuration](./operations/configuration.md)            | Secrets, configuration priority, env overrides, data storage              |
| [Models](./operations/models.md)                          | Providers and models (YAML or environment variables), `model_info` fields |
| [Prompts](./operations/prompts.md)                        | Langfuse prompt configuration and local fallback prompts                  |
| [Documents](./operations/documents.md)                    | Document parsing, sensitive-content guardrails, virtual filesystem        |
| [Transcription](./operations/transcription.md)            | Browser-based speech-to-text (beta)                                       |
| [Canvas HTML whitelist](./operations/canvas-whitelist.md) | Raw HTML tags allowed on the canvas                                       |
| [LDAP](./operations/ldap.md)                              | Department tree for assistant publishing                                  |
| [SSO](./operations/sso.md)                                | OpenID Connect roles and claims                                           |
| [MCP](./operations/mcp.md)                                | MCP tool sources and tool call budgets                                    |
| [Docker stack](./operations/docker-stack.md)              | Local Compose stack, prebuilt images, database migration ordering         |
| [Troubleshooting](./operations/troubleshooting.md)        | Common failure modes                                                      |
