AI tools
Let AI agents save your works to ZAGAVO. They save drafts only; you review and submit them yourself in Creator Studio.
Drafts only: AI tools cannot submit for review, publish, spend coins or change your account.
zagavo is a command-line tool for people and AI agents such as Claude Code and Codex. It uploads from files on your computer, resumes interrupted video uploads and never adds the same file twice.
Quick start: one sentence to your AI agent
Paste this into Claude Code, Codex or another agent that can run commands. It installs the CLI, asks you to sign in, and uploads your work as a draft.
Read https://www.zagavo.com/ai-tools/agent.md and follow it to install the ZAGAVO CLI and upload my work in this folder to ZAGAVO.Install
Needs Node.js 20 or later. FFmpeg (ffprobe) is used to read video length; without it, pass --duration.
npm install -g https://www.zagavo.com/downloads/zagavo.tgz
zagavo helpnpx https://www.zagavo.com/downloads/zagavo.tgz helpSign in
Run zagavo login. Your browser opens ZAGAVO; check the account and allow draft saves. The sign-in lasts up to 30 days.
zagavo login
zagavo whoamiOn a computer without a browser, or a remote machine, run zagavo login --device and enter the code it shows on any phone or computer.
zagavo login --deviceCommon commands
Where a command takes a work, give its id or the exact title of one of your works. Every command accepts --help.
zagavo work create --title "The Lighthouse" --synopsis "A keeper finds a message in the fog." \
--world world.md --cover cover.jpg --made-with-aizagavo character add "The Lighthouse" --name Mira mira-1.png mira-2.pngzagavo scene add "The Lighthouse" --name "Harbor at night" harbor.jpgzagavo episode add "The Lighthouse" episodes/01.mp4 episodes/02.mp4zagavo status "The Lighthouse" --waitzagavo work listUpload a whole work at once
Describe the work in a JSON manifest; paths are relative to the manifest. Run zagavo push --example for a template.
{
"work": {
"title": "The Lighthouse",
"synopsis": "A keeper finds a message in the fog.",
"madeWithAi": true,
"tags": [
"mystery"
]
},
"cover": "cover.jpg",
"world": "world.md",
"characters": [
{
"name": "Mira",
"images": [
"characters/mira.png"
]
}
],
"scenes": [
{
"name": "Harbor at night",
"images": [
"scenes/harbor.jpg"
]
}
],
"episodes": [
{
"video": "episodes/01.mp4",
"title": "Arrival"
},
{
"video": "episodes/02.mp4",
"title": "The Signal"
}
]
}zagavo push --example > manifest.json
zagavo push manifest.jsonRunning push again only sends what is missing, so it is safe to retry after any error.
Use with AI agents
Add --json to get one JSON object on stdout; progress goes to stderr. Exit codes tell the agent what to do next.
Use the zagavo CLI (run zagavo help --json first) to upload the work in ./lighthouse to ZAGAVO: write a manifest.json for the cover, world.md, characters, scenes and episode videos, run zagavo push manifest.json --json, and give me the preview link. If I am not signed in, tell me to run zagavo login.zagavo push manifest.json --json
# {"ok":true,"workId":"…","episodes":[…],"studioUrl":"…"}
# {"ok":false,"error":{"code":"NOT_SIGNED_IN","message":"…","hint":"…","exitCode":3}}Exit codes
- 0
- Done
- 1
- Failed (see error.code)
- 2
- Wrong arguments or unreadable file
- 3
- Not signed in, or not allowed
- 4
- Limit reached: allowance, size or rate
- 5
- Network or server error: retry the same command
- 6
- CLI too old: run zagavo update
Files and limits
- Videos: MP4 or MOV, up to the size and minutes shown by zagavo whoami.
- Images: JPEG, PNG or WebP up to 10 MiB, cropped around the centre. Cover 3:4 (600 px short side), characters 3:4 (480 px), scenes 16:9 or 9:16 (360 px).
- World setting: a text or Markdown file of up to 100,000 characters.
Update
zagavo update installs the latest version with the tool you installed it with. zagavo update --check only reports whether one exists.
zagavo update
zagavo update --check --json
zagavo changelogOnce a day the CLI checks for a newer version and mentions it after a command. Set ZAGAVO_NO_UPDATE_CHECK=1 to turn this off.
When ZAGAVO no longer accepts an old version, commands stop with exit code 6 and the message to run zagavo update.
Version history
0.1.0Latest
- First release: sign in with your browser or a device code.
- Create drafts, set the world text, cover, characters and scenes, and add episode videos with resumable uploads.
- push uploads a whole work from a manifest and can be run again safely.
- version, update and changelog commands; --json output on every command.