git clone https://github.com/dstackai/dstack
cd dstackhttps://docs.astral.sh/uv/getting-started/installation
curl -LsSf https://astral.sh/uv/install.sh | shuv sync --all-extrasdstack will be installed into the project's .venv in editable mode and can be run with uv run dstack.
Alternatively, if you want to manage virtual environments by yourself, you can install dstack into the activated virtual environment with uv sync --all-extras --active.
Code formatting and linting can be done automatically on each commit with pre-commit hooks:
uv run pre-commit installThe CI runs pyright for type checking dstack Python code.
So we recommend you configure your IDE to use pyright/pylance with standard type checking mode.
You can also install pyright and run it from the CLI:
uv tool install pyright
pyright -p .See FRONTEND.md for the details on how to build and develop the frontend.
See DOCS.md for the details on how to preview or build the documentation.