Download and Install
Latest v2.44.3 release 2026-11-15 (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.3" # 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.3-x86_64-apple-darwin.tar.gz
SHA256SUM:0db04b0f885f7329ff229533d6d3ba300527e97fd81205d6bf5bd5ce9e1c7870 - static-web-server-v2.44.3-x86_64-pc-windows-gnu.zip
SHA256SUM:1f778d21779151f368ece32c24eab9bbde7299773e77c6f97cd6f3e5d699d3a2 - static-web-server-v2.44.3-x86_64-pc-windows-msvc.zip
SHA256SUM:105429b8e86af80f2a73f14c146fc79961252265d30136de3c2b58c97f6104e0 - static-web-server-v2.44.3-x86_64-unknown-freebsd.tar.gz
SHA256SUM:aee1a46a2f5df817765608b90da24acf838e53176a13a290fc3be0183ea5ea29 - static-web-server-v2.44.3-x86_64-unknown-linux-gnu.tar.gz
SHA256SUM:fb996f02936fc795026ae63b7027b9ab00b5389ff3a760f2ae2f3ca9a4a029b5 - static-web-server-v2.44.3-x86_64-unknown-linux-musl.tar.gz
SHA256SUM:d97a9c74be2e547c80669bcf797c1254fb3d4bac92600967081dc60f594ce30a - static-web-server-v2.44.3-x86_64-unknown-netbsd.tar.gz
SHA256SUM:341a55a1684ce6132357e6970d20ba39ac1134bff6591d6508bbb7a12a467616 - static-web-server-v2.44.3-x86_64-unknown-illumos.tar.gz
SHA256SUM:1772fa3694fd0fe4bdd2058d90b2b540017b611d2c4522710fd5239acd5a9cb7
FIPS
- static-web-server-v2.44.3-x86_64-unknown-linux-gnu-fips.tar.gz
SHA256SUM:45230ddb00fb1bf8e2df1f78faeba317f4f9eaf413f3b71cee969f0ca48884d4 - static-web-server-v2.44.3-x86_64-unknown-linux-musl-fips.tar.gz
SHA256SUM:60652bc8af0510c72081b74169b4061a4986c8fe80cec02097dfa9b03271fce8
ARM64
- static-web-server-v2.44.3-aarch64-unknown-linux-gnu.tar.gz
SHA256SUM:235938a683697fe267e3f26696d516622db77d8317c344542a22861fd7da0da1 - static-web-server-v2.44.3-aarch64-unknown-linux-musl.tar.gz
SHA256SUM:92122a4006e2d7c8dfd6525809fe266e220c7a047c98739566506614f0f16edd - static-web-server-v2.44.3-aarch64-apple-darwin.tar.gz
SHA256SUM:23221b2dbd5f0e89fee8c614deb7995eaf81448a67e067f4adeadfff4fe292b4 - static-web-server-v2.44.3-aarch64-linux-android.tar.gz
SHA256SUM:e1c5a47761c782009181321ccb08537f83c169f0aa182a11601926e8f8cf3cd0 - static-web-server-v2.44.3-aarch64-pc-windows-msvc.zip
SHA256SUM:651bb420c04d6e8eace74a82427f82a84a95aa9cafbfc2c268894fe7d5db945e
FIPS
- static-web-server-v2.44.3-aarch64-unknown-linux-gnu-fips.tar.gz
SHA256SUM:6130c88b319b8203954fd7927762ba9621ac55fd1aca23dd584ec3ad1d31077b - static-web-server-v2.44.3-aarch64-unknown-linux-musl-fips.tar.gz
SHA256SUM:63964805ebbdff9c9a12f7d4df682ee97fdca2220aba03a4da9e0c0afb6a4367
x86
- static-web-server-v2.44.3-i686-pc-windows-msvc.zip
SHA256SUM:e58a9fa26980afea326ce633c240027fc093fbbf42f5ad052bdff0108ec7675e - static-web-server-v2.44.3-i686-unknown-freebsd.tar.gz
SHA256SUM:a6f5a10e8c95cd621a8eadbcc020f58edd47aa90f928c0a74649ba0a6d0a24be - static-web-server-v2.44.3-i686-unknown-linux-gnu.tar.gz
SHA256SUM:537d9cb967d6336b32c0ad852160103949235f8200c2724721c54b354355df64 - static-web-server-v2.44.3-i686-unknown-linux-musl.tar.gz
SHA256SUM:1ce78d02bd13faaf2b00aa262526b54ea56dba84ea720aae7e920fbc8005e9f4
ARM
- static-web-server-v2.44.3-arm-unknown-linux-gnueabihf.tar.gz
SHA256SUM:eec67ffa5ec52befc479783cc053ffa28af4e6f0e3369ab3b6813e4c880fa463 - static-web-server-v2.44.3-arm-unknown-linux-musleabihf.tar.gz
SHA256SUM:92e9eced37bf12646c3d7589c0993e01912d5dfb4183355c8f7b0cd5acda2d13 - static-web-server-v2.44.3-armv7-unknown-linux-musleabihf.tar.gz
SHA256SUM:932b45157e0b9d17a9e7be674f8d1229cfdff0884107fa59e7aaac8b7a8212df - static-web-server-v2.44.3-armv7-unknown-linux-gnueabihf.tar.gz
SHA256SUM:ad08783f6c0f5d703da9aa65ad5411a0cb17c1384ef409f118f2df021fbf67f4
PowerPC
- static-web-server-v2.44.3-powerpc64le-unknown-linux-gnu.tar.gz
SHA256SUM:8850e583785f24231c5bf58513ab519a695287051764502bb5014e642da6e763
S390X
- static-web-server-v2.44.3-s390x-unknown-linux-gnu.tar.gz
SHA256SUM:58f13e4237d7c1b19280dc3b8efd6f0d797ac688198fa4405914beab9b36b6d1
Source files
- static-web-server-2.44.3.tar.gz
SHA256SUM:15b5dafb56e8d5ae01c6bd679d47e037637dad3cd70f0470c0d42282f782c79d - static-web-server-2.44.3.zip
SHA256SUM:acf77c906df32e78ede383049fd6c0435004655c4945c56c16446b341c02d0d7