dstack is an open-source orchestration engine for running AI workloads on any cloud or on-premises.
Project description
dstack is a unified control plane for GPU provisioning and orchestration that works with any GPU cloud, Kubernetes, or on-prem clusters.
It streamlines development, training, and inference, and is compatible with any hardware, open-source tools, and frameworks.
Accelerators
dstack supports NVIDIA, AMD, Google TPU, Intel Gaudi, and Tenstorrent accelerators out of the box.
Latest news ✨
- [2025/12] dstack 0.20.0: Fleet-first UX, Events, and more
- [2025/11] dstack 0.19.38: Routers, SGLang Model Gateway integration
- [2025/10] dstack 0.19.31: Kubernetes, GCP A4 spot
- [2025/08] dstack 0.19.26: Repos
- [2025/08] dstack 0.19.22: Service probes, GPU health-checks, Tenstorrent Galaxy
- [2025/07] dstack 0.19.21: Scheduled tasks
- [2025/07] dstack 0.19.17: Secrets, Files, Rolling deployment
How does it work?
Installation
Before using
dstackthrough CLI or API, set up adstackserver. If you already have a runningdstackserver, you only need to set up the CLI.
Set up the server
Configure backends
To orchestrate compute across GPU clouds or Kubernetes clusters, you need to configure backends.
Backends can be set up in ~/.dstack/server/config.yml or through the project settings page in the UI.
For more details, see Backends.
When using
dstackwith on-prem servers, backend configuration isn’t required. Simply create SSH fleets once the server is up.
Start the server
You can install the server on Linux, macOS, and Windows (via WSL 2). It requires Git and OpenSSH.
uv
$ uv tool install "dstack[all]" -U
pip
$ pip install "dstack[all]" -U
Once it's installed, go ahead and start the server.
$ dstack server
Applying ~/.dstack/server/config.yml...
The admin token is "bbae0f28-d3dd-4820-bf61-8f4bb40815da"
The server is running at http://127.0.0.1:3000/
For more details on server configuration options, see the Server deployment guide.
Set up the CLI
Set up the CLI
Once the server is up, you can access it via the dstack CLI.
The CLI can be installed on Linux, macOS, and Windows. It requires Git and OpenSSH.
uv
$ uv tool install dstack -U
pip
$ pip install dstack -U
To point the CLI to the dstack server, configure it
with the server address, user token, and project name:
$ dstack project add \
--name main \
--url http://127.0.0.1:3000 \
--token bbae0f28-d3dd-4820-bf61-8f4bb40815da
Configuration is updated at ~/.dstack/config.yml
Define configurations
dstack supports the following configurations:
- Fleets — for managing cloud and on-prem clusters
- Dev environments — for interactive development using a desktop IDE
- Tasks — for scheduling jobs (incl. distributed jobs) or running web apps
- Services — for deployment of models and web apps (with auto-scaling and authorization)
- Volumes — for managing persisted volumes
Configuration can be defined as YAML files within your repo.
Apply configurations
Apply the configuration either via the dstack apply CLI command or through a programmatic API.
dstack automatically manages provisioning, job queuing, auto-scaling, networking, volumes, run failures,
out-of-capacity errors, port-forwarding, and more — across clouds and on-prem clusters.
Useful links
For additional information, see the following links:
Contributing
You're very welcome to contribute to dstack.
Learn more about how to contribute to the project at CONTRIBUTING.md.
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dstack-0.20.8.tar.gz.
File metadata
- Download URL: dstack-0.20.8.tar.gz
- Upload date:
- Size: 47.0 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.30 {"installer":{"name":"uv","version":"0.9.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2d977f8aa67b7509a291eec946098a7d169495163195305a195ea717fbe15f8d
|
|
| MD5 |
dcadefbc2ec5c0e5322061b19dee7ccf
|
|
| BLAKE2b-256 |
a3ef8acbd0c11ba5288ce26a0a80ddf55b9adebf3f29da89dc15750c5fc20a00
|
File details
Details for the file dstack-0.20.8-py3-none-any.whl.
File metadata
- Download URL: dstack-0.20.8-py3-none-any.whl
- Upload date:
- Size: 16.2 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.30 {"installer":{"name":"uv","version":"0.9.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
04fe79bd92cb76ac95b402bf08a646389d287abd274663ad50cee1297924648f
|
|
| MD5 |
6b1276bc66de532a04c5c65e14fffed5
|
|
| BLAKE2b-256 |
a81948ef1e43a8c18af761ea2b359e537fe18cb132736a3926bd9920a5bbab21
|