Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
Autonomous YouTube AI agent: LLM script, TTS voice, stock clips, FFmpeg editing, AI thumbnail, auto-upload — 100% free, Telegram-controlled.
Fetched from the repository for this visit.
Fully autonomous AI agent that runs your YouTube channel 24/7 — script, voice, editing, thumbnail, upload. Zero human input.
▶ Watch the full demo with sound
TubeAssistant is an open-source AI agent that automates your entire YouTube workflow. It generates scripts with an LLM, synthesizes narration, downloads stock footage, edits the video, creates an AI thumbnail, and uploads to YouTube — every day, automatically, at the time you choose.
No editing software. No recording. No scheduling. The agent runs 24/7 and you control it via Telegram.
Growing a YouTube channel is a second job. Every single day you need to:
Most creators quit within 3 months — not because they lack ideas, but because the process is relentless and eats hours every day.
TubeAssistant eliminates every step. It runs 24/7, reads your channel analytics, generates content, and publishes — completely autonomously.
tube-assistant clipspip install uv # fast installer (one-time)
uv tool install git+https://github.com/metiutek/tube-assistant.git
tube-assistant # interactive menu — pick Setup wizard first
That's it. The wizard handles API keys, Google OAuth, Telegram bot, and channel preferences.
Analytics → Strategy → AI Script → TTS Voice → Stock Clips → Montage → AI Thumbnail → Upload
Every day, at the time you choose, TubeAssistant:
Everything controllable in real time via Telegram — just message your bot.
# Clone
git clone https://github.com/metiutek/tube-assistant.git
cd tube-assistant
# Install
pip install uv # one-time
uv tool install -e . # or: installa.bat on Windows
# Setup (one-time wizard)
tube-assistant onboard
# Run
tube-assistant start
The onboard wizard walks through every step:
Step 1 — Agent language Any language your Telegram assistant will speak
Step 2 — AI Service OpenRouter / Ollama Cloud / local Ollama / 12 more
Step 3 — Image provider Pollinations (free) or HuggingFace FLUX
Step 4 — Pexels API Free key for stock footage
Step 5 — Clip source Pexels stock, AI-generated, or hybrid (spend cap)
Step 6 — Telegram Bot Token from @BotFather
Step 7 — Channel setup Name, niche, goals, style, language
→ Send your Google credentials.json
| Command | Action |
|---|---|
/status | Current agent state |
/forza | Trigger pipeline immediately |
/forzaora <topic> | Publish now with a specific topic |
/topic <text> | Add topic to queue |
/coda | View topic queue |
/skip | Skip today's video |
/setpubblica <hour> | Change publish time (UTC) |
/setvideogiorno <n> | Videos per day (1–5) |
/recap | Analytics on recent videos |
/memoria | What the agent remembers |
Natural language works too:
"Next video about the future of remote work" "Avoid mentioning crypto" "Make the pacing faster"
15 providers supported. Set AI_SERVICE in .env to switch at any time.
OpenRouter and Ollama (the wizard defaults) need no extra packages. Providers with their own SDK are optional extras - install only what you use:
pip install "tube-assistant[openai]" # also deepseek/xai/together/perplexity/fireworks/azure
pip install "tube-assistant[anthropic]" # or: gemini, mistral, groq, cohere, huggingface, all
| Provider | Cost | AI_SERVICE value | Key |
|---|---|---|---|
| OpenRouter | Free tier | openrouter | OPENROUTER_API_KEY |
| OpenAI | Paid | openai | OPENAI_API_KEY |
| Anthropic | Paid | anthropic | ANTHROPIC_API_KEY |
| Gemini | Free tier | gemini | GEMINI_API_KEY |
| Mistral | Paid | mistral | MISTRAL_API_KEY |
| Groq | Free tier | groq | GROQ_API_KEY |
| DeepSeek | Very cheap | deepseek | DEEPSEEK_API_KEY |
| xAI (Grok) | Paid | xai | XAI_API_KEY |
| Cohere | Paid | cohere | COHERE_API_KEY |
| Together AI | Paid | together | TOGETHER_API_KEY |
| Perplexity | Paid | perplexity | PERPLEXITY_API_KEY |
| Fireworks AI | Paid | fireworks | FIREWORKS_API_KEY |
| Azure OpenAI | Paid | azure_openai | AZURE_OPENAI_API_KEY |
| Ollama Cloud | Paid | ollama_cloud | OLLAMA_API_KEY |
| Local Ollama | Free | ollama_local | — |
Every model is overridable via env (e.g. OPENAI_MODEL=gpt-4o, GROQ_MODEL=mixtral-8x7b-32768).
See youtube_ai_agent/template/.env.example for the full list of variables
(the wizard copies it to your workspace as .env).
tube-assistant # interactive TUI menu (recommended)
tube-assistant onboard # first-time setup wizard
tube-assistant start # start the 24/7 daemon
tube-assistant run # one-shot pipeline (one video now)
tube-assistant dry-run # full pipeline, no upload (test your setup)
tube-assistant clips # clip source: Pexels stock or AI video generation
tube-assistant preflight # check keys, ffmpeg, credentials
tube-assistant update # update to latest version
tube-assistant status # show workspace and config
tube-assistant workspace # print workspace path
Workspace: ~/.youtube-ai-agent/ by default, the current directory when run from a git clone,
or YOUTUBE_AI_WORKSPACE if set. Logs land in <workspace>/logs/.
python -m unittest discover -s tests # same suite CI runs (needs ffmpeg for the render tests)
| Service | Cost |
|---|---|
| OpenRouter free tier | $0 |
| Pexels API | $0 |
| Telegram bot | $0 |
| Pollinations.ai (thumbnails) | $0 |
| Edge TTS (voice) | $0 |
| YouTube Data API | $0 (standard quota) |
Total: $0/month on free tiers.
Optional, off by default. A generated clip costs money — an 8-minute video is
~96 five-second segments, so generating all of them is expensive. That is why
the default when you enable it is hybrid: the AI covers the first clips
(the hook, where retention is won) and Pexels fills the rest.
VIDEO_AI_MAX_CLIPS is the per-video cap and is never exceeded; generated
clips are cached, so re-running the same topic does not pay twice.
| Mode | What it does |
|---|---|
pexels | Stock only. Free. Default. |
ibrido | First N clips generated, rest from Pexels. |
ai | Every clip generated, no stock download. |
Configure it from the TUI (tube-assistant clips, or Video clips in the
menu): source, provider, API key, model and the cap. If the provider is down or
out of credit the pipeline falls back to Pexels instead of publishing a video
with no b-roll.
Set VIDEO_EDITOR=vedit (or pick it in tube-assistant clips, after the clip
source) to have vedit cut the video
instead of the built-in montage. Same clips, captions and music — but built as a
real timeline: dissolves every few cuts, slow Ken Burns zoom, a colour look picked
from the script mood, music that ducks under the voice, loudness at -14 LUFS.
uv tool install --force "tube-assistant[editor] @ git+https://github.com/metiutek/tube-assistant.git"
The project is kept in output/progetto_vedit.json: open it with
vedit ui output/progetto_vedit.json to touch up a video by hand before
publishing. If vedit is missing or its render fails, the pipeline falls back to
the built-in montage — it never skips a video.
| Variable | Default | |
|---|---|---|
VIDEO_EDITOR | interno | interno or vedit |
VEDIT_LOOK | auto | auto (from mood), nessuno, or a vedit look id |
VEDIT_TRANSIZIONE | dissolve | any vedit transition, or nessuna |
VEDIT_TRANSIZIONE_OGNI | 3 | one transition every N cuts |
VEDIT_KENBURNS | 1 | slow zoom on every clip |
VEDIT_QUALITA | high | draft / medium / high / max |
youtube_ai_agent/ CLI and launcher (pip entry point)
moduli/
cervello.py Topic and script generation (LLM)
audio.py Voice synthesis (Edge TTS)
asset.py Pexels clip download + AI clip pool assembly
video_ai.py AI video generation (Replicate / fal.ai / Luma / OpenRouter)
impostazioni_video.py Clip-source settings screen (wizard + TUI)
montaggio.py Video editing (FFmpeg / MoviePy)
editor_vedit.py Optional montage with vedit (VIDEO_EDITOR=vedit)
thumbnail.py AI thumbnail (Pollinations.ai / HuggingFace + Pillow)
pubblica.py YouTube Data API v3 upload
analytics.py Channel performance reading
strategia.py Strategy adaptation from analytics
telegram_handler.py Telegram bot (live control)
ai_client.py Multi-provider AI client
agent.py Main daemon (24/7 scheduler)
wizard.py Configuration wizard
MIT — use, modify, and distribute freely.
Created by Mattia Cibin (Metiu) — independent developer from Italy.
GitHub checked 64h ago - refresh overdue. Recently viewed repositories target hourly refresh.