Download and Install
Latest v2.44.1 release 2026-10-07 (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.1" # 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.1-x86_64-apple-darwin.tar.gz
SHA256SUM:cf1e911c44ba8fd7b6e3641532293228d2c70829f13adf9d3664e56bdbc9672c - static-web-server-v2.44.1-x86_64-pc-windows-gnu.zip
SHA256SUM:e96e2c8b1ae4a4beb95a1abcead8bfed2b744429ef61a87e45e01fff98088062 - static-web-server-v2.44.1-x86_64-pc-windows-msvc.zip
SHA256SUM:0ac7ecb75baa1b367b5d9acac36535906d37383a99be1fb64dce8d2f07a2ab8c - static-web-server-v2.44.1-x86_64-unknown-freebsd.tar.gz
SHA256SUM:d362f22a544317accb96e44c50dc28697c6f2a500ebc7bac0ed2ad491c139dd1 - static-web-server-v2.44.1-x86_64-unknown-linux-gnu.tar.gz
SHA256SUM:a71fb43143d0964f82417178fa56d8f6ee4b33f49ddde4b2263d97404fdfbbc4 - static-web-server-v2.44.1-x86_64-unknown-linux-musl.tar.gz
SHA256SUM:8f94abd9bc9c6d11240301d7271b95f9ec05b1b3e8509087c86ca8fd0b56fb4e - static-web-server-v2.44.1-x86_64-unknown-netbsd.tar.gz
SHA256SUM:f11f5c1ac78ceb38da76574260a2ef762a573d5b9d5a037cc422adc95df12662 - static-web-server-v2.44.1-x86_64-unknown-illumos.tar.gz
SHA256SUM:146c246371120f8cbe7ef4182425c09cae601c39b67873dad00a10ec92e823eb
FIPS
- static-web-server-v2.44.1-x86_64-unknown-linux-gnu-fips.tar.gz
SHA256SUM:9d8399446e5c11f9cc819ee8bda7167173b4be06ec167946a38aa01d7bf972a0 - static-web-server-v2.44.1-x86_64-unknown-linux-musl-fips.tar.gz
SHA256SUM:5a688ef168bfa3878b611d9ead812efb1a8be24a46c69b3d09090714dca5bed1
ARM64
- static-web-server-v2.44.1-aarch64-unknown-linux-gnu.tar.gz
SHA256SUM:94ff6d02390c28a8b32fc379fb7706a73d2ea54911790ad231a067f28ef96a0e - static-web-server-v2.44.1-aarch64-unknown-linux-musl.tar.gz
SHA256SUM:28e53e5979735309ec3de685330719a11a0ef339aa06d0f0cd8eff5d973b9dfc - static-web-server-v2.44.1-aarch64-apple-darwin.tar.gz
SHA256SUM:7f8dfb36f6902ea72878634438e76e63461300a0d154abe561834ab434a5a7fe - static-web-server-v2.44.1-aarch64-linux-android.tar.gz
SHA256SUM:38941b37ae8ad592d771e9fcc18cf81c82f729c758d5b40850952b5a98d1044f - static-web-server-v2.44.1-aarch64-pc-windows-msvc.zip
SHA256SUM:043b974236cc535618ae42422610bd2a1ecbc04d54277c8bf0bb1e3036e20014
FIPS
- static-web-server-v2.44.1-aarch64-unknown-linux-gnu-fips.tar.gz
SHA256SUM:d101799a5a496824d44029e49f58c74a9edf8c62ff70b0ad014e20ebdea7149b - static-web-server-v2.44.1-aarch64-unknown-linux-musl-fips.tar.gz
SHA256SUM:f43ed73ff2a77a98686e94884ced27e547ebe36663d99dd28d6e14e4c149dd56
x86
- static-web-server-v2.44.1-i686-pc-windows-msvc.zip
SHA256SUM:8ed1768e39d9ea90a738566b25fc59ffb29ccdb653089111e3f4bea478e9fe5a - static-web-server-v2.44.1-i686-unknown-freebsd.tar.gz
SHA256SUM:1077c7fe05a2402a281b2ee47d7127bfdbbd6976824eeb16443595f1fdb6058b - static-web-server-v2.44.1-i686-unknown-linux-gnu.tar.gz
SHA256SUM:b0ec1d3e4547d1d595f4edbd83e9054a47a13858891ca4bcd5dbb733db417bfc - static-web-server-v2.44.1-i686-unknown-linux-musl.tar.gz
SHA256SUM:c3838219d2385fbdde0984c7bde0cceab8dd0ae4c27576280730802a37b390cb
ARM
- static-web-server-v2.44.1-arm-unknown-linux-gnueabihf.tar.gz
SHA256SUM:a11f00f12d5ae3053983e0460e057b705c0334a5779637bf1fb8c0b1f97565d7 - static-web-server-v2.44.1-arm-unknown-linux-musleabihf.tar.gz
SHA256SUM:7d24dc83ad6a2255ef73d533f0ba49adb7250dee115b432330b631486e69cb94 - static-web-server-v2.44.1-armv7-unknown-linux-musleabihf.tar.gz
SHA256SUM:edd53dfd052fac10b36ec2ce3668ac05f379a3ec0cc0a61abbbeb89939fb0517 - static-web-server-v2.44.1-armv7-unknown-linux-gnueabihf.tar.gz
SHA256SUM:62acb17b00c236ca6f54b432216184c897d7673f98efba4b50d5f0b0e91b99c2
PowerPC
- static-web-server-v2.44.1-powerpc64le-unknown-linux-gnu.tar.gz
SHA256SUM:ccda9b701aa07693dcba17de957a221655354a6bee47cf35e8aa317f518fc030
S390X
- static-web-server-v2.44.1-s390x-unknown-linux-gnu.tar.gz
SHA256SUM:3520656af3a6baeb07e8c1aca4d7073b9952a6e95c2545de06b81440f90a8102
Source files
- static-web-server-2.44.1.tar.gz
SHA256SUM:448f20b95e4a7e08fdaad372544bfa6faeeb7a37709658f80fcd81b9b8b80345 - static-web-server-2.44.1.zip
SHA256SUM:a5bb227421c6b105ca461d5b9d0bfe33f6f56ec7426b675e2f59e846328d441c