Scripts2026年5月22日·1 分钟阅读

Cobalt — Open-Source Media Downloader for Any Platform

Save videos and audio from social platforms without ads, trackers, or rate limits using a privacy-first self-hosted API.

Agent 就绪

这个资产可以被 Agent 直接读取和安装

TokRepo 同时提供通用 CLI 命令、安装契约、metadata JSON、按适配器生成的安装计划和原始内容链接,方便 Agent 判断适配度、风险和下一步动作。

Needs Confirmation · 64/100策略:需确认
Agent 入口
任意 MCP/CLI Agent
类型
Skill
安装
Single
信任
信任等级:Established
入口
Cobalt Overview
通用 CLI 安装命令
npx tokrepo install f875af5a-5575-11f1-9bc6-00163e2b0d79

Introduction

Cobalt is a media downloader that extracts video and audio from popular social platforms. It runs entirely without ads, tracking, or paywalls, and can be self-hosted as a private API instance for personal or team use.

What Cobalt Does

  • Downloads video and audio from YouTube, Twitter/X, TikTok, Reddit, Instagram, and more
  • Supports multiple quality options including highest available resolution
  • Provides both a clean web UI and a REST API for programmatic access
  • Strips tracking parameters and does not log user activity
  • Converts and remuxes media into common formats like MP4 and MP3

Architecture Overview

Cobalt is a Node.js application that acts as a proxy between the user and upstream media platforms. When given a URL, it resolves the media source, fetches stream metadata, and either redirects to the direct download link or tunnels the content through the server. The frontend is a lightweight single-page app that communicates with the backend API.

Self-Hosting & Configuration

  • Deploy with Docker using the official ghcr.io/imputnet/cobalt image
  • Configure via environment variables for port, rate limiting, and CORS
  • Supports reverse proxy setups with Nginx or Caddy for HTTPS
  • No database required; the service is stateless
  • Resource usage is low; a 1-core VPS with 512 MB RAM is sufficient

Key Features

  • Completely ad-free and tracker-free by design
  • No account registration or API key required for self-hosted instances
  • Supports downloading with or without audio, and audio-only extraction
  • Clean API that integrates easily with scripts, bots, and automation tools
  • Active development with frequent updates for platform compatibility

Comparison with Similar Tools

  • yt-dlp — CLI-focused with broader site support; Cobalt adds a web UI and API layer
  • Invidious — Focuses on YouTube playback, not downloading; Cobalt handles multiple platforms
  • MeTube — Self-hosted YouTube downloader wrapping yt-dlp; Cobalt has its own extraction engine
  • Stacher — Desktop GUI for yt-dlp; Cobalt is web-based and self-hostable

FAQ

Q: Which platforms does Cobalt support? A: YouTube, Twitter/X, TikTok, Reddit, Instagram, Tumblr, SoundCloud, Twitch clips, and several others. The list is updated as new extractors are added.

Q: Is Cobalt legal to self-host? A: Cobalt is open-source software. Legality of downloading specific content depends on your jurisdiction and the terms of service of each platform.

Q: Does Cobalt store downloaded files on the server? A: No. Cobalt streams or redirects content directly to the client without caching files on disk.

Q: Can I use the Cobalt API in my own applications? A: Yes. The JSON API accepts a URL and returns download links. It is straightforward to integrate into bots or automation scripts.

Sources

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产