██████╗ █████╗ ██████╗ ██████╗ ██████╗ ████████╗ ██╔════╝██╔══██╗██╔══██╗██╔══██╗██╔═══██╗╚══██╔══╝ ██║ ███████║██████╔╝██████╔╝██║ ██║ ██║ ██║ ██╔══██║██╔══██╗██╔══██╗██║ ██║ ██║ ╚██████╗██║ ██║██║ ██║██║ ██║╚██████╔╝ ██║ ╚═════╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝ ╚═╝
Download and convert video in your terminal. Paste a link from YouTube or any of
1,300+ other sites, press d, and it's saved. Carrot also converts files already on your
computer to 51 formats.
Install · Quick start · Keys · Features · Command line · Formats · Settings and files · Troubleshooting · Development
Install
macOS and Linux
curl -LsSf https://raw.githubusercontent.com/Yore-Des/carrot-leaf/main/install.sh | sh
Windows (PowerShell)
powershell -ExecutionPolicy ByPass -c "irm https://raw.githubusercontent.com/Yore-Des/carrot-leaf/main/install.ps1 | iex"
The script installs everything Carrot needs: uv, the app, its own yt-dlp and Deno, and ffmpeg (about 50 MB). You don't need anything set up first.
Already use uv or pipx?
uv tool install carrot-leaf
pipx install carrot-leaf # needs Python 3.10+
carrot setup # optional: get ffmpeg now instead of on first launch
To skip the ffmpeg download in the install script, set CARROT_LEAF_NO_FFMPEG=1.
Carrot then fetches it in the background the first time you open it.
Quick start
- Run
carrot. - Paste a link. The title, length, upload date and thumbnail appear.
- Press
tab, thendfor the best MP4 orcto choose a format.
Keys
| Key | Does |
|---|---|
| Get videos | |
d |
Download at the best quality, as MP4 |
c |
Convert: pick a format and quality, a clip, subtitles and more |
e |
Pick which videos of a playlist or channel to get |
v |
Load the link Carrot found on your clipboard |
x |
Cancel the current download |
p |
Pause the queue. Running downloads finish, waiting ones hold |
| Your library | |
h |
History of everything you've saved |
a |
Follow this playlist or channel, or this video's channel |
w |
What's new in everything you follow |
/ |
Search what was said in your downloads |
o |
Show the last download in Finder or Explorer |
| App | |
ctrl+t |
Switch between Download and Convert files |
s |
Settings: download folder, file names, cookies |
t |
Pick a theme |
l |
List supported sites, or paste a link to check it |
u |
Update yt-dlp |
q |
Quit |
Features
Queue and clipboard
- Paste the next link while one downloads. Downloads run one at a time, or up to four at once if you set that in Settings.
- When Carrot is in the background and the queue finishes, you get a system notification.
- Copy a link anywhere and switch back to Carrot. It offers the link, and
vloads it. You can turn this off in Settings.
Playlists and channels
- The card shows how many videos the link has.
dgets them all,csets one format for all of them. eopens a list to tick the ones you want.aticks all,nnone, and a number keeps the first N (the newest, on a channel). Up to 500 are listed.- Videos land in a folder named after the playlist, numbered in order if your file name
uses
{index}.
Convert options
These sit under the format list in the Convert dialog (c), depending on the video.
| Option | What it does |
|---|---|
| Clip | Keeps only a start and end time (1:30, 90 or 1m30s). The cut happens while downloading, so you don't fetch the whole video. |
| Subtitles | Puts them inside the video (MP4, MKV, WebM) or in a separate .srt, in any languages (en,de). YouTube's automatic captions count. |
| SponsorBlock | YouTube only. Removes sponsor, self-promo and "like and subscribe" segments, or marks them as chapters. Uses SponsorBlock's community list. |
| One file per chapter | Splits a video with chapters, like an album upload, into numbered tracks. |
| Even out the volume | Audio only. Normalises loudness to -16 LUFS, the podcast standard. |
The dialog remembers these picks for next time. Press o to open the Options section.
Pick a clip by eye. The pick button on the Clip row opens a large frame and a timeline:
← → |
shift + ← → |
[ |
] |
enter |
|---|---|---|---|---|
| Step | Jump 10 s | Mark start | Mark end | Use them |
On YouTube the frames come from the site's own scrub-bar previews, so nothing downloads. For files on your computer, ffmpeg grabs them.
Presets
- Set up the Convert dialog the way you like, then press + save.
- Presets show as chips along the top of the dialog. Press
1to9to apply one. - Make a preset the default for a site, and
don that site uses it instead of best MP4.
Following channels and playlists
- Press
aand choose how new videos should be saved. Carrot checks for new ones each time it starts, and the status line tells you when something arrives. wlists everything you follow.entergets one's new videos,agets all of them,schecks now anddeleteunfollows.- New videos land in a folder named after the channel.
carrot syncdoes the same from cron or a scheduled task.carrot sync --checkonly reports what's new.
Search what was said
- Carrot keeps the captions of every video you download, so you can search them.
- Press
/and type. Words can be in any order. Use quotes for an exact phrase. - Each hit shows when it was said.
enterplays from that moment (in mpv, IINA or VLC if you have one),ccuts the 30 seconds around it into a new file,oshows the file. - You can turn caption keeping off in Settings.
Convert files on your computer
- Press
ctrl+tfor the Convert files tab. Drag in files, paste their paths, or pressfto browse. Videos, audio and photos can be mixed. cpicks a format. Video, Audio, Image, and Frames, which saves a video as a folder of pictures. Clip and volume options work here too.- For images, set a max size in KB and Carrot lowers the quality until the file fits. You can also strip EXIF and location data before sharing.
- The new file lands next to the original, which Carrot never changes. If the streams already fit the new format, Carrot copies them instead of re-encoding. That takes seconds and loses nothing, and the dialog tells you which you're getting.
rremoves the highlighted file,xcancels a conversion.
Command line
carrot # open the app
carrot <url> # open with a link loaded
carrot <file> # open Convert files with that file
carrot get <url> # download without the app
carrot convert <file> # convert without the app
carrot sync # get new videos from what you follow
carrot setup # download ffmpeg and list the formats it can make
carrot update # update yt-dlp
get and convert print progress to stderr and each saved path to stdout, so you can
pipe the result into another command. They use the folder, file names and cookies from
the app's Settings.
carrot get URL --format mp3 --quality 320 --normalize
carrot get URL --start 1:30 --end 2:00 --format gif --quality 360
carrot get URL --subs srt --sub-langs en,de --sponsorblock remove
carrot get PLAYLIST_URL --format m4a --latest 10 --name '{index} - {title}'
carrot convert *.heic --format jpg --max-kb 500 --strip-metadata
mpv "$(carrot get URL --quiet)"
Run carrot get --help or carrot convert --help for every option.
Formats
Downloads
| Video | Audio |
|---|---|
| MP4, MKV, WebM, MOV, GIF | MP3, M4A, Opus, FLAC, WAV, OGG |
| best, 2160p to 360p | best, 320, 192, 128 kbps |
- The quality list only shows resolutions the video actually has.
- Files get the title, artist and cover art where the format allows.
- Carrot never re-encodes a download, except for GIF or MOV at a set height.
Converting files
| Type | Formats |
|---|---|
| Video (15) | MP4, MKV, WebM, MOV, M4V, AVI, TS, FLV, WMV, MPG, 3GP, OGV, GIF, animated PNG, animated WebP |
| Audio (18) | MP3, M4A, AAC, Opus, OGG, FLAC, ALAC, WAV, AIFF, WMA, AC3, E-AC3, MP2, WavPack, TTA, CAF, AU, MKA |
| Image (18) | JPG, PNG, WebP, AVIF, JPEG XL, HEIC, JPEG 2000, TIFF, BMP, GIF, TGA, QOI, EXR, HDR, PPM, PCX, SGI, DPX |
Settings and files
File names. Downloads go to your Downloads folder as Title [video-id].ext. In
Settings (s) you can change the folder and build a name from {title}, {id},
{channel}, {uploader}, {date}, {year}, {site}, {height}, {playlist} and
{index}. A / makes a folder, so {channel}/{date} {title} files each video under its
channel. If the name is taken, Carrot adds (2).
History. h lists everything you've downloaded or converted. enter opens a file,
o shows it in its folder, r loads the link again to get another format, y copies the
link, and delete forgets the entry. The file stays.
Themes. Carrot and Carrot light, the defaults, use only the 256 standard terminal
colours, so they look the same in every terminal. Press t for the others.
Updates. Carrot checks PyPI while it's open. If there's a new release, it installs it
after you quit. Set CARROT_NO_AUTO_UPDATE=1 to turn this off.
Where things are kept. Settings (config.toml), history (history.jsonl) and
captions (transcripts/) live in one folder, with Carrot's ffmpeg in an ffmpeg/ folder:
- macOS:
~/Library/Application Support/carrot-leaf/ - Linux:
~/.config/carrot-leaf/, and ffmpeg in~/.local/share/carrot-leaf/ - Windows:
%LOCALAPPDATA%\carrot-leaf\
Troubleshooting
A video says I need to sign in
Age-restricted and members-only videos need a YouTube login. Carrot offers to borrow cookies from a browser where you're signed in: Chrome, Firefox, Safari, Edge, Brave, Opera, Vivaldi or Chromium. Cookies stay off until you choose a browser, and you can turn them off in Settings. On a Mac, expect a Keychain prompt the first time.
YouTube asks me to prove I'm not a bot
That comes from many requests on one connection, not from the video. It usually clears within an hour. Browser cookies (see above) get you past it right away.
Downloads stopped working
Sites change how they serve video, and yt-dlp ships fixes every few weeks. Carrot checks
for a new yt-dlp at startup and tells you when one is out. Press u or run
carrot update.
A format is greyed out
The dialog shows what that format needs. Carrot uses your own ffmpeg where it can and its
bundled build for the rest (Homebrew's ffmpeg has no WebP or Theora, for example). JPEG XL
and HEIC need libjxl's cjxl and libheif's heif-enc:
brew install jpeg-xl libheif
Uninstall
uv tool uninstall carrot-leaf # or: pipx uninstall carrot-leaf
Carrot's ffmpeg is kept outside the app, so updates don't download it again. To remove
it too, delete the ffmpeg folder listed in Settings and files.
Development
git clone https://github.com/Yore-Des/carrot-leaf && cd carrot-leaf/rust
cargo run --release # run the app
cargo test && cargo clippy
cd .. && uv build # build the PyPI wheel, as users get it
The app is the Rust program in rust/, built with ratatui on top of
yt-dlp and ffmpeg. It ships on
PyPI as a wheel holding the carrot binary, with yt-dlp and Deno as dependencies. The
original Python version lives at the python-final tag.
Releasing. Bump version in pyproject.toml and rust/Cargo.toml, then push a
vX.Y.Z tag. GitHub Actions builds the wheels and publishes them to PyPI.
License
MIT. Only download videos you have the right to, and follow each site's terms.
Metadata
Release files for carrot-leaf 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| carrot_leaf-1.0.0.tar.gz | 135.1 kB | With provenance | Details for carrot_leaf-1.0.0.tar.gz |
Built distributions (wheels)
Total release size: 24.4 MB
Release files / carrot_leaf-1.0.0.tar.gz
| Download URL | carrot_leaf-1.0.0.tar.gz |
|---|---|
| Size | 135.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
32d2cbc619d9c517c403215a932e212110132e317206cc7543fd84d5bdb705d0
|
|
BLAKE2b-256 checksum How to use checksums |
3e725d0d87b514137f7bac2fdd047b42c0a6368070ef359977261270eb7df12c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.
Transparency logRelease files / carrot_leaf-1.0.0-py3-none-win_amd64.whl
| Download URL | carrot_leaf-1.0.0-py3-none-win_amd64.whl |
|---|---|
| Size | 3.5 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
cc6d6371d47371c11cd930f61c097945afc0d8730cf4220fb8bfc2a4b5cceab3
|
|
BLAKE2b-256 checksum How to use checksums |
1b7c77030812d5ff70f4498d39789da2e1874841f4dda322dcddd21aa3bc1376
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.
Transparency logRelease files / carrot_leaf-1.0.0-py3-none-musllinux_1_2_x86_64.whl
| Download URL | carrot_leaf-1.0.0-py3-none-musllinux_1_2_x86_64.whl |
|---|---|
| Size | 3.7 MB |
| Tags | Linux musl 1.2+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
2ae8e51c792a384dca890629f8ec18cfd1b5d703c95dd62fffbf7dc00f88e41b
|
|
BLAKE2b-256 checksum How to use checksums |
8c6385aa3e304f2b727f5ac42f72181ee8075a41c588bb7a383e9833708baf57
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.
Transparency logRelease files / carrot_leaf-1.0.0-py3-none-musllinux_1_2_aarch64.whl
| Download URL | carrot_leaf-1.0.0-py3-none-musllinux_1_2_aarch64.whl |
|---|---|
| Size | 3.4 MB |
| Tags | Linux musl 1.2+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
d4508418109acf69db2b46e11323e3bc7e948638a66aeba13fbdf838316f8748
|
|
BLAKE2b-256 checksum How to use checksums |
51963edea0ffc22963f85b2a406b79e5952be9b6fc214b338cf9766d9e474ac7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.
Transparency logRelease files / carrot_leaf-1.0.0-py3-none-manylinux_2_28_aarch64.whl
| Download URL | carrot_leaf-1.0.0-py3-none-manylinux_2_28_aarch64.whl |
|---|---|
| Size | 3.4 MB |
| Tags | Linux glibc 2.28+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
ed24c1c230dd83b41f139c76f9106a967404015add7f39068043f8a355f753ac
|
|
BLAKE2b-256 checksum How to use checksums |
13ea9b3231ad49386f2be164f381a41eb4c02da86fd327d568c3d5d7a9b761df
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.
Transparency logRelease files / carrot_leaf-1.0.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
| Download URL | carrot_leaf-1.0.0-py3-none-manylinux2014_x86_64.manylinux_2_17_x86_64.whl |
|---|---|
| Size | 3.6 MB |
| Tags | Linux glibc 2.17+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
606209ef804794e8e0961737df8e0eaf10440890d97cf9b0aec45b3f90302547
|
|
BLAKE2b-256 checksum How to use checksums |
ebbee31ab7bee6825e03c6dacf6ac693a3220a027553139b349aaaace0fd61c1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.
Transparency logRelease files / carrot_leaf-1.0.0-py3-none-macosx_11_0_arm64.whl
| Download URL | carrot_leaf-1.0.0-py3-none-macosx_11_0_arm64.whl |
|---|---|
| Size | 3.3 MB |
| Tags | Python 3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
5d0aae2e5406f02217e94c72e9a72fa79bc62fa5503f6b67d50d3f28bd4b6f0f
|
|
BLAKE2b-256 checksum How to use checksums |
63621005dbe71befefeb97e78c2ecdca04b137e1612e51fcbd05c0d31df11256
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.
Transparency logRelease files / carrot_leaf-1.0.0-py3-none-macosx_10_12_x86_64.whl
| Download URL | carrot_leaf-1.0.0-py3-none-macosx_10_12_x86_64.whl |
|---|---|
| Size | 3.4 MB |
| Tags | Python 3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
4d632becc7bf6dcaae81ce00e101207141bb885aeae509879a2e07a52298025b
|
|
BLAKE2b-256 checksum How to use checksums |
dd988f95e69f6cf7a8d8ad27d5d5bab877086c0226827c9dccf87a8223c793c1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.
Transparency logSecurity for carrot-leaf 1.0.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 8 files in this release have been uploaded with provenance metadata.
Attestation for carrot_leaf-1.0.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.