The best open source alternative to LocalStack is Spinifex. If that doesn't suit you, we've compiled a ranked list of other open source LocalStack alternatives to help you find a suitable replacement.
LocalStack alternatives are mainly Cloud Computing Services. Browse these if you want a narrower list of alternatives or looking for a specific functionality of LocalStack.
Spinifex recreates EC2, S3, EBS, VPC, IAM, and more on your own hardware, so AWS-built software runs unchanged without touching a hyperscaler.

Spinifex is an open-source platform that runs AWS-compatible APIs on infrastructure you own. If your software already talks to EC2, S3, EBS, VPC, or IAM, it keeps working on Spinifex without any code changes. Same AWS SDKs, same Terraform configs, same CLI. You change where the workload runs, not what it is.
The core use case is straightforward: move workloads off hyperscalers, run them on your own racks, at the edge, or on a Neocloud partner, without re-platforming. It's particularly relevant for sectors where data sovereignty, air-gapped deployments, or cost control matter most: defence, healthcare, financial services, energy, and AI/ML teams paying GPU rates to a hyperscaler.
Spinifex didn't just wrap an existing API layer. The engineering underneath was rebuilt from scratch:
Deployment shapes are flexible. Spinifex runs on a single node, a cluster, an edge box, or an air-gapped rack. The API surface stays the same across all three.
Licensed under AGPL-3.0, the core is auditable and self-hostable. You're not dependent on a vendor's continued goodwill to keep running your own infrastructure.