Video infrastructure you host.

Upload, encode and stream encrypted HLS from servers you own. An open-source alternative to Mux and Cloudflare Stream.

$ curl -fsSL https://clipmux.com/install.sh | sudo sh

Linux with Docker. Postgres, Caddy and the dashboard come with it.

ClipMux's video libraryThe Encoding pageCaptions and AIA video with subtitlesApps, keys and webhooks
0:00 / 0:40
Upload

What this video went through

  1. 00:00Upload finished4 min 12 s, 1080p source
  2. 00:21Encoding startedModal, L4
  3. 01:03video.asset.ready5 renditions, AES-128
  4. 02:40video.asset.track.readyEnglish subtitles, whisper.cpp
  5. 02:52video.asset.track.readyChapters, Claude

Shown with example times until the demo recording is published; then the player streams it from media.clipmux.com and these rows come from its own event history.

Add video to your app in four steps

Uploads, webhooks and signed playback with the Node SDK. The browser never sees an API key or a signing key.

The handler is a plain Fetch handler, so it also runs in SvelteKit, Remix, Bun, Deno and Cloudflare Workers.

Any other language
sign a playback token
import time

import jwt  # pip install "pyjwt[crypto]"


def playback_token(
    playback_id: str,
    signing_key_pem: str,
    kid: str,
    viewer_id: str | None = None,
    audience: str = "v",
    ttl: int = 900,
) -> str:
    """A token for a signed playback ID, signed with your app's signing key.

    signing_key_pem is CLIPMUX_SIGNING_KEY and kid is CLIPMUX_SIGNING_KID.
    audience is "v" to play, or "t" for the poster. viewer_id, when given,
    counts unique viewers; ClipMux keeps only a keyed hash of it.
    """
    now = int(time.time())
    claims = {"sub": playback_id, "aud": audience, "iat": now, "exp": now + ttl}
    if viewer_id:
        claims["vid"] = viewer_id
    return jwt.encode(claims, signing_key_pem, algorithm="ES256", headers={"kid": kid})
terminal
npm i @clipmux/node @clipmux/uploader @clipmux/player
npx @clipmux/node init --server https://video.example.com

Change where videos are stored, encoded or served. Your code stays the same.

Storage, encoding and delivery each sit behind an adapter. Pick a piece on each track.

Storage
Encoding
Delivery

Storage: This server

Videos are stored on the server’s own disk, next to Postgres. The simplest start; move to a bucket later without re-encoding.

Leaves your servers: nothing.

Encoding: This server’s GPU

The built-in worker uses NVENC or VAAPI when it finds a GPU, and the CPU when it doesn’t. ffmpeg runs under Landlock and seccomp.

Leaves your servers: nothing.

Delivery: ClipMux

The built-in handler checks tokens, derives keys and serves HLS straight from the server, behind Caddy.

Leaves your servers: nothing.

app/api/clipmux/[action]/route.tsUnchanged
export const POST = clipmuxHandler({
  upload,    // who may upload
  playback,  // who may watch
  asset,     // a verified webhook
})

Encrypted before it’s stored

Every output is AES-128 fMP4 HLS. Stored files, cached copies and leaked segment URLs are all ciphertext.

GET https://media.example.com/v/…/pid_…/1080p/seg_00042.m4s
00000000  9f 3a c1 7e 52 08 d4 e6  b1 0c 7f 29 e8 44 a3 5d
00000010  c6 71 2b f0 98 1e 6a d3  47 bc 05 e9 3f 82 ad 14
00000020  5e d8 63 0a f7 b4 29 c5  1d 86 ee 3b 70 9a 42 cf
00000030  08 f1 b6 4d 2c 95 7a e3  61 d0 3e a8 17 5b c9 84

AES-128 ciphertext. The key is derived when a signed viewer asks, and is never stored.

  • Your backend signs playback tokens

    Short-lived ES256 tokens, signed locally with no call to ClipMux. Playback IDs are public or private, and revocable. Signed playback

  • Keys are derived at delivery

    Content keys come from one secret held outside the database. They are never written to storage. How encryption works

  • Encoders never hold storage credentials

    A worker gets URLs signed for its one job. Modal, RunPod or a PC at home never see your bucket keys. Security model

  • ffmpeg runs in a sandbox

    Landlock and seccomp, worker file names treated as untrusted, routes default-deny, and two-factor sign-in for the owner. Security checklist

  • What it isn’t

    This deters copying. It isn’t DRM: anyone who can watch a video can record their screen. What encryption does and doesn’t do

Everything from upload to analytics

One Go binary and Postgres, with a dashboard you’ll actually use, light and dark, on a laptop or a phone.

The video libraryThe video library
The video library

Hand it to your coding agent

Install the ClipMux skills, or point your agent at the guide the SDK ships. Every docs page is also plain Markdown.

Paste this into Claude Code, Cursor or Codex

Read https://clipmux.com/agents.md, then add ClipMux uploads, webhooks and signed playback to this app.

The API key never reaches browser code.
$ npx skills add visheshgubrani/clipmux

Run it on your own server

$ curl -fsSL https://clipmux.com/install.sh | sudo sh
  • Linux on amd64 or arm64
  • Docker with Compose v2
  • Ports 80 and 443 free
  • Two DNS names: one for the dashboard, one for media

ClipMux serves Edural’s course videos in production.

Coming from Mux or Cloudflare Stream? The migration guides map each concept across and say what ClipMux doesn’t have; the limitations page lists the rest.

AGPL-3.0 for the server. MIT for everything your apps embed: the SDK, the uploader, the player and the Worker.

Built on FFmpeg, Shaka Packager, whisper.cpp, Video.js, PostgreSQL and Caddy.