Grab an API key and set it in your shell. If you're already on a HeyGen plan with MCP connected to your agent, you can skip the key — MCP will be used automatically.
The repo ships three skills you can install:
heygen-avatar— build a persistent digital identity from a photo or descriptionheygen-video— generate identity-first presenter videosheygen-translate— translate / dub existing videos into 175+ languages with voice cloning and lip-sync
Most users want avatar + video together. They chain: heygen-avatar returns an avatar id that heygen-video consumes. heygen-translate is independent — install it whenever you need to localize finished videos.
If you have GitHub CLI v2.90+ available, this is the most portable install. gh skill writes to the right directory for your agent automatically (Claude Code, Cursor, Codex, Gemini CLI, GitHub Copilot, Junie, Goose, OpenHands, Amp, Cline, OpenCode, Warp, and more):
gh skill install heygen-com/skills heygen-avatar
gh skill install heygen-com/skills heygen-video
gh skill install heygen-com/skills heygen-translateProject scope (current repo only) is the default. For user scope (every project on this machine):
gh skill install heygen-com/skills heygen-avatar --scope user
gh skill install heygen-com/skills heygen-video --scope user
gh skill install heygen-com/skills heygen-translate --scope userPin to a release tag for reproducibility:
gh skill install heygen-com/skills heygen-avatar@v3.1.0 --pin
gh skill install heygen-com/skills heygen-video@v3.1.0 --pin
gh skill install heygen-com/skills heygen-translate@v3.1.0 --pinclawhub install heygen-skillsClawHub installs all three skills to your agent's default skills directory automatically.
For OpenClaw users who want bundled MCP support too:
openclaw plugins install clawhub:@heygen/openclaw-plugin-heygenClone into your agent's skills directory:
OpenClaw (default: ~/.openclaw/skills/heygen-skills, custom installs may differ — check your config):
git clone https://github.com/heygen-com/skills.git ~/.openclaw/skills/heygen-skillsClaude Code (default: ~/.claude/skills/heygen-skills):
git clone https://github.com/heygen-com/skills.git ~/.claude/skills/heygen-skillsNot sure where your skills directory is? Ask your agent: "Where is your skills directory?"
Two auth modes with explicit priority:
| Priority | Mode | Trigger | Billing |
|---|---|---|---|
| 1 | CLI (API key) | HEYGEN_API_KEY is set |
Direct API usage (separately billed) |
| 2 | MCP (OAuth) | MCP tools visible AND no API key | HeyGen plan credits (existing subscription) |
| 3 | CLI (fallback) | heygen auth login session |
Direct API usage |
CLI with API key (recommended for agents):
curl -fsSL https://static.heygen.ai/cli/install.sh | bash
export HEYGEN_API_KEY=<your-key>
heygen --version # verify binary is on PATH
heygen auth status # verify authIf
HEYGEN_API_KEYis set, the skills use the CLI. This is the most predictable setup for agent workflows.
MCP (zero-setup if on a HeyGen plan): connect HeyGen's remote MCP server to your agent — OAuth handles auth, calls use your existing plan credits. See README for agent-specific setup.
Paste this prompt to your agent — it will find the right paths automatically:
Install the HeyGen Skills from https://github.com/heygen-com/skills.git — clone it into your skills directory (find it with your config or ask if unsure). Install the HeyGen CLI via
curl -fsSL https://static.heygen.ai/cli/install.sh | bashand export HEYGEN_API_KEY=<your-key> (get one at https://app.heygen.com/api). Or, if you're on a HeyGen plan and already have MCP connected to your agent, skip the key step — MCP will be used automatically. Then use the heygen-avatar skill to create an avatar for me, and heygen-video to make a 30-60 second intro video, casual tone.