[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [Spiral media tools](https://spiral.ai/integrations/opencode/spiral)

# How to Use Spiral media tools in opencode

To use Spiral media tools in opencode, connect Spiral to opencode once, then ask for what you want in plain words. opencode can then reach both Spiral media tools, priced per run from one balance.

|  |  |
| --- | --- |
| Tools | 2 |
| Categories | Video |
| Served by | Spiral |
| Pricing | Pay per run, no subscription |
| Setup | About 2 minutes, no API key |

## Prompts to try with Spiral media tools in opencode

- Use Spiral media tools on the video I attach and give me the result as an MP4. Save the result in ./assets.
- Process these three clips with Spiral media tools and tell me the total cost before you start.
- Run Spiral media tools on this screen recording so it is ready to post.
- Run Spiral media tools on every MP4 in this folder and give me a list of the results with their cost.
- Check what Spiral media tools costs for a 3-minute clip, then run it on the video I attach.

## How to set up Spiral media tools 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.

```bash
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.

```bash
opencode mcp auth spiral
```

3. **Check it**: Spiral shows as connected.

```bash
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.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run Spiral media tools**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "spiral",
    "model": "ffmpeg",
    "input": {
      "command": "<command>"
    }
  }'
```

Then paste one of the prompts above: opencode finds Spiral media tools on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/opencode

## Spiral media tools tools and prices

- [FFmpeg Media Editor](https://spiral.ai/tools/spiral/ffmpeg) (Spiral): $0.0013 per run, plus $0.00052 per second FFmpeg runs (whole seconds, at least one). Held at `max_seconds`, default 300.
- [HTML Video Renderer](https://spiral.ai/tools/spiral/render-video) (Spiral): $0.500001 for any video up to 10 minutes (`durationInFrames` / `fps`), then by the second up to $1.500002 at 30 minutes. Held and charged exactly; a refused composition is free.

## What can you do with Spiral media tools in opencode?

opencode can edit and transform video with Spiral media tools right in your repository and save the results where you need them: as files in your project, in a script or in your build. One sign-in covers every tool, so your code stays free of provider SDKs and keys.

### Batch processing

Run the same edit over many files and get a list of results.

### Clean-up

Upscale, remove watermarks or backgrounds before publishing.

### Repurposing

Turn long recordings into posts for each channel.

### Short clips from long video

Cut highlights for social channels.

### Format conversion

Resize and re-encode for each platform.

### Quality fixes

Stabilize, upscale or clean up footage.

## Overview

- [Spiral media tools](https://spiral.ai/providers/spiral)
- [All opencode guides](https://spiral.ai/integrations/opencode)

## Spiral media tools in other agents

- [Amp](https://spiral.ai/integrations/amp/spiral)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/spiral)
- [Claude](https://spiral.ai/integrations/claude-desktop/spiral)
- [Claude Code](https://spiral.ai/integrations/claude-code/spiral)
- [Cline](https://spiral.ai/integrations/cline/spiral)
- [Codex](https://spiral.ai/integrations/codex/spiral)
- [Cursor](https://spiral.ai/integrations/cursor/spiral)
- [Devin](https://spiral.ai/integrations/devin/spiral)
- [dots](https://spiral.ai/integrations/dots/spiral)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/spiral)
- [Gemini](https://spiral.ai/integrations/gemini/spiral)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/spiral)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/spiral)
- [goose](https://spiral.ai/integrations/goose/spiral)
- [Grok](https://spiral.ai/integrations/grok/spiral)
- [Grok Build](https://spiral.ai/integrations/grok-build/spiral)
- [Hermes](https://spiral.ai/integrations/hermes/spiral)
- [Instinct](https://spiral.ai/integrations/instinct/spiral)
- [Manus](https://spiral.ai/integrations/manus/spiral)
- [Muse](https://spiral.ai/integrations/muse/spiral)
- [Muse Code](https://spiral.ai/integrations/muse-code/spiral)
- [n8n](https://spiral.ai/integrations/n8n/spiral)
- [Notion](https://spiral.ai/integrations/notion/spiral)
- [OpenClaw](https://spiral.ai/integrations/openclaw/spiral)
- [Perplexity](https://spiral.ai/integrations/perplexity/spiral)
- [Raycast](https://spiral.ai/integrations/raycast/spiral)
- [VS Code](https://spiral.ai/integrations/vscode/spiral)
- [Windsurf](https://spiral.ai/integrations/windsurf/spiral)
- [Zapier](https://spiral.ai/integrations/zapier/spiral)

## More opencode guides

- [YouTube video transcript](https://spiral.ai/integrations/opencode/youtube-video-transcript)
- [Baseball Savant MLB daily schedule](https://spiral.ai/integrations/opencode/baseball-savant-mlb-daily-schedule)
- [YouTube video sponsor detection](https://spiral.ai/integrations/opencode/youtube-video-sponsor-detection)
- [Baseball Savant leaderboards](https://spiral.ai/integrations/opencode/baseball-savant-leaderboards)
- [YouTube video search](https://spiral.ai/integrations/opencode/youtube-video-search)
- [Baseball Savant pitch search](https://spiral.ai/integrations/opencode/baseball-savant-pitch-search)

## Questions about Spiral media tools in opencode

**Can opencode use Spiral media tools?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Spiral media tools like any built-in tool.

**How much does Spiral media tools cost in opencode?**

Each tool has its own price, for example FFmpeg Media Editor: $0.0013 per run, plus $0.00052 per second FFmpeg runs (whole seconds, at least one). Held at `max_seconds`, default 300; HTML Video Renderer: $0.500001 for any video up to 10 minutes (`durationInFrames` / `fps`), then by the second up to $1.500002 at 30 minutes. Held and charged exactly; a refused composition is free. You pay per run from one Spiral balance, and failed runs are free.

**Do I need a Spiral account to use Spiral media tools in opencode?**

No. Spiral runs Spiral media tools on its own Spiral account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Spiral media tools in opencode?**

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

**Does opencode wait while Spiral media tools runs?**

Spiral media tools runs in the background. opencode starts the run, checks on it and gives you the video, audio, image when it's ready.

**Which Spiral media tools tools can opencode use?**

opencode can reach both Spiral media tools, covering video. Popular ones include FFmpeg Media Editor and HTML Video Renderer. Ask for one by name, or describe the task and opencode picks a fitting tool.

**Can opencode compare Spiral media tools tools?**

Yes. Ask opencode to run the same request on two Spiral media tools tools and show both results with what each cost. Each run is priced and billed on its own.

**What happens if a Spiral media tools run fails in opencode?**

It is not charged. Spiral holds the estimated price when the run starts and returns it to your balance if the run fails on Spiral's side or the provider's. opencode gets the error and can retry or try another tool.

**Is there a Spiral media tools subscription or plan?**

No. Spiral is pay as you go from one prepaid balance, with no plans or minimums, and credits never expire. Auto top-up keeps opencode from stopping when the balance runs low.

