__ ___ _
__ __ / /_ / | (_)
/ / / / / __/ / /| | / /
/ /_/ / / /_ / ___ | / /
\__, / \__/ /_/ |_|/_/
/____/
ytAi is a command-line tool that helps you analyze yt videos using OpenAI.
It downloads the video transcript, sends it to a pre-defined assistant, and stores the result locally on your machine in a Markdown file.
This CLI tool offers the following capabilities:
- 🧠 Manage assistants (create/delete)
- 📥 Download transcripts from yt videos
- 🤖 Analyze transcripts using OpenAI assistants
To get started, create a .env file containing your OpenAI credentials and model settings.
Example .env file:
OPENAI_API_KEY=your-api-keyThe CLI also expects a configuration directory located at ~/.ytGPT by default.
Inside this folder, you can define one or more assistants, each with its own instruction and user input files.
📁 .ytGPT
├── 📄 cred.env
└── 📁 assistants
└── 📁 {{assistant_name}}
├── 📁 instruction
│ └── 📝 instruction.txt
└── 📁 user_input
├── 📝 {{user_name1}}.txt
└── 📝 {{user_name2}}.txt
Once set up, you can link the CLI globally and start using it:
npm link
yt📂 Manage Assistants
├── 🆕 Create Assistant
│ └── ⚠️ Must be properly stored in the correct folder structure
├── ❌ Delete Assistant
│ └── 🗑️ Removes the assistant from OpenAI
📂 Transcript
└── 📥 Download yt video transcripts
📂 Transcript and AI
└── 🤖 Download transcripts and analyze them using pre-defined assistants
This project is licensed under the MIT License.
See the LICENSE file for more information.