Download and Install
Latest v2.44.0 release 2026-07-31 (changelog, sha256sum)
See also the release history on GitHub.
Docker
If you are working with Docker containers then check out the Docker feature page.
Installation methods
Binary installer (Linux/BSDs)
Use the binary installer if your package manager is not supported.
With curl.
curl --proto '=https' --tlsv1.2 -sSfL https://get.static-web-server.net | shOr with GNU wget (Busybox wget is not supported).
wget --https-only --secure-protocol=TLSv1_2 -qO- https://get.static-web-server.net | shstatic-web-server will be installed by default under the /usr/local/bin directory.
Alternatively, you can install a specific version of SWS to a custom location by setting environment variables.
export SWS_INSTALL_VERSION="2.44.0" # full list at https://github.com/static-web-server/static-web-server/tags
export SWS_INSTALL_DIR="~/.local/bin"
curl --proto '=https' --tlsv1.2 -sSfL https://get.static-web-server.net | shMake sure you set the environment variables for the piped process (sh in our case), not the piping process (curl).
If you don't want to export environment variables then use:
curl --proto '=https' --tlsv1.2 -sSfL https://get.static-web-server.net | SWS_INSTALL_DIR="~/.local/bin" shArch Linux
Via Yay or your favorite AUR Helper.
yay -S static-web-server-binExherbo Linux
Add the rust repository and install the package through cave:
cave sync
cave resolve -x repository/rust
cave resolve -x static-web-serverNixOS
Via Nix (Linux/MacOS)
nix-shell -p static-web-server
# or
nix-env -iA nixpkgs.static-web-server- SWS Nix package maintained by @figsoda
- SWS Nix module maintained by @mac-chaffee
MacOS
Using Homebrew Formulae (also Linux)
# Build from source
brew install static-web-serverOr using the SWS Homebrew Tap (also Linux)
brew tap static-web-server/static-web-server
# Just the binary
brew install static-web-server-bin
# Or build from source
brew install static-web-serverWindows
Via Scoop
scoop install static-web-serverWebAssembly
Via Wasmer
wasmer run wasmer/static-web-server --net --enable-threads --mapdir /public:/my/host/dir -- --port 8787Binaries
Pre-compiled binaries are grouped by CPU architectures or features, depending on the case.
x86_64
- static-web-server-v2.44.0-x86_64-apple-darwin.tar.gz
SHA256SUM:484708863fa0fa39fbfe1a46d99c3671f46c72862dff724da2b480cdc79ced1b - static-web-server-v2.44.0-x86_64-pc-windows-gnu.zip
SHA256SUM:902997c3ee3673e7c7035903865c716f6f666b325c01c55b5d88190b8ea2c456 - static-web-server-v2.44.0-x86_64-pc-windows-msvc.zip
SHA256SUM:473011fa047b59649ff68e10c58fb303adf1255cfb6341273fb101e07c9c9b6d - static-web-server-v2.44.0-x86_64-unknown-freebsd.tar.gz
SHA256SUM:332eba13b1ee7dee96b5de5e756c611cb724b30a4df058dbb17a401fbeaca2a2 - static-web-server-v2.44.0-x86_64-unknown-linux-gnu.tar.gz
SHA256SUM:e52f775824a8a44a79d5ee3debb5174442d36cdaaef86a12bfc14920aedd1c57 - static-web-server-v2.44.0-x86_64-unknown-linux-musl.tar.gz
SHA256SUM:804bc0c31c78385ac04e9a36f3c2aa3d3170eb77d66807c2a1660c56b2026bb1 - static-web-server-v2.44.0-x86_64-unknown-netbsd.tar.gz
SHA256SUM:308b0105ad7d62552ef90aade96c5b312ad424d2d6e99d6ba8c3e6a20b53a331 - static-web-server-v2.44.0-x86_64-unknown-illumos.tar.gz
SHA256SUM:a89d94c05592872dfff93112d7a66c9d3e84675db9ddfa9a70f61fd54f761136
FIPS
- static-web-server-v2.44.0-x86_64-unknown-linux-gnu-fips.tar.gz
SHA256SUM:dffec1de09900897f6ddf3be94b52d807fc7c23eac218ee36e8dc197c2966e49 - static-web-server-v2.44.0-x86_64-unknown-linux-musl-fips.tar.gz
SHA256SUM:10e6e582997cf76f3180f92f79a316a6d614fa2ebbc4f1240f6c16c90fefbbdd
ARM64
- static-web-server-v2.44.0-aarch64-unknown-linux-gnu.tar.gz
SHA256SUM:0d986a28e0e609172c2d3a13a27dbfe19d5d425807167152a94cb71301783f91 - static-web-server-v2.44.0-aarch64-unknown-linux-musl.tar.gz
SHA256SUM:e9d6bd0b05dea441028eb4e690249ab585d711b311646bf9f420fcea01449670 - static-web-server-v2.44.0-aarch64-apple-darwin.tar.gz
SHA256SUM:5f22e1d0072a0f5bf8bb32468885d6ba7bc9df470d37f16bdd71f9697832964f - static-web-server-v2.44.0-aarch64-linux-android.tar.gz
SHA256SUM:b2a6b534b00d12ca51ef3054b5f173c176dc53193ddb5a185a269fe3dd83e1ab - static-web-server-v2.44.0-aarch64-pc-windows-msvc.zip
SHA256SUM:f082c606fb1f5c611554f64bc206f6e17e165fccba01740c7b9b7f25684ba687
FIPS
- static-web-server-v2.44.0-aarch64-unknown-linux-gnu-fips.tar.gz
SHA256SUM:7e05a2bdecf824a1e8c9b01d41ade7582a91b0e853905b78c43c330700846113 - static-web-server-v2.44.0-aarch64-unknown-linux-musl-fips.tar.gz
SHA256SUM:4e5fb6df0148484110b0459d15382084f112674dcbefa4ead47f5b84a0954bac
x86
- static-web-server-v2.44.0-i686-pc-windows-msvc.zip
SHA256SUM:5be546ef90d2f34a02fc2615a32726814aa41b6387f87985159bac395c6aeb80 - static-web-server-v2.44.0-i686-unknown-freebsd.tar.gz
SHA256SUM:db4a73b09bccde2535e3e10336e699eb7add8fb4864a2eb116d71dea77a8a8d0 - static-web-server-v2.44.0-i686-unknown-linux-gnu.tar.gz
SHA256SUM:2dcd4c47959077f07546291167c28c228cc71094c23df05cf02a6945f470f89b - static-web-server-v2.44.0-i686-unknown-linux-musl.tar.gz
SHA256SUM:7a5d60a10593570255769d8d0902efea763b73dfed4d886d561b0d4f3aa93658
ARM
- static-web-server-v2.44.0-arm-unknown-linux-gnueabihf.tar.gz
SHA256SUM:56ea8075b6868bc07eb9f1985d990bfa3ee0f4c580f06fed778797814818762d - static-web-server-v2.44.0-arm-unknown-linux-musleabihf.tar.gz
SHA256SUM:f6748a689785adb390312e01f602edb7d252ee95439d40658b8cd0fbaffcaa98 - static-web-server-v2.44.0-armv7-unknown-linux-musleabihf.tar.gz
SHA256SUM:43f8558516fcc22c8ee97089a27f81505e8441c733c8a800e3d2b330618a8ce5 - static-web-server-v2.44.0-armv7-unknown-linux-gnueabihf.tar.gz
SHA256SUM:36f9c603b1f4ce2497dc64bb19bab4d5f56bfe11f97551d00b16c939de054112
PowerPC
- static-web-server-v2.44.0-powerpc64le-unknown-linux-gnu.tar.gz
SHA256SUM:23c8f335b0861c83339a53b7ec6037224aeabe214da662503ee6a0ded1a33c6d
S390X
- static-web-server-v2.44.0-s390x-unknown-linux-gnu.tar.gz
SHA256SUM:eb82c4b3aca4c80102d92187725524696941cf53f839ac87690d584a5ae9337e
Source files
- static-web-server-2.44.0.tar.gz
SHA256SUM:aaaab02eddb488a14f021cc29a169ed7921ef7e0fe7668f38cb281d2d04d190b - static-web-server-2.44.0.zip
SHA256SUM:e6f66eac7719995a861875cd27c4beecec57a256ca357cb8083d2176100b0120