Spiral gives your agent every tool with one account. Browse the tools →

opencode · VideoReleased 2026-02-15

How to Use HeyGen Video Agent v2 in opencode

HeyGen Video Agent v2 turns a written brief into a narrated video for explainers, lessons, and product announcements. Give it a complete script and scene directions when the wording and visual sequence matter.

Prompts to try with HeyGen Video Agent v2 in opencode

Copy an example into opencode, or ask in your own words.

Read the README and use HeyGen Video Agent v2 to make a roughly 60-second introduction for new users. Explain the problem, the main workflow, and the next step. Use only documented claims.

HeyGen Video Agent v2opencode
Try asking
  • Read CHANGELOG.md and use HeyGen Video Agent v2 to create a roughly 30-second release announcement. Cover the latest user-facing change, who benefits, and one action to take.

  • Use the project's quickstart documentation to write a three-scene tutorial, then generate it with HeyGen Video Agent v2. Target 60 seconds, with one narrated step per scene and consistent visuals.

  • Read the troubleshooting guide and use HeyGen Video Agent v2 to make a roughly 60-second how-to video about its most common error. Explain the symptom, cause, and documented fix.

  • Read the architecture overview and use HeyGen Video Agent v2 to create a roughly 90-second lesson for new contributors. Explain three components with narrated motion graphics and a closing recap.

How to set up HeyGen Video Agent v2 in opencode

Pick the way that suits you. Each takes about two minutes.

Use Spiral's MCP server

  1. Add the server

    Leave out --global to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.

    opencode mcp add spiral --global --url https://api.spiral.ai/mcp
  2. Sign in

    Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, /mcps starts the same sign-in.

    opencode mcp auth spiral
  3. Check it

    Spiral shows as connected.

    opencode mcp list

Use the Spiral skill

  1. Send opencode this message

    Your agent reads Spiral's skill and sets itself up.

    set up https://spiral.ai/SKILL.md
  2. Sign in or paste a key

    Approve Spiral in the browser, or give the agent a key from the console.

Use the Spiral CLI

  1. Install and sign in

    Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run HeyGen Video Agent v2

    One request; the result comes back by polling or a webhook.

    curl https://api.spiral.ai/v1/runs \
      -H "Authorization: Bearer $SPIRAL_API_KEY" \
      -H "Content-Type: application/json" \
      -H "Idempotency-Key: $(uuidgen)" \
      -d '{
        "provider": "fal",
        "model": "fal-ai/heygen/v2/video-agent",
        "input": {
          "prompt": "Create a 15-second explainer video about fal.ai Video Workflows.\n            Target audience: Developers, AI engineers, and creative tech teams\n           …"
        }
      }'

Then paste one of the prompts above: opencode finds HeyGen Video Agent v2 on Spiral, shows the price and runs it.

HeyGen Video Agent v2 providers and prices

Spiral runs HeyGen Video Agent v2 through fal. Open a card for today's price, with every fee included.

falVideo
HeyGen Video Agent v2
fal-ai/heygen/v2/video-agent

What can you do with HeyGen Video Agent v2 in opencode?

Turn project documentation into narrated explainers, tutorials, and release announcements. Have the coding agent extract the relevant facts and write scene instructions before generating the video.

Customer onboarding explainers

Explain one product concept with narration and a short sequence of supporting visuals.

How-to videos

Turn a written procedure into a narrated sequence with one clear instruction per scene.

Course lessons

Teach one concept, walk through an example, and finish with a recap.

Employee training

Explain a policy through a practical scenario and a short checklist.

Product announcements

Introduce a change, explain who it helps, and describe the next action.

Sales outreach

Build a short narrated introduction around a prospect's problem and a relevant product benefit.

Company news briefs

Summarize approved announcements with names, dates, and next steps supplied in the brief.

Questions about HeyGen Video Agent v2 in opencode

Can opencode use HeyGen Video Agent v2?

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run HeyGen Video Agent v2 like any built-in tool.

How much does HeyGen Video Agent v2 cost in opencode?

`config.duration` off adds $13.26 per run. `config.duration` adds $3.978 per minute. Billed on `config.duration`. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your opencode plan is separate.

Do I need a fal account to use HeyGen Video Agent v2 in opencode?

No. Spiral runs HeyGen Video Agent v2 on its own fal account. You sign in to Spiral once and never paste a key.

How long does it take to set up HeyGen Video Agent v2 in opencode?

About two minutes: add the server, then sign in, then check it.

Does opencode wait while HeyGen Video Agent v2 runs?

HeyGen Video Agent v2 runs in the background. opencode starts the run, checks on it and gives you the video when it's ready.

What is HeyGen Video Agent good for?

Use it for narrated explainers, how-to videos, course lessons, training, product demonstrations, and sales outreach. HeyGen also lists news briefs and company updates.

How long can a HeyGen Video Agent v2 video be?

The documented minimum is five seconds, with suggested lengths of 30, 60, or 90 seconds. Duration is approximate, and those suggestions do not establish a maximum.

Can I supply a complete script?

Yes. HeyGen recommends pasting a full script to guide the scene sequence, while Video Agent adjusts flow, timing, and visuals.

What should I include in the brief?

Identify the audience and list the facts, names, numbers, and steps that must appear. That gives Video Agent concrete requirements to work from.

How do I keep scenes visually consistent?

Define a visual style before generation and carry it through the scene instructions. HeyGen warns that unspecified styling can lead to scenes that look inconsistent.

Get started

Start using HeyGen Video Agent v2 in opencode

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into opencode:

Set up opencode

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options