> ## Documentation Index
> Fetch the complete documentation index at: https://heygen-1fa696a7.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Claude Code

> Connect HeyGen to Claude Code and make AI avatar videos from your terminal.

Make HeyGen videos from Claude Code with a plain-language prompt.

**1. Add the server**

Run this in your terminal:

```bash theme={null}
claude mcp add --transport http -s user heygen https://mcp.heygen.com/mcp/v1/
```

`-s user` adds HeyGen to every project. Leave it out to add HeyGen to the current project only.

**2. Connect your HeyGen account**

Inside Claude Code, run `/mcp`, choose `heygen`, and approve access in the browser. HeyGen shows as `connected` when you're set.

**3. Ask for a video**

```text theme={null}
Make a 60-second HeyGen explainer about our new API endpoints.
```

Claude Code writes the script, picks the avatar, and renders the video. Finished videos also appear in **Projects** in HeyGen.

> [!TIP]
>
> For sharper scripts and scene structure, add [HeyGen Skills](https://heygen-1fa696a7.mintlify.site/skills/install.md) to Claude Code.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.