> ## Documentation Index
> Fetch the complete documentation index at: https://lightdash-refactor-full-audit-reorg.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Enterprise on-prem setup

> Guide for deploying Lightdash Enterprise Edition on-prem, on prem, on premises, on-premises on your own infrastructure. FedRAMP ready.

This guide covers the setup requirements and best practices for deploying Lightdash Enterprise Edition on-prem (on prem, on-premises, on premises). Lightdash Enterprise supports FedRAMP-ready deployments for government and regulated industries.

## Prerequisites

* Postgres database with the `pgvector` extension installed

## Accessing the Lightdash image

The Lightdash image is available on [DockerHub](https://hub.docker.com/repository/docker/lightdash/lightdash/tags). Pin a specific version in production rather than `latest`:

```bash theme={null}
docker pull lightdash/lightdash:0.2248.3
```

For the versioning policy, upgrade cadence, and how to rehearse upgrades in UAT, see [Upgrading Lightdash](/self-host/upgrading).

## License key

A license key is required for Enterprise Edition features. Set it via the `LIGHTDASH_LICENSE_KEY` environment variable — the Lightdash team shares your key via 1Password. See [Enterprise License Keys](/self-host/customize-deployment/enterprise-license-keys) for configuration, validation, and network requirements.

### After activating your license key

Once your license key is active, most Enterprise features are controlled by environment variables. To enable a specific feature, you'll need to set the corresponding variable:

| Feature                           | Environment variable                     | Documentation                                                                              |
| --------------------------------- | ---------------------------------------- | ------------------------------------------------------------------------------------------ |
| Custom roles                      | `CUSTOM_ROLES_ENABLED=true`              | [Custom roles](/workspace-admin/custom-roles)                                              |
| AI agents                         | `AI_AGENTS_ENABLED=true`                 | [AI agents](/agents)                                                                       |
| Multi-agent Slack channels (Beta) | `SLACK_MULTI_AGENT_CHANNEL_ENABLED=true` | [Multi-agent Slack channels](/agents/set-up-agents#setting-up-a-multi-agent-slack-channel) |
| Caching                           | `RESULTS_CACHE_ENABLED=true`             | [Caching](/semantic-layer/caching)                                                         |
| Embedding                         | `EMBEDDING_ENABLED=true`                 | [Embedding](/embed/reference)                                                              |
| MCP                               | `MCP_ENABLED=true`                       | [MCP integration](/self-host/customize-deployment/configure-mcp-for-lightdash)             |

You can [search "enterprise" on the environment variables page](/self-host/customize-deployment/environment-variables) to see all variables that require an Enterprise license key.

<Tip>
  If you need help enabling features or troubleshooting your deployment, contact the Lightdash team.
</Tip>

## Migration from OSS

If you're migrating from the open-source version to Enterprise Edition:

1. Migrate to a commercial version matching your current OSS version
2. Once a single container is running the commercial version, the connected database will be upgraded to include the commercial schemas
3. Any other OSS containers will fail on restart but can be run temporarily
4. Roll out the commercial version to all containers as soon as the first container successfully migrates
