cobalt
Media downloader without ads, trackers or paywalls
Alternative to: savefrom.net, 4k video downloader
cobalt is a friendly, efficient media downloader with a web UI: paste a link, get the file. It has no ads, trackers or paywalls, and the API and frontend can be self-hosted with Docker Compose.
cobalt Docker Compose example
Self-host cobalt on your own server, homelab, or VPS starting from this Docker Compose example.
It runs cobalt in Docker containers using the official ghcr.io/imputnet/cobalt:latest image, with persistent volumes and automatic restarts preconfigured.
Review the environment variables and adjust them to your setup, save the file as compose.yml (or docker-compose.yml), and start the stack with docker compose up -d.
services:
cobalt:
image: ghcr.io/imputnet/cobalt:latest
init: true
read_only: true
restart: unless-stopped
environment:
# Public URL of this cobalt API instance (with trailing slash). Must be a valid URL or tunnels (proxied downloads) won't work.
API_URL: "http://localhost:9000/"
# Comma-separated list of services to disable, e.g. "bilibili,youtube". Empty enables all supported services.
DISABLED_SERVICES: ""
# Maximum media duration in seconds that the instance will process.
DURATION_LIMIT: "10800"
# Maximum number of API requests per client within the rate limit window.
RATELIMIT_MAX: "20"
# Rate limit window in seconds.
RATELIMIT_WINDOW: "60"
# Set to "0" to disable the wildcard CORS header and only allow CORS_URL.
CORS_WILDCARD: "1"
# Origin of the web frontend allowed to call this API when CORS_WILDCARD is "0".
CORS_URL: "" Prefer a managed setup? WinterFlow installs, configures, and updates cobalt for you using this same Docker Compose configuration.