dstack is an open-source alternative to Kubernetes for AI workloads, automating multi-cloud GPU provisioning and model serving within private VPCs.
dstack is an open-source control plane for provisioning and running machine learning workloads across cloud providers and local hardware. It standardizes GPU allocation through declarative YAML manifests, eliminating custom provisioning scripts and vendor wrappers. Models and training data remain inside your own infrastructure accounts, avoiding the exposure risks of shared multi-tenant platforms.
Kubernetes is the standard foundation for containerized software, but adapting it for AI introduces heavy operational friction. Running ML on Kubernetes requires GPU device plugins, storage drivers, and complex operators. For teams focused on training and inference, managing cluster machinery creates unnecessary overhead. dstack orchestrates at the compute level: it provisions spot or on-demand instances directly through cloud APIs or SSH nodes, executing workloads and terminating compute automatically when jobs finish.
The core advantage for security-conscious teams is sovereign infrastructure control. Rather than routing weights and datasets through a third-party SaaS plane, dstack executes runs entirely inside your own cloud VPCs or on-premises servers. You retain custody over cloud credentials, storage buckets, and network boundaries. Where dstack yields to Kubernetes is general application hosting; it focuses on batch tasks, model endpoints, and dev workspaces rather than general microservice fleets. Transitioning to dstack means replacing verbose Helm charts with compact YAML manifests, shedding cluster maintenance without sacrificing isolation.
Is dstack free for commercial use? Yes. Covered by the MPL-2.0, it incurs no licensing fees; users pay only for the underlying cloud or server infrastructure they consume.
dstack vs Kubernetes — which should machine learning teams choose? Choose dstack if you need an AI control plane to schedule GPU training and inference across clouds without cluster administration overhead; choose Kubernetes if you must run an enterprise microservices platform alongside your models.
Can dstack run on private on-premises GPU servers? Yes. Through SSH fleets, dstack connects to bare-metal servers or local Linux machines, pooling physical hardware alongside cloud instances under one control plane.
dstack is an effective orchestrator for teams that want multi-cloud GPU flexibility and private infrastructure ownership without administering Kubernetes, though organizations running standard web microservices will still require traditional container platforms. Its MPL-2.0 codebase protects infrastructure teams from vendor lock-in while permitting deep in-house customization, backed by active ongoing development and weekly releases that track rapid shifts in accelerator hardware.
Commands from the official package registries. Each package is matched to dstack through the registry's own link to its source code or website.
brew install dstackbrew install dstackLint, codegen, breaking-change checks and dependency management in one Git-native CLI. Open source, no registry lock-in.
Show that dstack is listed as an open-source alternative. Paste into your README: