SurgeShorts
English
Make your API key

Your agent finds the moments and cuts the shorts

Give your agent a past YouTube live, Twitch VOD or Kick video. It gets the moments chat went wild, ranked as on surgeshorts.com, cuts the one you pick as a 9:16 short or a 16:9 MP4, and hands you the download link. You post first.

The skill

One page your agent reads: the API, the recipe from link to MP4, and the errors to tell you about. Point any agent at it.

https://surgeshorts.com/skill.md

Agents that run commands use the CLI. It waits while SurgeShorts reads the chat and renders the video, then saves the MP4.

npx -y https://surgeshorts.com/cli/surgeshorts-0.1.0.tgz moments "https://www.twitch.tv/videos/…"
npx -y https://surgeshorts.com/cli/surgeshorts-0.1.0.tgz export "https://www.twitch.tv/videos/…" --moment 1 --out moment1.mp4

What your agent does

  1. 1Reads the chat

    It sends the stream link and gets the moments back as JSON: when each starts and ends, how hard chat reacted, and what chat said.

  2. 2Cuts the moment

    It picks a moment, or you do, and SurgeShorts renders it as a 720×1280 short or in the stream's own 16:9 frame.

  3. 3Hands you the file

    It waits for the render and gives you the MP4's download link, kept for 7 days.

Set it up in your agent

Claude Code

Save the skill once. Then ask in plain words, like "find the 3 best moments in this stream and cut them as shorts", and Claude Code reads the skill and runs the CLI.

mkdir -p ~/.claude/skills/surgeshorts
curl -fsSL https://surgeshorts.com/skill.md -o ~/.claude/skills/surgeshorts/SKILL.md

Codex

Save the skill where Codex reads skills, then ask Codex for the best moments of a stream link. It runs the CLI in its shell.

mkdir -p ~/.agents/skills/surgeshorts
curl -fsSL https://surgeshorts.com/skill.md -o ~/.agents/skills/surgeshorts/SKILL.md

ChatGPT

Make a GPT. In Configure, add an action, choose Import from URL and paste the OpenAPI link below. Paste the skill's text into Instructions, and set the action's Authentication to API Key, Bearer, with your key.

https://surgeshorts.com/openapi.json

Cursor

Save the skill in your project's skills folder. Cursor's agent reads it when a stream link comes up and runs the CLI in its terminal.

mkdir -p .cursor/skills/surgeshorts
curl -fsSL https://surgeshorts.com/skill.md -o .cursor/skills/surgeshorts/SKILL.md

OpenClaw

Save the skill in OpenClaw's skills folder. Then send a stream link from the chat app you run OpenClaw in, and it replies with the moments and the MP4.

mkdir -p ~/.openclaw/skills/surgeshorts
curl -fsSL https://surgeshorts.com/skill.md -o ~/.openclaw/skills/surgeshorts/SKILL.md

n8n

Three HTTP Request nodes: the moments, the export, and its status. Loop the first with a Wait node while status is "mapping", and the last while status is "queued" or "running". Then download download_url with Response Format set to File. Put your key in a Header Auth credential on the export node: Authorization, Bearer ss_….

GET https://surgeshorts.com/api/v1/moments?url={{ $json.url }}&n=5
POST https://surgeshorts.com/api/v1/exports  {"url": "…", "start": …, "end": …, "format": "vertical"}
GET https://surgeshorts.com/api/v1/exports/{{ $json.id }}

Your API key

Finding moments needs no key. Exports take a free key: type your email, open the link, and press Make a key. Your agent makes a few shorts a day with it, each ending with a short SurgeShorts card.

On Pro, the same key exports with no end card, longer parts and more shorts a day, and Pro starts with a free trial. The key is shown once, and SurgeShorts keeps only its hash.

export SURGESHORTS_API_KEY=ss_…

Make your API key See the plans

Clip only streams you own or may clip, like a clipping campaign's. The Terms (section 7) say so.