Reading the repo
Opening the box…
Reading the repo
Opening the box…
How to install on Windows
AI video factory: from one topic to a finished, multilingual YouTube video. Claude agents write, plan, draw and review; a Studio keeps the human in charge.
Saved setup from 16 h ago
Will it work on Windows?
Heads-upBuilding it yourself? It also needs PostgreSQL, Redis and 23 settings in .env (5 secret).
docs/GETTING_STARTED.mdffmpeg/ffprobe is not on PATH, voice-over durations and loudness use the copy bundled with Remotion)ANTHROPIC_API_KEYgit clone https://github.com/ersinkoc/AI-Video-Factory.git
cd AI-Video-Factory
pnpm install
cp .env.example .env # fill in the keys you have; empty providers are disabled
pnpm ys providers # which providers are active?
pnpm ys render-demo # no API calls: local Remotion render test
In PowerShell, use Copy-Item .env.example .env for the copy step. Edit the new .env with your credentials
before checking providers. pnpm ys doctor checks local tools without generation or paid calls.
The demo pauses for preview approval before encoding. Follow the local render demo steps to complete it, or the isolated CI recipe to keep its files separate.
It runs without Docker. Assets go to .data/assets, the cost ledger to .data/ledger.jsonl and videos to
.data/episodes. To use Postgres 18, Redis 8 and RustFS (S3) instead (Docker required):
pnpm infra:up # ports: 5433 (pg), 6380 (redis), 9000/9001 (rustfs)
pnpm db:migrate
pnpm test:integration
# .env: STORE=s3, LEDGER=db
In vector episodes the director can put a formula or a real data graph on a board in the middle of a shot. The code turns that recipe into a Manim scene and renders it locally into a transparent clip (no API, no model-written code; LaTeX is limited to math commands). Setup in PowerShell on Windows:
python -m venv .data/tools/manim-venv
.data/tools/manim-venv/Scripts/python -m pip install manim==0.22.1
winget install --id MiKTeX.MiKTeX --scope user
# Let MiKTeX fetch missing LaTeX packages on its own:
& "$env:LOCALAPPDATA/Programs/MiKTeX/miktex/bin/x64/initexmf.exe" --set-config-value='[MPM]AutoInstall=1'
Other locations: YS_MANIM (path to the manim executable) and YS_LATEX_BIN (LaTeX bin folder). Boards are
cached under library/math.
pnpm studio
Open http://localhost:3100. For smooth episode playback, use the production build:
pnpm studio:build
pnpm studio:start
Continue with the Studio guide or the CLI guide. Run pnpm ys doctor to diagnose local
tools without generating media or making paid calls; see Environment diagnostics.
Keys and switches live in .env (see .env.example). Notable ones:
| Variable | Purpose |
|---|---|
| FAL_KEY, GEMINI_API_KEY, ELEVENLABS_API_KEY | Media providers. If a key is empty, that provider is disabled. |
| ANTHROPIC_API_KEY | Claude agents. If empty, the Claude Code login is used. |
| YS_MODEL_CREATIVE / _FAST / _CHEAP | Default model for each tier. Per-agent choices on the Models page override these. |
| STORE=s3, LEDGER=db | Use S3 and Postgres instead of local files. |
| GEMINI_OMNI_VIDEO=1 | Enable Gemini Omni Flash video (the Veo replacement; not yet verified with a real run). |
| YS_UPDATE_CHECK=0 | Turn off the Studio's update check. |
| YS_RENDER_GL | Chrome drawing backend for renders. Default angle (graphics card; about 40% faster, and needed for 3D figures). swangle is software GL for machines without a GPU. A GPU render that crashes is retried once with software GL. |
| YS_BROWSER_EXECUTABLE | Path to a Chrome or Chrome for Testing binary that renders, stills and thumbnails use instead of the Chromium Remotion downloads. Empty uses Remotion's own. Needed where that Chromium hangs at start, as on macOS 26.5 (browser has disconnected / Target closed); the render error points to this variable then. |
The version lives in the root package.json. The Studio header shows it, and so does pnpm ys version.
The Studio checks the latest GitHub release every 6 hours. If a newer version exists, a banner with the release notes appears. To update:
git pull && pnpm install && pnpm studio:build # then restart pnpm studio:start
For maintainer releases, see Release ownership and recovery.
Then run powershell -ExecutionPolicy Bypass -File .\setup.ps1. It stops at the first error and is safe to run again. Servers and tests aren't started; it lists them at the end. Read it first.
Needs Git: winget install Git.Git
git clone https://github.com/ersinkoc/AI-Video-Factory.git cd AI-Video-Factory
Node.js >=24
winget install CoreyButler.NVMforWindows nvm install lts nvm use lts
Fill in secrets: S3_ACCESS_KEY_ID, S3_SECRET_ACCESS_KEY, FAL_KEY, GEMINI_API_KEY, ELEVENLABS_API_KEY
Copy-Item .env.example .env
Needs: PostgreSQL, Redis
winget install Docker.DockerDesktop docker compose -f docker-compose.yml up -d
corepack enable pnpm install
pnpm test
You need Node.js 24+, pnpm 11, FFmpeg, and either a signed-in Claude Code installation or an ANTHROPIC_API_KEY. Add media-provider keys for the voice, image and video services you want to use. Docker is optional.
git clone https://github.com/ersinkoc/AI-Video-Factory.git
cd AI-Video-Factory
pnpm install
cp .env.example .env
In PowerShell, use Copy-Item .env.example .env for the last step. Fill in your keys in .env; providers with empty keys are disabled. Then start the Studio:
pnpm studio
Open http://localhost:3100, create an episode and review its script and concept before production. For smooth in-browser episode playback, use pnpm studio:build followed by pnpm studio:start.
To inspect your setup or try a local render without paid API calls:
pnpm ys doctor
pnpm ys render-demo
The demo pauses for preview approval; follow the demo steps to finish rendering.
Assets, the cost ledger and episodes are stored under .data by default. The Studio has no login and binds to 127.0.0.1; keep network access limited to people you trust. See Getting started for configuration and Studio access for network setup.
No reports for Windows yet.
GitManual AI Agent reads the 7 key files and writes a step-by-step guide for Windows. Once written, it's saved for everyone.