Lightweight HTTP file server with WebDAV support in a single binary. Upload, download, edit, preview, and manage files from any browser.
curl -fsSL https://raw.githubusercontent.com/staceyw/goserve/main/scripts/install.sh | bash
iex (irm https://raw.githubusercontent.com/staceyw/goserve/main/scripts/install.ps1)
Downloads the binary into the current directory. Ready to run immediately.
Pick your platform binary.
Use the install script above or grab a binary for your platform.
Serve the current directory:./goserve or ./goserve -permlevel all
Open http://localhost:8080 in your browser.
Upload files and folders, rename, delete, and edit text files with syntax highlighting — all from the browser.
Built-in WebDAV endpoint. Mount as a network drive on Windows, macOS, or Linux.
Catppuccin, Dracula, Nord, Solarized, Gruvbox, One Dark, Monokai, and more. Saved in your browser.
Preview images, text, markdown, and code files directly in the browser without downloading.
Real-time search with wildcard support. Use *.go, test*, or *config* patterns.
Download entire directories as ZIP archives with one click.
Optional HTTP Basic Auth with three permission levels: readonly, readwrite, and all.
Automatic response compression for faster transfers over slow networks.
All HTML, CSS, and JS embedded. ~8 MB, pure Go, no dependencies to install. Cross-platform.
| Flag | Default | Description |
|---|---|---|
-listen | localhost:8080 | Address to listen on (repeatable) |
-dir | . | Directory to serve |
-permlevel | readonly | Permission level: readonly, readwrite, all |
-maxsize | 100 | Max upload size in MB |
-logins | Path to authentication file | |
-verbose | false | Log every HTTP request to the console |