Audio · CLI

YouTube Audio Downloader (CLI)

Extract authorized YouTube audio locally as original audio or MP3 at 64–320 kbps.

Use this tool in the OneKit CLI.

YouTube audio extraction cannot run reliably in a standalone browser. The CLI prepares yt-dlp, its JavaScript support, Node.js and FFmpeg automatically on first use. Downloads and conversion run on your device, up to 128 MiB.

For a direct audio file URL, use the browser audio downloader.

Downloading requires authorization

This tool does not grant permission to download or reuse content. YouTube’s terms restrict downloading except in authorized cases; check the service terms and applicable rights. Owning a work alone does not establish authorization for every method of access. No DRM bypass is provided.

Read YouTube’s official terms

Prepare your CLI command

Open YouTube ↗

A higher bitrate cannot restore detail absent from the source. Original mode keeps the source audio codec where possible and ignores the MP3 bitrate. Single completed videos only; availability depends on YouTube and can change.

onekit run audio-youtube-download --url 'https://www.youtube.com/watch?v=VIDEO_ID' --options '{"format":"mp3","quality":"192"}' -o downloads/

How to use YouTube Audio Downloader (CLI)

  1. Install the OneKit CLI on Windows, macOS or Linux.
  2. Run onekit doctor audio-youtube-download to check the Python packages and external engines required by this tool.
  3. Use onekit run audio-youtube-download with your plain text, an output destination and the required tool options. Dependencies are prepared automatically on first use.
onekit doctor audio-youtube-download

Download the OneKit CLI · CLI setup and usage

Formats and requirements

Input formats
plain text
Output
Depends on the selected output options
Availability
OneKit CLI; available in the CLI
Files per operation
1

What to expect

CLI only: extract one completed YouTube video's audio as original audio or MP3 at 64–320 kbps, up to 128 MiB. Use only when the service and applicable rights permit downloading. YouTube's terms restrict downloads; ownership alone is not a blanket authorization. No DRM bypass. Site availability can change. A higher MP3 bitrate cannot improve the source quality.

External engines declared for this operation: ffmpeg, ffprobe, node. Run the CLI dependency check for the exact requirements on your system.

Does this tool run in the browser?

This tool currently runs through the local OneKit CLI. The browser version is in development. Install its required packages or external engines before processing your files.

File privacy and local processing →

Install OneKit

Keep OneKit in its own app window, with a shortcut on your device.