Skip to main content
Make HeyGen videos from Gemini CLI with a plain-language prompt. Install the CLI first with npm install -g @google/gemini-cli@latest.
1

Add the server

Add HeyGen to ~/.gemini/settings.json, next to any servers you already have. Use .gemini/settings.json in a project folder to add it to that project only.
Restart Gemini CLI.
2

Connect your HeyGen account

The first time Gemini uses HeyGen, approve access in your browser. Run /mcp to see heygen connected.
3

Ask for a video

Gemini writes the script, picks the avatar, and renders the video. Finished videos also appear in Projects in HeyGen.
For sharper scripts and scene structure, add HeyGen Skills to Gemini CLI.