- Codex app
- Codex CLI
Install the HeyGen plugin. It’s the same plugin as in ChatGPT, and it shows videos and voices as interactive cards in the chat.Codex writes the script, picks the avatar, and renders the video. Finished videos also appear in Projects in HeyGen.
1
Install the HeyGen plugin
Open the Plugins tab, find HeyGen, and select the plus button.
2
Connect your HeyGen account
Start a new chat. When Codex asks, sign in to HeyGen in your browser and approve access. New to HeyGen? You can create an account during this step.
3
Ask for a video
Can't install the plugin? Add the MCP server instead
Can't install the plugin? Add the MCP server instead
Plugin availability can depend on your plan, workspace settings, and region. To connect HeyGen’s MCP server directly:
- Open Settings, then select MCP servers.
- Select Add server.
- Name it
HeyGen, choose Streamable HTTP, and enterhttps://mcp.heygen.com/mcp/v1. - Save the server, then select Restart.
The Codex app and Codex CLI share MCP settings, so a server you add in one also appears in the other.
Troubleshooting
Troubleshooting
- HeyGen tools missing after installing the plugin: start a new chat. Plugins load when a chat starts.
No authorization support detected: the URL has a trailing slash. Runcodex mcp remove heygen, then add it again with the command above.OAuth login is only supported for streamable HTTP servers: the server was added without--url. Remove it and add it again with the command above.- Tools missing after sign-in in Codex CLI: restart Codex CLI.

