# v2.video

> v2.video is the GitHub for video editing. A creator's AI agent makes the video on their own computer, the `v2` CLI saves each version with the prompts and changes behind it, and `v2 push` publishes it to v2.video, where the creator reviews it and leaves comments for the agent, and anyone can watch a public video.

## How it works

- The video is made locally, by an AI agent (Claude Code, Codex or any agent that can run commands) or by an editor in their own tools.
- `v2 save` records each finished version (V1, V2, V3...) with a one-line summary, the exact prompts that asked for it, the model that made it and a list of what changed and where.
- `v2 push` uploads every saved version and prints the video's link on v2.video.
- The creator watches any version on the site, compares versions and leaves comments pinned to a moment in the video. Only the owner can comment; others can watch public videos.
- The agent reads those comments with `v2 comments`, makes the fixes, and marks each comment resolved on the next save.

Nobody edits on the site. It is read-only except the owner's comments and settings. Content arrives only through `v2 push`.

Projects are private by default: only the owner can open them. The owner can make a project public, and then anyone can watch it, clone it and fork it.

## Install

```sh
curl -fsSL https://v2.video/install.sh | sh
```

The CLI runs on macOS and Linux and needs git and ffmpeg. It installs to `~/.local/bin/v2`. Run `v2 update` later to get the latest release.

## First steps

1. In a new folder, tell your agent "use v2", or run `v2 init` yourself. It writes an AGENTS.md that teaches the agent the rules.
2. Ask the agent for a video. It makes it, renders it, and runs `v2 save`.
3. Run `v2 login` and approve the code it prints on the page it opens.
4. Run `v2 push` to get the link. After that, push after every save.

## Commands

- `v2 init`: start tracking this folder.
- `v2 import <files>...`: bring footage into the project (it lands in `assets/imported/`).
- `v2 save -m "<summary>" --prompt "<what the user asked>" --change "<time> <kind> <file>: <what changed>"`: save a new version. One `--prompt` per user message and one `--change` per change. `--model` names the model, `--resolves <id>` marks a comment fixed.
- `v2 log`: list saved versions, newest first, with what changed in each.
- `v2 diff`: open every version in the browser to watch one, compare two side by side and leave timed comments.
- `v2 restore vN`: bring the folder back to version N exactly, recorded as a new version.
- `v2 login`: sign in to v2.video in the browser, so push can upload.
- `v2 push`: upload every saved version (private) and print the link.
- `v2 clone <owner>/<slug> [folder]`: download a project from v2.video with all its versions, ready to edit, save and push. A link works too. Pushing someone else's project makes your own private fork. Needs `v2 login` first.
- `v2 comments`: list open comments from the `v2 diff` page and v2.video.
- `v2 update`: replace this v2 with the latest release.

## Pages

- `https://v2.video/<owner>/<slug>`: a video, showing its latest version.
- `https://v2.video/<owner>/<slug>/v<N>`: version N of a video.
- `https://v2.video/<owner>/<slug>/about`: what the video is and how it was made.
- `https://v2.video/<username>`: a creator's public videos.

Any of these pages returns markdown instead of the web app when requested with `Accept: text/markdown`. A video page lists its title, creator, versions, the prompts behind the requested version, what changed, and the command to clone it. A private or missing page returns this document.

## Words

- Video: the thing being made.
- Version (V5): one round of edits.
- Main: the cut that plays by default. Alt: a cut of the same version that differs in one way, such as sound, picture or length.
- Fork: your own copy of someone else's public video, with its full history. Forks start private.
