Introducing /monitor. Notify your AI agent the moment pages or sites change. Try it now โ†’

How to extract YouTube transcript in Claude Code

Claude Code runs in the terminal where context window management matters. Two Firecrawl integrations give it YouTube transcript extraction with different trade-offs:

MethodInstallOutputBest for
CLInpx -y firecrawl-cli@latest init --all --browserFile on diskLong videos โ€” keeps token usage low
Claude pluginclaude plugin install firecrawl@claude-plugins-officialInline in chatQuick extractions with immediate follow-up

CLI (recommended) โ€” installs Firecrawl as a skill that Claude Code, Codex, and Gemini CLI can all use. Run firecrawl scrape <YouTube URL> to write the transcript as a markdown file. Claude Code can then read, grep, or summarize the file without loading the full text into the context window. This matters for hour-long videos that would otherwise eat thousands of tokens.

Plugin โ€” after installing, use /firecrawl:scrape <URL> to get the transcript inline, or /firecrawl:agent "Extract the full transcript from [URL]" for Firecrawl's AI agent to handle edge cases autonomously.

Both handle JavaScript rendering and page structure changes automatically. Get a free API key at firecrawl.dev.

Last updated: Apr 06, 2026