cd /news/ai-tools/show-hn-obsidianyoutubesync-sync-you… · home › topics › ai-tools › article
[ARTICLE · art-156360] src=github.com ↗ pub= topic=ai-tools verified=true sentiment=↑ positive

Show HN: ObsidianYouTubeSync – Sync YouTube History into Obsidian

A developer released ObsidianYouTubeSync, an open-source tool that downloads a user's full YouTube watch history via browser cookies and yt-dlp, extracts captions and transcripts, summarizes each video with Google Gemini, and writes each video as a Markdown note with YAML frontmatter and hierarchical AI-assigned tags into an Obsidian vault. The tool adds incremental sync that skips already-processed videos, automatic Shorts skipping, vault-wide retagging, ThreadPoolExecutor-based parallel processing, and a native Model Context Protocol server for AI agent integration, with output formatted for GraphRAG, LlamaIndex, LangChain and OpenClaw pipelines.

read8 min views1 publishedOct 23, 2026
Show HN: ObsidianYouTubeSync – Sync YouTube History into Obsidian
Image: Michielbdejong (auto-discovered)

Download, sync, and organize your entire YouTube watch history into a structured, AI-tagged knowledge graph — ready for Obsidian, OpenClaw, and GraphRAG pipelines.

This tool automates the full pipeline: it downloads YouTube video metadata, extracts captions and transcripts, generates LLM-powered summaries using Google Gemini (GenAI), and saves each video as a richly categorized Markdown note with a consistent hierarchical taxonomy. Built for users with large YouTube watch libraries who want to transform passive viewing history into an active, searchable, and connectable dataset.

Use cases: Personal knowledge management (PKM), YouTube history cataloging, knowledge graph construction, transcript dataset preparation, GraphRAG ingestion, OpenClaw/LLM agent tooling, personal AI training data, second brain building.

If you have hundreds or thousands of videos in your YouTube history, finding insights buried in that content is nearly impossible without structure. This tool solves that by:

  • Down your full YouTube watch history (incremental or bulk) usingyt-dlp
  • Extracting full captions and transcripts for every video (with fallback to auto-generated captions)
  • Summarizing each video using Google Gemini LLM (GenAI) — concise, searchable summaries
  • Categorizing content with a shared hierarchical taxonomy (e.g.,Technology/ArtificialIntelligence ,Science/Neuroscience ) using AI classification
  • Organizing notes into Obsidian with clean YAML frontmatter (tags, url, channel, date, summary) — queryable via Dataview
  • Enabling downstream pipelines: export structured notes as a knowledge graph dataset forGraphRAG ,OpenClaw , vector databases, or LLM fine-tuning
graph TD
    A[YouTube Watch History] -->|Browser Cookies & yt-dlp| B(Extract Metadata & Transcripts)
    B --> C{Google Gemini GenAI}
    C -->|Analyze text| D[Generate Concise Summary]
    C -->|Classify concepts| E[Apply AI Taxonomy Tags]
    D --> F[Construct Structured Markdown]
    E --> F
    F --> G[(Obsidian Vault / Knowledge Graph)]
    G --> H[Ready for GraphRAG & Agents]
    
    classDef default fill:#f9f9f9,stroke:#5c3d9e,stroke-width:2px,color:#333;
    classDef ai fill:#e6dfff,stroke:#8b6cef,stroke-width:2px,color:#333;
    class C ai;
Feature Details
LLM Summarization Google Gemini (GenAI) generates concise, high-quality summaries for every video
Full Transcript Download Pulls captions/transcripts (manual + auto-generated) from YouTube
Hierarchical AI Tagging CamelCase taxonomy tags like Technology/AI/LLM ,Person/ElonMusk
History Sync Download & sync your entire YouTube watch history via browser cookies + yt-dlp
Incremental Updates Smart detection — only processes new videos, skips already-synced ones
YouTube Shorts Skip Automatically detects and skips Shorts to keep your knowledge base high-signal
Vault-wide Retagging Retag any folder (Apple Notes, Books, etc.) using the same global AI taxonomy
Parallel Processing ThreadPoolExecutor with configurable pool — syncs 100s of videos in minutes
MCP Server Native Model Context Protocol server for AI agent integration
GraphRAG-Ready Output Structured Markdown with rich metadata nodes for knowledge graph pipelines

Each YouTube video becomes a structured Markdown node with rich metadata. This format is directly ingestible by OpenClaw, GraphRAG, LlamaIndex, LangChain, or any knowledge graph pipeline:

---
url: https://www.youtube.com/watch?v=VIDEO_ID
channel: "Lex Fridman"
date_synced: 2026-02-27
summary: "A deep conversation on the nature of intelligence and the trajectory of AGI development, exploring consciousness, Gödel's theorems, and the limits of computation."
tags:
  - Technology
  - Technology/ArtificialIntelligence
  - Technology/ArtificialIntelligence/LLM
  - Science/CognitiveScience
  - Person/LexFridman
  - Person/JohnCarmack
  - AGI
  - ConsciousnessDebate
  - ComputationalLimits
---


## Extracted Links
- https://en.wikipedia.org/wiki/Gödel%27s_incompleteness_theorems

## Description
In this episode, Lex Fridman sits down with John Carmack to discuss...

## Raw Transcript
[Full verbatim transcript for semantic search, embedding, and RAG ingestion]
  • Entities (Person/ ,Company/ ,Location/ ) form graph nodes

  • Taxonomy tags form typed edges between concepts

  • Summaries are ideal embedding targets for semantic similarity

  • Transcripts provide raw text for chunking, dense retrieval, and fine-tuning

  • Dates + channels enable temporal and source-based graph traversals

  • Python 3.10+

  • uv — Fast Python Package Manager (Installation Guide )

  • Google Gemini API Key — free tier available atGoogle AI Studio

  • Chrome, Safari, or Firefox logged into YouTube (foryt-dlp history access)

  • Obsidian (optional but recommended for visualization and Dataview queries)

git clone https://github.com/mr8lu/ObsidianYouTubeSync.git
cd ObsidianYouTubeSync

uv sync
cp .env.example .env

Edit .env with your credentials:

GEMINI_API_KEY=your_gemini_api_key_here

WEBSHARE_PROXY_USER=your_proxy_user
WEBSHARE_PROXY_PASS=your_proxy_password

Important — Vault Path: The default target directory is ~/Documents/Obsidian Vault. You must update OBSIDIAN_VAULT_PATH in sync.py and retag_notes.py if your vault lives elsewhere before running any syncs.

./run.sh --sync

./run.sh --retag

Apply consistent LLM-powered categorization to any existing notes folder:

python3 retag_notes.py --folder "~/Documents/Obsidian Vault/Apple Notes" --dry-run

python3 retag_notes.py --folder "~/Documents/Obsidian Vault/Books"

python3 retag_notes.py --folder "~/Documents/Obsidian Vault/Books" --workers 10

This toolkit is designed to be fully manageable by local-first AI agents. There are two primary integration paths:

You can teach the OpenClaw Mac AI agent how to autonomously run your syncs and retag folders using a native SKILL.md file.

Installation: Create a folder at ~/.openclaw/skills/obsidian-youtube-sync/ and drop in a SKILL.md file that explain how to execute ./run.sh and uv run retag_notes.py. (A working template is provided upon request). Once installed, you can simply ask OpenClaw: "Sync my YouTube watch history and let me know what themes I learned about today."

Alternatively, you can expose the toolkit as an MCP server to Claude Desktop, Cursor, or other MCP clients.

Setup for Claude Desktop: Add the following to your claude_desktop_config.json:

{
  "mcpServers": {
    "ObsidianYouTubeSync": {
      "command": "uv",
      "args": [
        "--directory",
        "/absolute/path/to/ObsidianYouTubeSync",
        "run",
        "mcp_server.py"
      ]
    }
  }
}

Note: Ensure you replace /absolute/path/to/ with the actual path to the repository on your machine.

This tool is purpose-built as a data pipeline for knowledge graph construction. Here's how to plug it into downstream systems:

  1. Run ./run.sh --sync to sync your complete YouTube history
  2. Point your GraphRAG pipeline at the ~/Documents/Obsidian Vault/YouTube/ folder
  3. The YAML frontmatter is parsed as node metadata; transcripts are chunked for retrieval; tags form the typed edge schema
  • Each note file is a self-contained document node with entity tags (Person/ ,Company/ ,Location/ ) pre-extracted

  • The taxonomy hierarchy (Technology/ArtificialIntelligence/LLM ) maps directly to ontological class trees

  • Channel metadata provides provenance edges in the graph

  • Summaries are ideal for dense embedding (short, factual, topic-rich)

  • Transcripts can be chunked with metadata-aware splitters

  • Tags can be used as filters/facets for hybrid search

  • Generate instruction-response pairs from (transcript) → summary pairs

  • Use hierarchical tags as classification labels

  • Export with a simple Python script reading the YAML frontmatter

Feature Status
YouTube History Sync (incremental & full) ✅ Done
AI Summarization via Google Gemini (GenAI) ✅ Done
Full Transcript / Caption Extraction ✅ Done
Hierarchical AI Taxonomy Tagging ✅ Done
Parallel Processing (ThreadPoolExecutor) ✅ Done
Vault-wide Retagging Engine ✅ Done
Proxy / Rate-limit Support ✅ Done
MCP Server for AI Agent Integration ✅ Done
GraphRAG Export Helper Script 🔜 Planned
Obsidian Community Plugin 🔜 Planned
Notion / Logseq Export 🔜 Planned
Local LLM Support (Ollama) 💡 Considering
YouTube Playlist Sync 💡 Considering
OpenClaw Native Connector 💡 Considering
  • Native YAML Properties :tags: ,url: ,summary: ,channel: ,date_synced — all recognized by Obsidian natively

  • Hierarchical Tags :Parent/Child tags map to Obsidian's Tag Pane tree view

  • Dataview Queries : Query your entire watch history like a database

  • Graph View : Entity tags create visual connections between videos sharing people, companies, or concepts

  • Local-First : All notes live on your machine. No cloud sync.

  • No Account Data : Only public video metadata (title, description, transcript) is sent to Gemini for summarization. Your YouTube account credentials are never accessed or stored.

  • Credential Security : API keys loaded via.env (excluded from git). Proxy credentials stored locally only.

  • macOS Permissions : Ensure Terminal has "Full Disk Access" in System Settings → Privacy & Security.

Environment Supported
macOS (Intel & Apple Silicon) ✅
Linux ✅
Windows (WSL)
Python 3.10+ ✅
Obsidian 1.0+ ✅
Chrome / Safari / Firefox cookies ✅
Claude Desktop (MCP) ✅
GraphRAG / LlamaIndex ✅
OpenClaw ✅

Contributions are welcome! See CONTRIBUTING.md for how to get started.

If you find this useful, please ⭐ star the repo — it helps more researchers, PKM enthusiasts, and knowledge graph builders discover it.

Distributed under the MIT License. See LICENSE for more information.

── more in #ai-tools 4 stories · sorted by recency
── more on @obsidianyoutubesync 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/show-hn-obsidianyout…] indexed:0 read:8min 2026-10-23 · —