moneyprinterturbo-video
MoneyPrinterTurbo Video Generation
The user only needs to provide a video topic or script. Complete installation, configuration reuse, generation, waiting, and final MP4 delivery automatically. Do not stop after giving instructions or commands.
Required Behavior
- Ask the user only for required API credentials that are missing, rejected, or unusable. Combine all required credentials into one request.
- Do not ask for confirmation before installing, generating, waiting, using defaults, or returning the result.
- Do not create or repeatedly update a detailed plan for a standard generation request. Send one short progress update and execute.
- Run the helper as one foreground command with a timeout of at least 20 minutes.
- Never poll with
sleep,echo,ps, repeatedls, or repeatedtail. If the terminal returns a resumable session ID, continue waiting on that same session. - Do not read the full log after success. Read only the short reported error or the relevant log tail after failure.
- Never print API keys, tokens, the full
config.toml, or credential-bearing configuration fragments.
Defaults
Unless the user requests otherwise, generate one Chinese 9:16 portrait video with Pexels footage, the default Chinese Edge TTS voice, subtitles, and background music. Install MoneyPrinterTurbo under the user's home directory.
Execution
1. Locate the helper
Resolve SKILL_DIR from this SKILL.md file. The helper is the adjacent mpt_agent.py. Set the terminal tool's working directory to SKILL_DIR and invoke the helper by its relative filename. Do not put the absolute helper path in the command, and do not run an extra ls or dir check.
This is required on Windows because some agent terminal validators remove backslashes from absolute paths embedded in commands. Using mpt_agent.py with workdir=SKILL_DIR avoids that failure and works on both macOS and Windows.
If the client loaded only the remote SKILL.md, download the helper from the official repository to a temporary directory, then use that temporary directory as the command working directory:
https://raw.githubusercontent.com/harry0703/MoneyPrinterTurbo/main/docs/skill/mpt_agent.py2. Run the helper
Do not run a separate uv --version preflight. Run the helper directly. If the shell explicitly reports that uv is missing, install uv and retry the same helper command once.
macOS uv installation:
curl -LsSf https://astral.sh/uv/install.sh | shWindows PowerShell uv installation:
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"Use this foreground command with workdir=SKILL_DIR and a timeout of at least 20 minutes:
uv run --no-project --python 3.11 python mpt_agent.py --subject "<video topic>"On Windows, do not try absolute backslash paths, absolute forward-slash paths, or copies in the workspace before this relative command. If a terminal tool reports referenced_script_path_missing, verify that its working directory is exactly SKILL_DIR and retry the relative command once. Do not cycle through path variants.
Do not use Docker, Conda, system pip, or a manually managed virtual environment.
Exit Handling
Exit code 0: deliver the result
Successful output has this form:
MPT_RESULT
VIDEO_FILE=<absolute path>/final-1.mp4
TASK_DIR=<absolute path>/storage/tasks/<task_id>
LOG_FILE=<absolute path>/run-<task_id>.log
RESULT_FILE=<absolute path>/latest-result.jsonmpt_agent.py emits VIDEO_FILE only after confirming that the file exists and is non-empty. Do not run another ls, stat, or file validation command.
If the terminal reports exitCode=0 but truncates the output or returns a history-file reference without MPT_RESULT, do not infer failure and do not inspect old logs. Read this file once:
~/MoneyPrinterTurbo/.agent-logs/moneyprinterturbo-video/latest-result.jsonTreat status=completed as success. Return only the absolute video path and a concise description, for example:
The video is ready.
Topic: ...
Video file: /absolute/path/to/final-1.mp4
Summary: Chinese portrait video with voice-over, subtitles, and background music.Exit code 10: request credentials once
MPT_NEEDS_INPUT includes only the required fields, recommended LLM providers and signup links, custom OpenAI-compatible requirements, and material-provider signup links. Ask only for the listed values and do not request credentials already found in config.toml.
After the user responds, rerun the same foreground command with only the required environment variables:
MPT_LLM_PROVIDER
MPT_LLM_API_KEY
MPT_LLM_BASE_URL
MPT_LLM_MODEL_NAME
MPT_PEXELS_API_KEY
MPT_VOLCENGINE_ARK_API_KEY
MPT_OFOX_API_KEY
MPT_METASO_MINIMAX_API_KEY
MPT_MUAPI_API_KEY
MPT_USEAPI_TOKEN
MPT_INFISTAR_VIDEO_API_KEY
MPT_JALAPENO_VIDEO_API_KEYWhen SEEDANCE_CHARGE_CONFIRMATION_REQUIRED is present, explain that every
generated Seedance clip creates a paid Ark task. Only after the user
