A CLI tool to chat with YouTube and Bilibili videos using AI.
Project description
Ask Video
A tool to chat with YouTube and Bilibili videos using AI.
Features
- Video Download: Automatically fetches video from YouTube and Bilibili videos.
- AI Chat: Uses OpenAI (or compatible) models to answer questions based on the video content.
- Streaming Output: Responses are streamed in real-time for a better user experience.
- Cross-Platform: Works on macOS, Linux, and Windows.
Usage
You can run this tool directly using uvx without installing it manually.
Prerequisites
You need to have uv installed.
Running the Tool
-
Set your OpenAI API Key: You need to provide your OpenAI API key. You can do this by setting an environment variable.
export OPENAI_API_KEY=your_api_key_here
If you are using a custom OpenAI-compatible provider (like DeepSeek, Moonshot, etc.), you can also set the base URL and model:
export OPENAI_BASE_URL=https://api.example.com/v1 export OPENAI_MODEL_ID=gpt-5-mini-2025-08-07
-
Run with
uvx:uvx ask-video <VIDEO_URL>
Example:
uvx ask-video https://www.youtube.com/watch?v=RAr_TAjk51I
Development
To develop or contribute to this project:
-
Clone the repository:
git clone https://github.com/jtsang4/ask-video.git cd ask-video
-
Install dependencies:
uv sync -
Run locally:
uv run ask-video <URL>
License
This project is licensed under the MIT License. See the LICENSE file for details.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ask_video-0.1.1.tar.gz.
File metadata
- Download URL: ask_video-0.1.1.tar.gz
- Upload date:
- Size: 5.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.11 {"installer":{"name":"uv","version":"0.9.11"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a769a69259352d8c3da5de7458ebbd57996bab511e42fe41261d207e5c77cd51
|
|
| MD5 |
30c95a1187cdc59ba070db02856749ab
|
|
| BLAKE2b-256 |
f98b26acdd3af4f50e390e9df779c58679fd9f419ef2675d7a58bccf8fb19e37
|
File details
Details for the file ask_video-0.1.1-py3-none-any.whl.
File metadata
- Download URL: ask_video-0.1.1-py3-none-any.whl
- Upload date:
- Size: 7.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.11 {"installer":{"name":"uv","version":"0.9.11"},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8dc76109d6239368f23468af34fc54956a562a9c87f3090c67f8f5eb699af8a4
|
|
| MD5 |
fd5db399e41cf64bcff6e022a0f59bfc
|
|
| BLAKE2b-256 |
1a8ac3edbd2ad4aa72afd7793dc30ef8dd0621f0f660dd3e56a57058aac2b116
|