TM

thesampadilla/montaj

开发工具

本页由 AI 翻译,技术细节请以原文为准。 查看原文

27 stars 质量 67 趋势 31MIT

AI视频编辑器 🎬

概览

一个面向AI代理的视频编辑剪辑。CLI优先,代理原生,开源。 Montaj 也是一款基于以下引擎构建的免费 Mac 视频编辑器。 Montaj 是一个面向代理的 CLI 程序。它会夹在你现有的 AI 代理(Claude Code、OpenClaw、Cursor 或任何工具)上,并赋予它专门的工具来编辑视频。内置步骤涵盖了整个剪辑流程。代理决定运行什么、顺序和参数。 Montaj 不单独剪辑。它提供工具;代理人做出创意决策。 所有行动都可以在终端进行。蒙塔杰是正式指挥部,MTJ是简称。 完整文档请参见CLI参考。 是单独的编辑操作——带有JSON模式的Python可执行文件,可调用为代理工具、CLI命令或API调用。本地步骤随Montaj自带;自定义步骤是任何遵循输出约定的可执行文件。 建议的编辑计划——使用哪些步骤以及使用哪些默认参数。

概述(AI 翻译)

为AI代理设计的视频编辑剪辑。CLI优先,代理本地,开源。

想要这个应用吗? Montaj 也是基于这个引擎构建的 Mac 免费视频编辑器:montaj.ag。

Montaj 是一个 CLIP——一个面向代理的 CLI 程序。它会夹在你现有的 AI 代理(Claude Code、OpenClaw、Cursor 或任何工具束)上,并为其提供专门的视频编辑工具。内置步骤涵盖了整个剪辑流程。代理决定运行什么、顺序和参数。

根本依赖是代理人。 Montaj 不单独编辑。它提供工具;代理人做出创造性决策。

快速安装

请将此信息发送给您的经纪人:

安装

PyPI:

Homebrew (macOS) — 安装Node.js和所有 Python deps:

来源:

可选附加内容:

快速启动

里面有什么

工作原理

CLI

所有操作都可以从终端操作。montaj 是完整命令,mtj 是短别名。

完整文档请参见CLI参考。

步骤与工作流程

步骤是单独的编辑操作——带有JSON模式的Python可执行文件,可作为代理工具调用,CLI命令或API调用。

本页由 AI 翻译,技术细节请以原文为准。

README

以下为原文 README 节选,完整内容请查看原文。

Montaj

A video editing CLIP for AI agents. CLI-first, agent-native, open source.

Want the app? Montaj is also a free video editor for Mac, built on this engine: montaj.ag.

Montaj is a CLIP — a CLI Program for agents. It clips onto your existing AI agent (Claude Code, OpenClaw, Cursor, or any harness) and gives it the specialized tools to edit video. Built-in steps cover the full editing pipeline. The agent decides what to run, in what order, and with what parameters.

The fundamental dependency is an agent. Montaj doesn’t edit on its own. It provides the tools; the agent makes the creative decisions.

Quick install

Send this to your agent:

Install Montaj from https://github.com/theSamPadilla/montaj, then read skills/onboarding/SKILL.md to get us started.

Install

PyPI:

pip install montaj
# install Node.js >=18 separately: https://nodejs.org
montaj install whisper   # whisper-cpp binary + model weights
montaj install ui        # npm deps + UI build

Homebrew (macOS) — installs Node.js and all Python deps:

brew install theSamPadilla/montaj/montaj
montaj install ffmpeg   # pinned static ffmpeg/ffprobe (with zscale for HDR); also in `install all`

From source:

git clone https://github.com/theSamPadilla/montaj
cd montaj
pip install -e ".[connectors]"
montaj install whisper
montaj install ui

Optional extras:

pip install "montaj[connectors]"  # Kling, Gemini API connectors
pip install "montaj[rvm]"         # background removal (RVM on onnxruntime, CPU)
montaj install all                # whisper + ui + rvm

Quick Start

# Headless — agent edits, renders, done
montaj run ./clips --prompt "tight cuts, remove filler, 9:16"

# With UI — watch the agent work live, tweak the result
montaj serve

# AI video generation — agent creates from a text prompt via Kling
montaj serve   # then create an ai_video project in the UI

What’s Inside

steps/              Step executables + JSON schemas (probe, trim, transcribe, generate, etc.)
workflows/          Editing plans (overlays, ai_video, carousel, blank)
skills/             Agent skill contracts (onboarding, edit-session, ai-video-plan, ai-video-generate, etc.)
connectors/         API connectors (Kling, Gemini)

render/             React + Puppeteer + ffmpeg render engine
serve/              Local HTTP + SSE server (montaj serve)
ui/                 Browser UI (Vite + React + Tailwind)
docs/               Architecture, CLI reference, UI design, schemas

How It Works

1. Upload clips + write an editing prompt (or describe an AI video)
2. montaj creates project.json [pending]
3. Agent picks it up, reads the workflow, calls steps as tools
4. Agent writes project.json as it works → UI updates live via SSE
在 GitHub 查看完整 README

推荐工具

换一个关键词,或者移除筛选条件。

安装

npx skillfish add thesampadilla/montaj
新手?先看 mcpskill.org 教程 →