# 使用 Homebrew 安装 dstack

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install dstack
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:dstack
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/dstack>
- **版本:** 0.20.29
- **来源摘要:** ML workflow orchestration system designed for reproducibility and collaboration
- **主页:** <https://dstack.ai/>
- **上游文档:** <https://dstack.ai/>
- **许可证:** MPL-2.0
- **源码归档:** <https://files.pythonhosted.org/packages/83/a4/a647cf3c252ae7421c60b5e386f9e00b1bfea4c5474c376cc734a13a9fd6/dstack-0.20.29.tar.gz>
- **最后更新:** 2026-08-04T12:18:24Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- dstack (cli)
- dstack (别名)

## 依赖

- certifi
- cryptography
- libsodium
- libyaml
- python@3.13
- rpds-py

## 构建依赖

- pkgconf
- rust

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.20.29
- 管理器更新时间: 2026-08-04
- 本地数据: OK
- 上游仓库: https://dstack.ai/
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

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
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** dstack
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable


## 相关链接

- [Cloud CLI packages](https://pkg.so/zh-hans/cloud-clis/) - Belongs to a cloud or infrastructure command family.
- [MCP tool packages](https://pkg.so/zh-hans/mcp-tools/) - Mentions MCP or Model Context Protocol.
- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [AI and agent packages](https://pkg.so/zh-hans/ai-agent-tools/) - Matched AI model, agent, coding-agent, orchestration, or MCP metadata.
- [python@3.13](https://pkg.so/zh-hans/brew/python-3-13/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Build dependency declared by Homebrew.
- [rust](https://pkg.so/zh-hans/brew/rust/) - Build dependency declared by Homebrew.
- [gastown](https://pkg.so/zh-hans/brew/gastown/) - Shares pkgdb curated category or tags: ai, cli, orchestration.
- [ralph-orchestrator](https://pkg.so/zh-hans/brew/ralph-orchestrator/) - Shares pkgdb curated category or tags: ai, cli, orchestration.
- [kagent](https://pkg.so/zh-hans/brew/kagent/) - Shares pkgdb curated category or tags: ai, cli, kubernetes, orchestration.
- [pytorch](https://pkg.so/zh-hans/brew/pytorch/) - Shares pkgdb curated category or tags: ai, cli, gpu, machine-learning.
- [fabric-ai](https://pkg.so/zh-hans/brew/fabric-ai/) - Shares pkgdb curated category or tags: ai, cli, orchestration.
- [claude-squad](https://pkg.so/zh-hans/brew/claude-squad/) - Shares pkgdb curated category or tags: ai, cli, orchestration.
- [aoe](https://pkg.so/zh-hans/brew/aoe/) - Shares pkgdb curated category or tags: ai, cli, orchestration.
- [oh-my-agent](https://pkg.so/zh-hans/brew/oh-my-agent/) - Shares pkgdb curated category or tags: ai, cli, orchestration.
- [pocket-tts](https://pkg.so/zh-hans/brew/pocket-tts/) - Both packages touch the same language runtime or ecosystem. Shared terms: ai, certifi, cli, designed, learning.
- [strands-agents-sops](https://pkg.so/zh-hans/brew/strands-agents-sops/) - Both packages touch the same language runtime or ecosystem. Shared terms: ai, certifi, cli, cryptography, orchestration.

## 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
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- cross-ecosystem install command graph
