> Documentation index: https://metorial.com/llms.txt. Every page is available as Markdown by adding .md to its URL.

# Set up HeyGen in Metorial for Claude, ChatGPT and Cursor
URL: https://metorial.com/docs/integrations/heygen
Last updated: 2026-11-24

Share HeyGen with your team in Claude, ChatGPT and Cursor through Metorial: OAuth or API key sign-in, 24 tools (14 read-only).

---

To give your team HeyGen in Claude, ChatGPT, Cursor and other AI clients, an admin shares the HeyGen integration in a Metorial portal, and each person signs in to HeyGen with their own account. Agents can create AI avatar videos from text or audio, generate videos from prompts and Studio templates, translate videos with lip-sync, and synthesize speech. The integration has 24 tools, 14 read-only, 7 write and 3 destructive, plus 1 trigger.

**What you will learn**

- How an admin shares HeyGen in a portal and how each person connects
- The 1 OAuth scope HeyGen can request, and what each one allows
- How to keep the 14 read-only tools and reject the other 10

**Before you start**

- A [portal](https://metorial.com/docs/platform/workforce/portals) with at least one access group
- An account with HeyGen for each person who connects
- For the CLI steps: the [Metorial CLI](https://metorial.com/docs/platform/cli), signed in to your portal

## Sign-in methods

| Method | Type | What a person provides |
| --- | --- | --- |
| **HeyGen OAuth** (default) | OAuth | Signs in to HeyGen after entering `codeVerifier` |
| **API Key** | API token | `apiKey` |

The portal and `metorial setup` use **HeyGen OAuth** unless someone picks another method.

### HeyGen OAuth

Before the sign-in, setup asks for:

- `codeVerifier` (optional)

People sign in to HeyGen and approve the scopes you allow. The integration can request:

| Scope | Name | What it allows |
| --- | --- | --- |
| `full_access` | Full Access | Full API access based on account permissions |

### API Key

To connect, a person enters:

- `apiKey`: HeyGen API key from Settings > API in your HeyGen dashboard

## Use your own HeyGen OAuth app

With your own OAuth app, people see your company's name on the HeyGen consent screen, and the client ID and secret belong to you.

1. **Start the credentials in Metorial**

   In the dashboard, select **Settings**, then **Organization Settings**. Under **Integrations and MCP**, select **Provider Auth**, then **Create Auth Credentials**. Choose HeyGen and copy the **Redirect URI**.

2. **Register the app with HeyGen**

   Create an OAuth app or client in HeyGen and add the redirect URI from Metorial as its redirect or callback URL. The vendor documents this in [OAuth documentation](https://docs.heygen.com/docs/connecting-your-app-to-heygen-with-oauth-20).

3. **Finish in Metorial**

   Copy the app's client ID and client secret. Back in Metorial, enter a **Name**, the **Client ID** and the **Client Secret**, review **Scopes**, and select **Create**. Then pick these credentials for the HeyGen integration.

## Admin: share HeyGen in a portal

### In the dashboard

1. **Open Shared Resources**

   Open **Workforce**, choose the portal, and select **Shared Resources** under **Access**.

2. **Share a new integration**

   Select **Share a Resource**, then **New Integration**, and choose HeyGen. Under **Auth Method**, keep **HeyGen OAuth** or pick another. For how members connect, choose **Each person connects**, so everyone signs in to HeyGen as themselves.

3. **Limit the tools**

   Under **Tool Filters**, set the write and destructive groups to **Reject** if agents should only read from HeyGen.

4. **Choose who gets it**

   Add the access groups that should see HeyGen. When a person asks for access from the portal, the request appears under **Access Requests**.

### With the CLI

The CLI cannot create the per-user HeyGen integration. Once it exists, check which groups have it:

```bash
metorial-admin portals access list <portal-id> --type provider_template --search heygen
```

## Employee: connect HeyGen

### In the portal

1. **Open HeyGen in the catalog**

   Sign in to your portal and open HeyGen. The status reads **Available**.

2. **Authenticate**

   Under **Quick setup**, select **Authenticate**. A HeyGen sign-in tab opens. Sign in and approve the permissions listed.

3. **Confirm**

   The status changes to **Configured**. If it later reads **Needs reconnect**, select **Reconnect** and sign in again.

### With the CLI

```bash
metorial catalog search heygen
metorial setup <catalog-item-id>
```

`catalog search` prints the catalog item ID. `metorial setup` uses **HeyGen OAuth**. To connect with **API Key** instead, find its ID with `metorial catalog get <catalog-item-id>` and add `--auth-method <auth-method-id>`.

### Add it to your AI client

`metorial install` adds your HeyGen connection to a local MCP client such as Claude Code, Cursor or Codex. `metorial list` prints the integration ID and `metorial client list` the client identifiers.

```bash
metorial list heygen
metorial client list
metorial install <client-identifier> <integration-id>
```

For a client that takes a server URL, such as ChatGPT, `metorial install custom <integration-id>` creates an installation token and shows the endpoint details.

## Make it read-only

Open the integration's **Tool Filters** and set the write and destructive groups to **Reject**. Agents keep the 14 read-only tools, such as `list_assets` and `list_videos`, and lose the 7 write tools, such as `upload_asset` or `generate_speech`, and the 3 destructive tools, such as `delete_asset` or `delete_video`.

Employees see the result on the integration's page in the portal under **Tool access**. For the full walkthrough, see [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions).

## Check it worked

```bash
metorial list heygen
metorial tools <integration-id>
metorial call <integration-id> list_voices -d '{}'
```

`metorial tools` lists the 24 tools, minus any you rejected. `list_voices` takes no input. It retrieves a page of available voices for text-to-speech in HeyGen.

To see every input a tool takes, run `metorial schema <integration-id> <tool-key>`.

## Tools

### Read-only tools (14)

- `list_videos`: List generated videos in your HeyGen account with pagination support.
- `list_avatars`: Retrieve a page of available AI avatars in your HeyGen account, including both public and custom avatars.
- `list_assets`: List uploaded assets (images, videos, audio files) in your HeyGen account.
- `list_voices`: Retrieve a page of available voices for text-to-speech in HeyGen.
- `list_talking_photos`: Retrieve a page of talking photos (photo avatars) in your HeyGen account.
- `get_remaining_quota`: Check remaining API credits and account quota.
- `list_templates`: List a page of available video templates in your HeyGen account.
- `get_template`: Retrieve details of a specific template including its dynamic variable definitions. Needs `templateId`.
- `get_video_status`: Check the status of a video generation job and retrieve the completed video URL. Needs `videoId`.
- `get_translation_status`: Check the status of a video translation job and retrieve translated video URLs. Needs `videoTranslateId`.
- `get_current_user`: Retrieve the authenticated HeyGen account identity and billing details.
- `list_translations`: List video translation jobs with their IDs, languages, and status.
- `list_translation_languages`: Discover the exact target language names accepted by translate_video.
- `get_video_agent_status`: Check a Video Agent session returned by create_video_from_prompt.

### Write tools (7)

- `upload_asset`: Upload an asset (image, video, or audio) to HeyGen from a public URL. Needs `url`.
- `generate_speech`: Generate natural-sounding speech audio from text using HeyGen's text-to-speech engine. Needs `text` and `voiceId`.
- `create_video_from_prompt`: Generate a video using the Video Agent from a simple natural language prompt. Needs `prompt`.
- `translate_video`: Translate a video into one or more target languages with natural voice cloning and lip-sync. Needs `targetLanguages`.
- `create_streaming_token`: Create a legacy Interactive Avatar streaming token for an account that still has streaming access.
- `create_avatar_video`: Generate an AI avatar video with one or more scenes. Needs `scenes`.
- `generate_from_template`: Generate a customized video from a HeyGen template by filling in dynamic variables. Needs `templateId` and `variables`.

### Destructive tools (3)

- `delete_video`: Permanently delete a generated video from your HeyGen account. Needs `videoId`.
- `delete_asset`: Permanently delete an uploaded asset from your HeyGen account. Needs `assetId`.
- `delete_translation`: Permanently delete a video translation and its generated files.

## Triggers

HeyGen has 1 trigger, which fire on events in HeyGen:

- `video_events`: Triggers on HeyGen video lifecycle events including avatar video completion/failure, video agent completion/failure, video translation completion/failure, and personalized video updates.

## Next steps

- [Claude Code](https://metorial.com/docs/platform/clients/claude-code), [Cursor](https://metorial.com/docs/platform/clients/cursor), [Codex](https://metorial.com/docs/platform/clients/codex) and [ChatGPT](https://metorial.com/docs/platform/clients/chatgpt): connect each client to your portal and use HeyGen there
- [Create custom OAuth credentials](https://metorial.com/docs/platform/integrations/create-custom-oauth-credentials): the Provider Auth screens in more detail
- [Tool permissions](https://metorial.com/docs/platform/guides/tool-permissions): tool filters and what employees see
- [HeyGen on metorial.com](https://metorial.com/integrations/heygen): the integration overview