ClipMux documentation
ClipMux is self-hosted video infrastructure, an open-source alternative to Mux and Cloudflare Stream.
ClipMux lets any app upload a video, get a playback ID, and stream it to every device as encrypted HLS: from your own storage, encoded on your own GPU or one you rent by the minute, behind playback tokens your backend signs.
It's one Go binary and Postgres. Storage, encoding and delivery each sit behind an adapter. You can move from a disk to R2, or from your server to a cloud GPU, and the API your apps call stays the same.
Choose a path
Add video to an app
Uploads, webhooks and private playback with the Node SDK, or the REST API from any language.
Run a server
Install ClipMux on a Linux machine with Docker, then connect storage, encoding and delivery.
Hand it to a coding agent
Point your agent at clipmux.com/agents.md. Every page here is also plain
Markdown.
Start here
Quickstart
Add uploads and playback to a Next.js app in four steps.
Install with one line
One command on a Linux server with Docker.
How ClipMux works
Videos, playback IDs, tokens and tracks.
API reference
Every route of the integration API, with an example.
What ClipMux does
- Uploads that resume. Browsers send parts straight to storage, and a dropped connection picks up where it left off.
- Encoding up to 4K, on the server's GPU or CPU, a PC you own, or a cloud GPU on Modal or RunPod under a monthly spend limit.
- Encrypted HLS, with keys derived when a signed viewer asks, never stored.
- Subtitles and chapters, from whisper.cpp on your own machines, or a speech API and an LLM you choose.
- Apps, keys and webhooks, so each app has its own credentials.
- Share links and analytics: views, watch time and unique viewers.
And what it doesn't: it isn't DRM, it runs as a single replica, and it doesn't do live streaming. Limitations has the full list.
Licence
The server is AGPL-3.0. The packages your app embeds, @clipmux/node,
@clipmux/player and @clipmux/uploader, are MIT.