---
title: Install dltHub
sidebar_label: Installation
description: Install dlt[hub], create a workspace, and license paid features
keywords: [installation, dlthub, dlthub-init, dlthub-start, workspace mode, license]
---
# Installation

:::info Supported Python versions

dltHub currently supports Python versions 3.10-3.14. The commands of the dltHub platform, such as `dlthub login` and `dlthub deploy`, need Python 3.11 or later.

:::

## What is a dltHub workspace?

A workspace is one data project kept as code, together with its configuration and profiles. It bundles the pipelines that load the data, the datasets and schemas that they write, the transformations, the data quality checks, the notebooks, the agents, and the jobs that run all of them.

On your machine, the workspace is a Python project with a `.dlt` folder: the **local workspace**. When you deploy, it runs on the managed dltHub platform as a **workspace deployment**, one for each environment such as `prod` or `staging`, so what you build locally is what runs in production. See [What is a workspace](../pipeline-operations/what-is-a-workspace.md) for the full picture.

For the wider feature surface that a workspace unlocks — [profiles](../pipeline-operations/profiles.md), [data quality](../data-quality/index.md), [transformations](../transformations/index.md), the [managed platform](../pipeline-operations/overview.md), the [dashboard](../ingestion/dashboard.md) — see the [introduction](introduction.md).

### Playground destination

When you deploy and run pipelines on the dltHub platform, you can use `destination="playground"` without configuring credentials or storage. The platform provisions isolated storage for each workspace and loads your pipeline data as [Delta tables](../ingestion/delta.md). Use it for testing and for a faster introduction to the platform — set `destination="playground"` in your pipeline and run. Read more about [playground destination](../ingestion/playground.md).

## Quickstart

If you already have `uv` installed:

```cli
uvx dlthub-start@latest
```

If you don't have `uv` yet, either [install it first](#setting-up-your-environment) or run via `pipx` — the CLI will offer to install `uv` for you before syncing dependencies:

```sh
pipx run dlthub-start
```

Either way, it runs a guided first experience — it scaffolds the workspace, installs `dlt[hub]` and dependencies with `uv sync`, logs you in to the dltHub platform, connects your personal [Playground workspace](../pipeline-operations/playground-workspace.md), then prompts you to pick a coding agent (Claude / Cursor / Codex) and launches it. Your agent deploys and runs the sample pipeline, then is ready to build your own source.

:::tip
Run `dlthub-start` yourself with no arguments — it's interactive and guides you through each step. It scaffolds into your current folder, so the AI skills land right where your coding agent is open. For a walkthrough of the whole flow, see [Deploy your first pipeline](onboarding.md).
:::

## Setting up your environment

### Configuration of the Python environment

This documentation uses `uv` (a modern package manager) to install Python versions, manage virtual environments, and manage project dependencies.
To install `uv`, you can use `pip` or follow [the OS-specific installation instructions](https://docs.astral.sh/uv/getting-started/installation/).

Once you have `uv` installed you can pick any Python version supported by it:

```cli
uv python install 3.13
```

or use any Python version you have installed on your system.

### Virtual environment

Working within a [virtual environment](https://docs.python.org/3/library/venv.html) is recommended when creating Python projects.
This way, all the dependencies for your current project are isolated from packages in other projects. With `uv`, run:

```cli
uv venv
```

This creates a virtual environment in the `.venv` folder using the default system Python version.

```cli
uv venv --python 3.13
```

This uses `Python 3.13` for your virtual environment.

Activate the virtual environment using the instructions displayed by `uv`, i.e.:

```sh
source .venv/bin/activate
```

## Add dltHub to an existing project

To add dltHub to an existing project, run:

```cli
uvx dlthub-init@latest
```

This scaffolds a workspace, installs `dlt[hub]`, and sets up the AI skills your coding agent uses. It asks before it changes your existing files. The `dlt[hub]` extra pulls in two plugin packages:

* `dlthub`—enables the `dlthub` command and features like AI toolkits and transformations
* `dlthub-client`—enables access to the [managed dltHub platform](../pipeline-operations/overview.md) (login, deploy, run, serve and more). It is installed on Python 3.11 or later.

Workspace-level dependencies (destinations like `duckdb`, plus tools like `marimo` or `fastmcp` used by notebooks and MCP jobs) are managed in the generated `pyproject.toml`, not via `dlt` extras—extend it with `uv add <package>`.

## Upgrade existing installation

To upgrade just the `hub` extra without upgrading `dlt` itself run:

```cli
uv pip install -U "dlt[hub]==1.27.0"
```

This keeps the current `1.27.0` `dlt` and upgrades `dlthub` and `dlthub-client` to their newest matching versions.

:::tip
A particular `dlt` version expects `dlthub` and `dlthub-client` versions in a matching range. For example: `1.27.x` expects
`0.27.x` of each plugin. This is enforced via dependencies in the `hub` extra and at import time. Installing a plugin directly won't change the
installed `dlt` version (to prevent unwanted upgrades). For example, if you run:

```cli
uv pip install dlthub
```

and it downloads `0.28.0` of the plugin, `dlt` `1.27.0` is still installed but reports a wrong plugin version on import (with instructions
how to install a compatible plugin version).
:::

## Enable workspace mode

The full dltHub feature surface—profiles, the `dlthub` CLI host, and [managed-platform commands](../pipeline-operations/overview.md)—is gated behind **Workspace mode**, signaled by a `.dlt/.workspace` marker file. The simplest way to turn it on is:

```cli
uvx dlthub-init@latest
```

This scaffolds a fresh, ready-to-run dltHub workspace—the `.dlt/.workspace` marker, local config and secrets, dependencies, and the dltHub AI skills your coding agent uses—and installs everything with `uv sync`. See [Initialize a pipeline](../ingestion/init.md) for the next steps.

If you'd rather flip the toggle by hand in an existing project, create the empty marker file yourself:

<Tabs values={[{"label": "Ubuntu", "value": "ubuntu"}, {"label": "macOS", "value": "macos"}, {"label": "Windows", "value": "windows"}]} groupId="operating-systems" defaultValue="ubuntu">
<TabItem value="ubuntu">

```sh
mkdir -p .dlt && touch .dlt/.workspace
```

  </TabItem>
  <TabItem value="macos">

```sh
mkdir -p .dlt && touch .dlt/.workspace
```

  </TabItem>
  <TabItem value="windows">

```sh
mkdir .dlt
type nul > .dlt\.workspace
```

  </TabItem>
</Tabs>
