# 使用 Homebrew 安装 dstack

查看 dstack 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:dstack
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install dstack
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:dstack
- **软件包管理器:** Homebrew
- **版本:** 0.20.29
- **来源摘要:** ML workflow orchestration system designed for reproducibility and collaboration
- **主页:** <https://dstack.ai/>
- **最后更新:** 2026-07-25T12:52:13Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- dstack (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.20.29
## 项目历史与用法

dstack is an open-source control plane and CLI for provisioning and orchestrating GPU and AI workloads across cloud providers, Kubernetes, and on-premises machines. Its package-manager identity is a Python-distributed ML infrastructure tool that gives users a local `dstack` command, a server, and YAML workload definitions.

### 项目历史

The package trail starts on PyPI in September 2021, while the GitHub repository was created in January 2022. The project evolved from a reproducible ML workflow tool into a broader GPU orchestration system covering development environments, training tasks, services, fleets, volumes, and backends.

By 2026 the README described dstack as a unified control plane for GPU provisioning and orchestration across GPU clouds, Kubernetes, and on-prem clusters, with support for NVIDIA, AMD, Google TPU, and Tenstorrent accelerators. The docs and README also show the project adapting to agentic workflows through dstack skills for tools such as Claude, Codex, and Cursor.

### 采用历史

Distribution is source-backed through PyPI and Homebrew. PyPI metadata records hundreds of releases and version 0.20.26 in June 2026, while the Homebrew formula uses the same release from the Python source distribution.

Homebrew analytics are modest compared with general-purpose infrastructure tools, but the formula matters because it gives macOS and Linux users a package-manager path into a Python ML orchestration stack without starting from a source checkout.

### 使用方式

Typical usage starts with installing the CLI or server, running `dstack server`, adding a project with a server URL and token, and applying YAML configurations from a repository. The official README documents `.dstack.yml` workload files and user or server configuration under `~/.dstack`.

The package is aimed at teams that want one workflow for development environments, batch tasks, training jobs, services, and GPU fleet management across different compute backends.

### 为什么软件包爱好者会关心

dstack is notable as part of the modern wave of ML infrastructure CLIs that package cloud, Kubernetes, GPU scheduling, and developer workflow into a single local command. It sits in the same package-manager lane as tools that developers install before a full platform is available.

For package nerds, its interesting wrinkle is the mix of Python packaging, Homebrew distribution, server configuration, repo-local YAML definitions, and rapidly changing AI accelerator support.

### 时间线

- 2021-09: PyPI records the first dstack release artifacts.
- 2022-01: The current GitHub repository is created.
- 2025-12: dstack 0.20.0 release line emphasizes fleet-first UX and events.
- 2026-06: PyPI and Homebrew package dstack 0.20.26.

### Related projects

- Kubernetes is one of the supported orchestration backends.
- PyPI is the upstream package distribution channel used by the Homebrew formula.
- Claude, Codex, and Cursor are named in the README as agent clients that can use dstack skills.

### 来源

- <https://github.com/dstackai/dstack>
- <https://dstack.ai/docs>
- <https://pypi.org/pypi/dstack/json>
- <https://formulae.brew.sh/api/formula/dstack.json>


## 安全说明

infrastructure mutation or orchestration signal.

- **Geiger 风险:** orange / 中
- infrastructure mutation or orchestration signal


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: .dstack.yml, ~/.dstack/config.yml, ~/.dstack/server/config.yml

## Credential files

- Unix: ~/.dstack/config.yml, ~/.dstack/server/config.yml

## Combined YAML source

View the package source record on GitHub. [combined/dstack.yml](https://github.com/mxcl/pkgdb/blob/main/combined/dstack.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- cross-ecosystem install command graph
