Command line (CLI)
The azot command lets you download media, manage extensions, sign in to sites, change settings, and run MCP or a Telegram bot from your terminal or scripts.
Running the azot CLI requires Azot Pro. Account commands (login, logout, logs, --help, --version) and testing your own local extension with --extension ./folder stay free on every plan.
Installing the CLI
From the desktop app (recommended)
Open Settings > About in the desktop app and turn on Command Line Interface.
- macOS: creates a symlink at
/usr/local/bin/azot(asks for administrator permission if needed). - Windows: adds the desktop app's
azotlauncher folder to your userPATH. - Linux (
.deb/.rpm): the package already installs/usr/bin/azotautomatically. - Linux (
.AppImage): AppImage paths change on every launch, so install the standalone CLI below instead.
When installed from the desktop app, azot updates automatically alongside the desktop app.
Standalone installation (without the desktop app)
Supports Windows (x64), macOS (Apple Silicon), and Linux (x64):
curl -fsSL https://azot.mov/install.sh | shpowershell -c "irm azot.mov/install.ps1 | iex"Run the same command again to update. Set AZOT_VERSION before running the script to install a specific version.
Shared state with the desktop app
The CLI and desktop app share the same SQLite settings store, download history, installed extensions, and signed-in site sessions. A download you start in the terminal shows up in the desktop app while it runs, and azot login signs in both the CLI and the desktop app.
Quick start
Sign in to your Azot account first:
azot loginDownload one or more supported video URLs (replace <url> with a link from a supported site or direct stream):
azot "<url>"
azot download -q 1080p -o ~/Videos "<url>"
azot get --skip-video "<url>"azot <url>, azot download <url>, azot dl <url>, and azot get <url> all run the same download command.
Commands
| Command | Alias | What it does |
|---|---|---|
azot [download] <urls...> | dl, get | Download one or more URLs |
azot install <extensions...> | i | Install extension(s) from the catalog, a GitHub/GitLab repo, archive URL, or local path |
azot uninstall <extensions...> | rm | Uninstall extension(s) |
azot list | ls | List installed and active extensions |
azot list-remote | ls-remote | List extensions available in the catalog |
azot login [extension] | Sign in to your Azot account, or sign in to an extension | |
azot logout [extensions...] | Sign out of your Azot account, or sign out of extension(s) | |
azot settings [key] [value] | List all settings, read one setting, or set a value | |
azot data export <ext> [file] | Export an extension's storage and session to <ext>.azot-data.json | |
azot data import <ext> <file> | Replace an extension's storage and session from an exported file | |
azot mcp | Start the MCP stdio server for AI agents | |
azot serve telegram | serve tg | Start the Telegram download bot |
azot logs | Show log files | |
azot init | Print the npx azot@beta init command for scaffolding an extension |
Pass -d / --debug before a command to enable verbose debug logging, or --help on any command for its full option list.
Download options
Flags override your saved settings for a single run.
Quality, codecs, and tracks
| Flag | Description |
|---|---|
-q, --quality <q> | Target resolution, such as best, 2160p, 1080p, or 720p (omitting it uses your saved global or per-extension preference; pass best to override a lower saved preference) |
-v, --video-codec <list> | Preferred video codec(s), comma-separated (e.g. avc, hevc, vp9, av1) |
-r, --video-range <range> | Video dynamic range, defaults to sdr |
--video-bitrate <kbps> | Target video bitrate in kbps |
--video-dimension <dim> | 2D (default) or 3D (HSBS/HOU/FSBS/OU) |
-a, --audio-codec <list> | Preferred audio codec(s), comma-separated (e.g. aac, opus, flac) |
-c, --audio-channels <n> | Preferred audio channel count |
--audio-bitrate <kbps> | Target audio bitrate in kbps |
-l, --lang <list> | Preferred video/audio language(s), comma-separated |
-S, --subs-lang <list> | Preferred subtitle language(s), comma-separated |
--select | Interactively pick video, audio, and subtitle tracks once and apply to every episode |
--skip-video, --skip-audio, --skip-subtitles | Omit a track type |
--hardsub | Prefer hardsubbed video when available |
Episodes, trimming, and live streams
| Flag | Description |
|---|---|
-e, --episodes <spec> | Select seasons/episodes, e.g. S01E01, E04, S01-S03, S01E01-S01E04,S03 |
--trim-begin <time> | Start output at timestamp, e.g. 00:00:06 |
--trim-end <time> | End output at timestamp or offset from end, e.g. 00:01:30 or -00:00:30 |
--live-record-limit <time> | Stop recording a live stream after this duration, e.g. 01:30:00 |
Without --live-record-limit, a live stream records until it ends or until you press Ctrl+C, which finishes and saves the recording. Press Ctrl+C a second time to quit without saving.
Output, containers, metadata, and templates
| Flag | Description |
|---|---|
-o, --output <dir> | Output directory (defaults to downloadDir) |
-f, --format <fmt> | Video container: mp4, mkv, mov, ts |
--audio-format <fmt> | Audio-only container: m4a, mka, mp3, opus, ogg, flac |
--skip-mux | Keep video, audio, and subtitle tracks as separate files |
--skip-subtitles-mux | Save subtitles as external files beside the video |
-s, --subs-format <fmt> | External subtitle format: srt, vtt, ttml, ass, ssa, or original |
--season-folders / --no-season-folders | Put episodes into Season NN subfolders |
--overwrite / --no-overwrite | Replace existing files instead of numbering copies |
--embed-metadata, --embed-thumbnail | Embed tags or cover art into the output file |
--save-thumbnail, --save-info-json | Save artwork or <name>.info.json beside the file |
--movie-template, --episode-template | Override filename template ({title}, {year}, {author}, {s}, {e}, {episodeTitle}, {quality}, {codec}, {audioType}, {format}, {tag}) |
--movie-word-separator, --episode-word-separator | Word separator: space, dot, underscore, or dash |
--allow-missing-segments | Save a track missing up to 5% of its segments instead of failing |
Network, throttling, and direct streams
| Flag | Description |
|---|---|
-C, --connections <n> | Parallel HTTP connections per download (default 4) |
-R, --retry <n> | Retries on failed requests (default 3) |
--throttling / --no-throttling | Apply or ignore saved throttling limits |
--limit-rate <rate> | Combined download speed cap, e.g. 500K or 2M (turns throttling on) |
--request-interval <time> | Minimum wait between requests to the same server, e.g. 500ms or 2s |
--download-delay <time> | Wait between starting downloads and after each ends, e.g. 10s |
--proxy, --proxy-meta, --proxy-media | HTTP/HTTPS proxy for all requests, metadata only, or media only |
-H, --header <name:value> | Custom HTTP header for manifest requests (repeatable) |
Inspecting links and local extensions
| Flag | Description |
|---|---|
--dry-run | Analyze URLs and resolve playback sources without downloading media |
--json | Print --dry-run results as JSON |
--extension <dir> | Load an extension from a local folder for this run only (free on every plan) |
Signing in to extensions from the CLI
Sign in interactively or non-interactively with azot login <extension>:
# Interactive sign-in
azot login my-site
# Import cookies from an installed browser
azot login my-site --cookies-from-browser chrome
azot login my-site --cookies-from-browser auto
# Import from a Netscape cookies.txt file or raw Cookie header
azot login my-site --cookie-file ./cookies.txt
azot login my-site --cookie-header "session=..." --cookie-url https://example.com
# Token or username/password (add --no-prompt for scripts)
azot login my-site --token "$TOKEN" --no-prompt
azot login my-site --username user --password pass --otp 123456 --no-promptSupported values for --cookies-from-browser are chrome, chromium, brave, edge, helium, firefox, safari, and auto.
Sharing exported extension data
azot data export <extension> writes an unencrypted .azot-data.json file that includes the signed-in session. Share it only with people you trust.