
vedit — tell an AI to edit your video, and watch it happen
A normal video editor — timeline, clips, cuts, transitions — except an AI can use it for you.
You say what you want in plain words. It does the editing while you watch the clips move, and you can grab the mouse and fix anything at any point.
🇮🇹 Italiano: README.it.md
Install — 3 steps
1. Install uv (it installs Python apps for you). Then close and reopen the terminal.
| Windows (PowerShell) | macOS | Linux |
|---|---|---|
winget install astral-sh.uv |
brew install uv |
curl -LsSf https://astral.sh/uv/install.sh | sh |
2. Install vedit and ffmpeg
uv tool install vedit-mcp
vedit install-ffmpeg
If the terminal says vedit is not recognized, run uv tool update-shell, then close and
reopen the terminal.
3. Open the editor
vedit ui
The editor opens in your browser at http://127.0.0.1:8760. That's it.
Optional — let Claude Code edit for you: claude mcp add vedit -- vedit-mcp. This only
connects Claude Code to vedit; it does not install anything, so do step 2 first.
Something wrong? vedit doctor tells you what is missing and how to fix it.
Update to the latest version: uv tool upgrade vedit-mcp.
Using it — the 2-minute tour
- New project (top bar → new): pick the format — 16:9 for YouTube, 9:16 for Reels/Shorts/TikTok, 1:1, 4:5… — and the quality. You can change it later from the format button in the top bar.
- Add your footage: drag files onto the window, or search the web from the web tab on the left and click add on a photo or video.
- Ask the assistant (right panel → assistant): the first time, pick a model — if you have Claude Code installed there is nothing to configure. Then write what you want: "make a 30-second vertical video with these clips, on the beat of the music, with titles". The edit appears on the timeline while it works; Ctrl+Z undoes anything. Click the model pill at the top of the chat to switch model and effort in one click; every project keeps its own conversation, so reopening it picks up where you left. Click the model pill at the top of the chat to switch model and effort in one click; every project keeps its own conversation, so reopening it picks up where you left.
- Voiceover: top bar → voice, write the text, click generate and add. The system voice works with nothing to set up; OpenAI, ElevenLabs or Piper sound better.
- Export (top bar → export), then publish to YouTube or TikTok if you like (top bar → publish, sign in once).
The assistant remembers your preferences across projects (your usual format, style, voice…): see and edit them from the bookmark button in the assistant tab. In the model settings, what the assistant can use lets it also use your skills, MCP servers, plugins and Chrome — or the whole computer, if you choose so.
What it is
vedit is a video editor. The ordinary kind: a timeline, video and audio tracks, clips you drag, cut, speed up, colour-grade and fade into each other.
The difference is that everything you can do with the mouse, an AI can also do on command — because the buttons and the AI call the exact same operations. Nothing is AI-only, nothing is mouse-only.
So instead of half an hour of trimming, you type:
"Cut the first 40 seconds, remove the pauses where I say nothing, speed the screen recording up 2×, cut the b-roll on the beat of the music, and burn in subtitles."
and the clips rearrange themselves on the timeline in front of you. If it puts a cut in the wrong place, you drag that one clip and keep going. It is not a black box that hands you a finished file you cannot touch — it is your editing software, with a second pair of hands.
Who it is for
- Anyone who edits talking-head, tutorial or gameplay video and is tired of spending two hours on decisions that were never creative: finding the good take, cutting dead air, matching cuts to music, redoing the same volume curve.
- People who already work with Claude Code, Cursor or Codex. One line of setup and your coding agent can edit video, the same way it edits files.
- Developers who want video editing in a script or a pipeline — the whole project is a JSON document, so it can be generated, diffed and version-controlled like source code.
Why use it instead of the alternatives
| vs. "AI video generators" | They give you a finished clip you cannot fix. vedit gives you the project, every clip, every knob — and the AI only moves the same controls you would have moved. |
| vs. Premiere / DaVinci / CapCut | Those give you every control and none of your time back. Here the boring 80 % is delegated and the last 20 % stays in your hands. |
| vs. an ffmpeg script | Same speed and precision, but you can actually see what happened, scrub it, and undo it. |
| Cost and privacy | Runs on your machine. No subscription, no upload, no watermark, no render queue. MIT licensed. |
The interface is in English; code and comments are in Italian — that is the project convention.
What makes it work
An AI that cannot see the edit produces garbage. These are the parts that make the difference between a demo and something you would actually cut a video with:
| An agent can actually edit | 114 MCP tools that are the same operations as the buttons: cut, split, speed, keyframes, effects, transitions, render. Nothing is agent-only, nothing is UI-only. |
| The agent can see what it did | preview_frame returns the real rendered frame, preview_grid the whole edit as a contact sheet. An agent that guesses produces garbage; this one looks. |
| It cuts on the beat, for real | music_beats returns BPM, beat and bar length, first-beat offset and an energy profile, so cuts land on the music instead of near it. |
| It picks the takes | plan_edit splits shots longer than 12s into their own segments and scores them individually — three minutes of continuous footage becomes dozens of candidates with a real in-point. |
| Same project, same file | The render is deterministic. No hidden state, no "works in the preview, breaks on export". |
| You keep the timeline | Whatever the agent does shows up in the web UI, on the same in-memory project, and undoes with one Ctrl+Z. |
Table of contents
- Install — 3 steps
- Using it — the 2-minute tour
- Install, in detail
- Quick start
- Driving it from an agent (MCP)
- The web interface, panel by panel
- Keyboard shortcuts
- Command line
- What it can do
- Keyframes
- How it works
- Tests
- Known limits
- FAQ
- Contributing
- License
Install
Just to use it — nothing to clone
The three steps are at the top of this page. Details:
- The package on PyPI is
vedit-mcp(the nameveditwas taken; the commands are stillveditandvedit-mcp). The compiled web interface ships inside it: no build step. claude mcp addonly registers the server with Claude Code, it installs nothing. Without step 2 theveditcommand does not exist.- No permanent install?
uvx --from vedit-mcp vedit uidownloads and runs it on the spot. - Prefer pipx?
pipx install vedit-mcpdoes the same asuv tool install.
Same JSON for every other client (Cursor .cursor/mcp.json, Codex, VS Code):
{ "mcpServers": { "vedit": { "command": "vedit-mcp", "args": [] } } }
ffmpeg is the one thing pip cannot bring along — it is a program, not a Python package.
If it is missing, don't go hunting: vedit install-ffmpeg downloads a static build of ffmpeg
and ffprobe into ~/.vedit/bin. No administrator rights, no system changes, uninstalled by
deleting the folder. The agent has the same thing as the install_ffmpeg tool. If ffmpeg is
already on your PATH, that one wins — it usually has more hardware encoders.
To hack on it — one command
git clone https://github.com/metiutek/editorvideo-ai.git
cd editorvideo-ai
python scripts/setup.py
The script does everything: Python dependencies, compiled web interface, MCP server
registered, then vedit doctor and the fast tests as verification. It prints one line per
step and ends by telling you what is still missing and how to fix it. Re-running it is safe —
anything already in place is skipped.
python scripts/setup.py --venv # dependencies in .venv instead of the current interpreter
python scripts/setup.py --install-ffmpeg # try winget / brew / apt
python scripts/setup.py --no-frontend # CLI and MCP only, no web interface
python scripts/setup.py --rebuild # rebuild the UI after touching frontend/src
python scripts/setup.py --json # machine-readable result, for scripts and agents
Then vedit ui → http://127.0.0.1:8760.
Requirements
| Python | 3.10+ |
| ffmpeg + ffprobe | on PATH, downloaded with vedit install-ffmpeg, or pointed at with VEDIT_FFMPEG / VEDIT_FFPROBE |
| Node.js | 18+, only to compile the interface from source the first time |
| GPU | optional. NVIDIA / Intel / AMD are detected and used for rendering automatically |
Optional extras
Everything below is optional; without them the rest of the editor behaves identically and the tools that need them say what to install.
pip install -e ".[chat]" # anthropic — Claude with an API key in the assistant (other models need nothing)
pip install -e ".[vision]" # ultralytics — detect_subjects, track_mask, auto_reframe, remove_background, pin_to_subject (pulls torch)
pip install -e ".[transcribe]" # faster-whisper — transcribe, make_captions, tighten_speech, censor_speech
pip install -e ".[html]" # playwright — renders HTML clips (uses the Chrome or Edge you already have)
pip install -e ".[plugin]" # pedalboard — VST3 / AU audio plugins (VST2 .dll are not supported)
pip install -e ".[web]" # yt-dlp — web_download from video pages (YouTube, Vimeo, social...)
numpy and Pillow are not extras: footage analysis, music-timed editing, preview_grid
and color_scopes stand on them, and looking at your edit is rule number one.
Quick start
End to end, three commands:
vedit new film.json --preset 1080p
vedit import film.json shots/*.mp4 music.mp3 && vedit info film.json # prints media ids
vedit add film.json <media_id> --duration 3 && vedit render film.json out.mp4
Or open the editor and do it by hand:
vedit ui # http://127.0.0.1:8760
vedit ui --project film.json # opening a project directly
vedit ui --port 9000 --no-browser
The .json is the project: your video files stay where they are, nothing is copied.
Formats: any aspect ratio — 16:9, 9:16 (reels, shorts, TikTok), 1:1, 4:5 (feed),
4:3, 3:4, 21:9, 2:3 — or an exact WIDTHxHEIGHT; --size sets the short side
(720, 1080, 2160). The named presets still work: 1080p, 1080p60, 4k, 720p,
vertical, vertical60, square. Change it later with vedit format film.json 9:16 --fill,
from the format button in the top bar, or with project_settings(format=...) over MCP:
the timeline stays, the frame changes, and --fill crops the clips instead of leaving bars.
Driving it from an agent (MCP)
No VS Code needed. Someone who downloads vedit just runs vedit ui (or
uvx --from vedit-mcp vedit ui) and works in the browser; the assistant inside the app can be
Claude Code itself (see Assistant below). Editors and terminals are one option, not a
requirement.
The running editor is an MCP server too, at http://127.0.0.1:8760/mcp/. Any client that
connects there works on the project open in the browser — one project in memory, one writer,
every edit visible as it happens:
claude mcp add --transport http vedit-live http://127.0.0.1:8760/mcp/
The classic stdio server is still there for agents that start without a UI:
.mcp.json is already in the repo, so opening this folder in Claude Code offers the vedit
server on first launch (approve it once). Anywhere else:
claude mcp add vedit -- uvx vedit-mcp
Typical tool flow:
project_create → import_media → plan_edit (choose the material) → add_clips
→ refine (set_transition, set_speed, set_transform, add_effect, set_audio)
→ preview_grid to look at it → render_video
Times are in seconds. Every animatable parameter also accepts a keyframe block —
{"kf": [{"t": 0, "v": 0}, {"t": 2, "v": 1, "ease": "ease_in_out"}]}, with t relative to
the start of the clip. project_info returns the timeline state with ids.
Cutting many clips: use add_clips, which places all cuts in a single atomic call. One
call per cut is slow, floods the undo history for what is one gesture, and leaves half a
timeline behind if something breaks midway.
[{"media": "m1b1a", "start": 0.0, "in": 122.5, "duration": 1.5},
{"media": "m9155", "start": 1.5, "in": 98.5, "duration": 0.75}]
Spending fewer tokens: every tool call re-reads the agent's whole context, so an edit
costs calls × context. Tool replies are compact JSON without echoes, and batch applies
any list of edits ([{"tool": "set_transform", "args": {...}}, ...]) in one atomic call with
one undo step. transcribe(media=["*"]) and preview_media(media=["*"]) cover all the
footage in a single call; preview_frame(t=[...]) shows several instants in one image, and
add_html(vars=...) fills the {{placeholders}} of one template file for many title cards.
Showing the result: open_ui starts the web interface inside the MCP server process
and returns the address. It is not a second instance — the UI works on the same Store
object as the agent, and every change shows up in the browser live. One writer, no file
contention. close_ui shuts it down.
The editing rules ship with the server. mcp_server.ISTRUZIONI states them, so they reach
any client, and they are there because they are the actual defects of videos that come out of
here — decisions not made, not tool limits:
- the music must move — a fixed volume for the whole duration is the first thing that
makes a video feel flat; automate the gain with keyframes and pick the section with
music_beats; - not every cut is a hard cut — the hard cut is the default, not the only option; every transition still needs a reason;
- never the same shot twice — if the material is not enough, make the video shorter;
- after ten seconds you owe the viewer new information — cutting faster on the same images saves nothing;
- cinematic is a choice, not a filter — one strong moment held for three seconds beats ten half-seconds.
Full agent contract, including the code map and the rules for modifying it:
AGENTS.md (imported by CLAUDE.md, so it applies to Claude Code, Codex, Cursor
and the rest).
One project per file at a time. The UI and the MCP server both autosave; if you keep the same
.jsonopen in two processes, the last one to save wins. Withopen_uithe problem does not arise.
The web interface, panel by panel
┌──────────────────────────────────────────────────────────────────────┐
│ bar: new · open · save · ↶↷ · +video +audio +text · export │
├───────────────┬──────────────────────────────────┬───────────────────┤
│ media │ program / source │ properties │
│ library │ ┌────────────────────────────┐ │ assistant │
│ │ │ preview │ │ │
│ (tabs) │ └────────────────────────────┘ │ (tabs) │
│ │ ▶ ⏮ 0:01.2/0:13.0 zoom tracks │ │
│ ├──────────────────────────────────┤ │
│ │ timeline: V3 V2 V1 A1 … │ │
└───────────────┴──────────────────────────────────┴───────────────────┘
Panels resize by dragging the dividers, and the sizes are remembered.
1. Media. + imports files leaving them where they are; import folder takes a whole
folder with its subfolders (a camera card, a shoot of hundreds of files). Dragging files from the
desktop copies them into media/ next to the project (the browser does not hand over the
source path): the copy goes in chunks, with progress and a stop button, and resumes where it left
off — dropping the same files again does not copy them twice. For heavy shoots use +, which copies nothing. 📁+ creates a folder, which is just a label on the media.
Click opens a media in the source monitor, double click appends it to the timeline, drag
puts it exactly where you want.
2. Library. Pre-tuned looks, audio chains and transitions, with a name instead of twenty parameters: colour looks (cinema teal & orange, black and white, warm sunset, faded film…), stylised (VHS, dream, censor), retouch (sharpen, clean up, vignette, stabilise); voice and music chains; dissolve, iris, wipe and slide in four directions. Click applies to the selected clip — a video look with nothing selected goes on the master, i.e. the whole video. Drag a preset onto a clip to apply it there. A preset is only a chain of effects: one Ctrl+Z undoes it and every parameter stays editable.
3. Monitor and preview. Two tabs: program (the timeline) and source (one media alone).
When paused, the preview is the frame rendered by ffmpeg, so it is identical to the final
result, effects included. ▶ plays 12-second segments while preparing the next one in the
background; hit proxy in the top bar to make everything much faster. With a clip selected
you get the transform box: drag the image to move it, the corners to scale it. In the source
monitor, [ and ] mark in and out, then insert puts just that piece at the playhead.
4. Timeline and tracks. Track count is not fixed: a new project has one video and one
audio track, and you add more with + video / + audio. Every track header carries: rename
(double click), ▲▼ to reorder (for video, order is the stacking — higher = drawn on top),
👁/🔊 hide or mute, S for solo, 🔒 lock (protects clips from moves, cuts, effects and
deletion), ✕ delete, and a volume slider. A track excluded from the render is visibly faded
with a struck-through name; a locked one is hatched. Clips drag between tracks, edges trim,
snapping catches other clips and the playhead, video clips show filmstrips and audio clips
their waveform.
5. Properties. With a clip selected: name, start, duration, in-point, framing, speed and reverse, fades, outgoing transition, position / scale / rotation / opacity, audio (gain in dB, pan, fades), effects. The ◆ button