代码插件

OpenClaw ShortDrama Plugin — 插件工具

v1.0.7

OpenClaw plugin that exposes the shortdrama workflow as a native tool

0· 4·0 当前0
下载插件包 项目主页
最后更新
2026/4/12

版本

latestv1.0.72026/4/3

安装命令

点击复制
官方npx clawhub@latest install openclaw-shortdrama-plugin
镜像加速npx clawhub@latest install openclaw-shortdrama-plugin --registry https://cn.clawhub-mirror.com

插件文档

OpenClaw ShortDrama Plugin

Native OpenClaw plugin that exposes the short drama workflow as a native tool. The plugin acceptance target is the local OpenClaw workflow.

For the full packaging, runtime, and release checklist, see PLUGIN_GUIDE.md.

What it does

    • Registers a native shortdrama_generate tool for the fixed production pipeline
    • Keeps the core plugin acceptance path local and tool-first
    • Intended to reuse OpenClaw's bundled byteplus provider instead of defining a duplicate provider plugin
    • Runs the workflow against a plugin-local workflow/ work root instead of a legacy bundled runtime directory
    • Keeps media prompts fictional-only: no real-person likeness, no celebrity resemblance, and no documentary-style human reference look

Requirements

    • python3
    • ffmpeg
    • Network access to the BytePlus ARK APIs
    • One BytePlus credential: BYTEPLUS_API_KEY preferred, or ARK_API_KEY as the backward-compatible fallback
    • Optional BRIDGE_DURATION_SECONDS if you want to tune how strongly adjacent clips blend at the boundary

Default models

The workflow uses these default BytePlus models unless you override them in the environment:

    • Language model: seed-2-0-pro-260328
    • Image model: seedream-5-0-260128
    • Video model: dreamina-seedance-2-0-260128

Portability checklist

To make the plugin runnable on another machine, keep these items in place:

    • openclaw.plugin.json at the package root.
    • package.json with the openclaw.extensions entry.
    • workflow-core/requirements.txt empty and offline-friendly.
    • A working python3 and ffmpeg on the target machine.
    • BYTEPLUS_API_KEY in ~/.openclaw/.env, or ARK_API_KEY as the backward-compatible fallback.
    • A smoke test command that uses the local wrapper:
./scripts/run_shortdrama.sh --brief "A healing rainy-night story about a girl and a cat." --core-only

If ./scripts/bootstrap_env.sh and the smoke test both pass, the plugin is in a good state to run on another machine with the same basic runtime assumptions.

Dependencies

Core workflow dependencies:

    • No additional OpenClaw plugins are required.
    • The workflow is designed to use OpenClaw's bundled byteplus provider when that provider is available in the installed OpenClaw build.

API keys

Prefer this environment variable:

    • BYTEPLUS_API_KEY

Legacy compatibility is still supported:

    • ARK_API_KEY

If BYTEPLUS_API_KEY is present, the local workflow maps it to ARK_API_KEY for backward compatibility.

The shipping workflow does not use Telegram, Discord, Feishu, or other chat-delivery environment variables in the core path.

You can obtain or manage the BytePlus API key here:

If you are setting up OpenClaw for the first time, the host-side setup and auth guidance lives in the OpenClaw project repository:

That is the right place to look for the BytePlus/OpenClaw auth flow and the host configuration that provides the API key to plugins.

Mode

    • Core workflow only: this is the primary and supported plugin acceptance path.

Local install

openclaw plugins install -l /path/to/openclaw-shortdrama-plugin
openclaw plugins enable shortdrama
openclaw gateway restart

Recommended provider setup

Use the bundled BytePlus provider:

openclaw onboard --auth-choice byteplus-api-key

The shipped workflow also accepts legacy ARK_API_KEY, but BYTEPLUS_API_KEY is the preferred env var for this plugin.

First run

    • Put your BytePlus key in ~/.openclaw/.env, for example:
BYTEPLUS_API_KEY=your_byteplus_key

The local wrapper auto-loads ~/.openclaw/.env, so plugin-local runs can match a normal OpenClaw host configuration. If you want a template, copy .env.example and fill in your key.

    • Create a brief file:
mkdir -p workflow/runtime
printf '%s\n' 'A healing rainy-night story about a girl and a cat.' > workflow/runtime/current_brief.txt
    • Run the workflow from the plugin root:
./scripts/run_shortdrama.sh --brief-file workflow/runtime/current_brief.txt --core-only
    • To retry only media stages:
./scripts/run_shortdrama.sh --brief-file workflow/runtime/current_brief.txt --skip-story --core-only

Tool-first usage

The preferred plugin runtime is the native tool:

    • Tool name: shortdrama_generate
    • Required parameter: brief
    • Optional parameters: force_media, skip_story

This keeps the fixed pipeline inside the plugin runtime instead of making any external notification layer part of the core execution path for this repository. The tool executes the Python workflow entry directly; the shell wrapper remains available for manual smoke tests and local scripts.

Work root

The plugin's generated outputs live under workflow/:

    • workflow/docs/
    • workflow/scripts/episode-01.md
    • workflow/storyboards/
    • workflow/assets/
    • workflow/deliverables/

The legacy implementation sources now live under workflow-core/. That directory is not the primary runtime surface of the plugin.

数据来源ClawHub ↗ · 中文优化:龙虾技能库