Skip to content

miniserve

Single-binary CLI that serves files and folders over HTTP for quick sharing

Permissive (OSI) · MIT
  • Self-hosted
  • macOS
  • Linux
  • CLI

Listed by , founder & editor

56

Health

Active

Overview

Stars

8,171

Last commit

20 days ago

Nov 2026

Repository age

8 years

since Apr 2018

Latest version

v0.35.0

Apr 2026

Contributors

–

2 active in 90 days

Releases

3

last 12 months

Language

Rust

miniserve is a small command-line program written in Rust. You point it at a file or directory and it serves that path over HTTP. There is no config file and no server to set up. You grab the binary and run it.

It covers the common needs of quick sharing. You can require a username and password, including SHA-256 hashed passwords or a file of logins. You can enable TLS with your own certificate and key, add custom response headers, bind to several interfaces, and generate a random URL route. A single-page-app mode forwards unknown paths to your index file. Uploads and directory creation can be switched on, and a plain output mode suits text browsers such as lynx or w3m.

It runs on Linux and macOS and is installable through Homebrew. It is MIT licensed. It is not tied to a specific commercial product, but it fills the same role as ad hoc file-transfer services when you just need to hand files to someone on a network.

Who it's for

Developers sharing build artifacts on a local network

One command serves a folder, and teammates download it with a browser, curl or wget.

Skip if: You need user accounts, audit trails or long-term storage, because this is a transient server.

Front-end developers testing a static site or SPA

The SPA mode and custom index file let you test client-side routing without installing a web server.

Skip if: You need server-side rendering or a full reverse proxy setup.

Sysadmins moving files between machines

Optional upload, basic auth and TLS make one-off transfers possible without setting up SFTP or a share.

Skip if: You need fine-grained permissions or per-user access control.

The problem it solves

Sometimes you just need to hand a file or folder to another machine or person. Setting up a full web server, FTP or a cloud share is too much for that. This tool turns a path into an HTTP download in one command.

Strengths

  • Ships as one self-contained binary with no config file
  • Basic auth supports plain, SHA-256 hashed and file-based credentials
  • Built-in TLS, custom headers and random URL routes
  • Optional file upload and directory creation, usable with curl
  • Single-page-app mode and raw output for text browsers

Trade-offs

  • Only one shared login scheme; no per-user permissions
  • Designed for short-lived sharing, not as a permanent file host
  • Upload flag syntax needs care because -u can take paths
  • Only two to three contributors active recently

Self-host miniserve

Self-hostable
Yes
Hosted plan
From $4/month · pricing

Frequently asked questions

Is miniserve free?

Yes. It is open source under the MIT license.

Which platforms does it run on?

Linux and macOS, as a command-line tool. A Homebrew formula is available.

Can I password-protect what I serve?

Yes. Use the auth option with a username and password, a SHA-256 hash, or a file of logins.

Does it support HTTPS?

Yes. Pass a certificate and key with the TLS options.

Can people upload files to it?

Yes, if you start it with the upload flag. You can upload through the browser or with curl.

Similar tools in File sharing and transfer tools

linx-server

File sharing and transfer tools

Self-hosted file and media sharing site with expiring links, written in Go

1.6k 194 2 years ago Dormant GPL-3.0

Palmr

File sharing and transfer tools

2.4k 107 9 months ago Dormant Apache-2.0

Zipline

File sharing and transfer tools

3.5k 263 4 days ago Thriving MIT

Directory Lister

File sharing and transfer tools

2.5k 513 25 days ago Active MIT

PairDrop

File sharing and transfer tools

12k 734 7 months ago Dormant GPL-3.0