Convert YouTube videos and playlists into comprehensive AI-powered study notes β from your terminal.
Why yt-study? Β· Quick Start Β· Features Β· Installation Β· Configuration Β· Providers Β· Contributing
YouTube has become one of the richest learning platforms on the planet β university lectures, conference talks, technical deep-dives, language lessons, and entire courses are all freely available. But video is a passive medium. You watch, you nod, and two days later the details are gone.
yt-study was built to fix that gap.
The idea is simple: your time watching a video is valuable. The notes that should come from it β the structured, searchable, reviewable kind β shouldn't require an extra hour of your day. yt-study automates exactly that step. Point it at any YouTube URL and walk away with Markdown study notes that are deeper and more comprehensive than most people would write by hand.
Where it shines:
- π Students catching up on lecture recordings or supplementing textbooks with YouTube explanations
- π§βπ» Developers staying on top of conference talks, tutorials, and technical deep-dives without watching at 3x speed
- π Language learners extracting structured notes from native-language content
- π Researchers quickly distilling hours of talks into organized, searchable reference material
- π’ Teams turning internal video presentations into shareable written documentation
The output isn't a transcript summary. It's structured, hierarchical Markdown β with headers, sub-topics, definitions, examples, and every concept explained in depth. Chapter-aware videos get per-chapter notes. Long courses produce an organized note file per session. Everything lands in your filesystem: portable, searchable, and permanently yours.
| πΉ Single Video, Playlists & Batch | Process one video, an entire playlist, or a .txt file of URLs in a single command |
| π€ Multi-Provider LLM Support | Works with Gemini, OpenAI, Anthropic, Groq, Mistral, Cohere, DeepSeek, and xAI via LiteLLM |
| ποΈ Chapter-Aware Notes | Automatically detects video chapters and generates separate, structured notes per chapter |
| β Quiz Generation | Optionally produce a ready-to-use multiple-choice quiz alongside each study guide |
| π Transcript Export | Export raw transcripts as plain .txt or timestamped .json |
| β‘ Concurrent Processing | Configurable concurrency β process multiple videos and chapters simultaneously |
| πΎ Local SQLite Cache | Transcripts and run stats are cached; skip already-processed videos automatically |
| π₯οΈ Rich Live Dashboard | Real-time progress UI with a --no-ui plain-output mode for CI/cron |
| π³ Docker Ready | Minimal two-stage Docker image for reproducible, stateless runs |
| π Private Video Support | Pass a Netscape-format cookie file to process age-gated or login-required videos |
pip install yt-studyOr with uv:
uv tool install yt-studyRun the interactive setup wizard once to store your LLM API key:
yt-study setupThis creates ~/.yt-study/config.env. The default model is Gemini 2.5 Flash β grab a free key at aistudio.google.com.
# Single video
yt-study process "https://youtube.com/watch?v=VIDEO_ID"
# Full playlist
yt-study process "https://youtube.com/playlist?list=PLAYLIST_ID"
# Batch file (one URL per line)
yt-study process my-course-urls.txt -o ./course-notesNotes are written as Markdown files in ./output/ (or your configured directory).
- Python 3.10 or newer (3.10, 3.11, 3.12, and 3.13 are tested in CI)
- An API key for at least one supported LLM provider
pip install yt-studyuv tool install yt-studydocker pull ghcr.io/whoisjayd/yt-study:latest
docker run --rm \
-e GEMINI_API_KEY="your_key" \
-v "$(pwd)/output:/output" \
ghcr.io/whoisjayd/yt-study:latest \
process "https://youtube.com/watch?v=VIDEO_ID"git clone https://github.com/whoisjayd/yt-study
cd yt-study
uv sync --devyt-study reads configuration from ~/.yt-study/config.env (created by yt-study setup).
Environment variables always take precedence over the config file.
| Key | Default | Description |
|---|---|---|
DEFAULT_MODEL |
gemini/gemini-2.5-flash |
LiteLLM-format model string |
OUTPUT_DIR |
./output |
Where study notes are saved |
TEMPERATURE |
0.7 |
LLM sampling temperature (0.0β1.0) |
MAX_TOKENS |
(model default) | Max tokens per LLM response |
MAX_CONCURRENT_VIDEOS |
5 |
Parallel video processing limit |
YOUTUBE_REQUESTS_PER_MINUTE |
10 |
YouTube request rate limit |
YOUTUBE_COOKIE_FILE |
(none) | Path to Netscape cookies file |
Override any setting per-run via CLI flags β run yt-study process --help for all options.
All persistent state (config, cache, logs) lives in ~/.yt-study/ by default. Override with:
export YT_STUDY_HOME=/path/to/custom/diryt-study uses LiteLLM β any model string LiteLLM supports works here.
| Provider | Config Key | Example Model String |
|---|---|---|
| Google Gemini | GEMINI_API_KEY |
gemini/gemini-2.5-flash |
| OpenAI | OPENAI_API_KEY |
gpt-4o |
| Anthropic | ANTHROPIC_API_KEY |
claude-3-5-sonnet-20241022 |
| Groq | GROQ_API_KEY |
groq/llama3-70b-8192 |
| xAI | XAI_API_KEY |
xai/grok-2 |
| Mistral | MISTRAL_API_KEY |
mistral/mistral-large-latest |
| Cohere | COHERE_API_KEY |
command-r-plus |
| DeepSeek | DEEPSEEK_API_KEY |
deepseek/deepseek-chat |
Use any provider with --model:
yt-study process "URL" --model claude-3-5-sonnet-20241022yt-study [COMMAND] [OPTIONS]
| Command | Description |
|---|---|
process <url> |
Generate study notes from a video, playlist, or batch file |
setup |
Run the interactive configuration wizard |
config |
Display the current configuration (secrets masked) |
stats |
Show aggregate processing statistics |
history |
List recently processed videos |
info [url] |
Inspect a YouTube source or show runtime info |
doctor |
Run a health check on config, cache, and logs |
edit-config |
Open the config file in your editor |
cache |
Manage the local SQLite cache |
logs |
Inspect and manage session log files |
version |
Print the installed version |
yt-study process URL [OPTIONS]
-m, --model TEXT LLM model (overrides config)
-o, --output PATH Output directory (overrides config)
-l, --language TEXT Preferred transcript language (repeatable)
-t, --temperature FLOAT LLM temperature 0.0β1.0
-k, --max-tokens INT Max tokens per LLM response
-F, --force Re-process already-processed videos
--no-ui Plain stdout output (CI/cron friendly)
--quiz Also generate a multiple-choice quiz
--export-transcript Export raw transcript: txt or json
--cookie-file PATH Netscape cookies file for private videos
output/
βββ Video Title/
β βββ study_notes.md # Full study notes
β βββ quiz.md # (optional, --quiz)
β βββ transcript.txt # (optional, --export-transcript txt)
βββ Another Video Title/
βββ study_notes.md
For chapter-aware videos (>1 hour with chapters), notes are split by chapter:
output/
βββ Long Course Title/
βββ Chapter 01 - Introduction.md
βββ Chapter 02 - Core Concepts.md
βββ ...
The image is published to GHCR on every release:
docker run --rm \
-e GEMINI_API_KEY="your_key" \
-v "$(pwd)/output:/output" \
ghcr.io/whoisjayd/yt-study:latest \
process "https://youtube.com/watch?v=VIDEO_ID" --no-uiMount /output to access generated files on the host. The container runs as a non-root user (uid 1001).
# Clone & install
git clone https://github.com/whoisjayd/yt-study
cd yt-study
uv sync --dev
# Run tests
make test
# Lint, format, type-check
make quality
# Full CI pipeline locally
make ciSee CONTRIBUTING.md for the complete contributor guide.
See GitHub Releases for the full history.
MIT with Attribution β free to use, modify, and distribute. If you use yt-study in a project or build on top of it, you are required to include credit and a link back to this repository. See LICENSE for the full terms.
Contributions are welcome! Please read CONTRIBUTING.md to get started.
Found a bug? Open an issue. Have a security concern? See SECURITY.md.
yt-study is built on top of a great open-source ecosystem, and this project is deeply grateful to the maintainers behind those tools and libraries.
See GRATITUDE.md for full acknowledgements.
And most importantly β thank you to everyone who has used yt-study, filed issues, suggested features, or contributed code. Every star, bug report, and PR makes this better.
If yt-study helped you study smarter, learn faster, or just saved you some time β that's exactly why it was built. β
Built with β€οΈ by whoisjayd
If you use yt-study, please give credit β it takes two seconds and means a lot.