AI product video orchestrator — add image, video, and sound generation to any AI tool
pip install brandly-cli==0.8.0 Copy PIP instructions
Brandly is an AI media toolkit for product video: image, video, and sound generation plus a real post-production pipeline. It adds these capabilities to any AI tool (OpenCode, Codex, Qwen Code, Claude Code, etc.) via a CLI, an agent-callable tool surface, and an MCP server.
What runs today (audited 2026-09-25 — gaps tracked in the gap register):
Not shipped yet (roadmap — tracked, not claimed):
Run brandly capabilities for the machine-readable matrix — the same list this section is checked against (CI guard: tests/test_capabilities.py).
pip install brandly-cli Install Agent Skills Brandly ships a set of agent skills (camera language, storyboard, production bible, character/object/vehicle/animal/plant/mecha sheets, 3D spatial, consistency, video generation) that you can install into any AI tool that supports the npx skills protocol:
npx skills add https://github.com/Dream-Pixels-Forge/brandly-cli/tree/main/skills Available skills (see skills/README.md for details):
AI coding tools (opencode, Claude Code, Codex, pi, …) should drive brandly through its tool surface — never by inventing their own ffmpeg/provider calls:
brandly tools --json # machine-readable manifest: name, description, # JSON-Schema params, read-only class, backing command brandly mcp serve # MCP server over stdio (JSON-RPC 2.0) MCP client config:
{ "mcpServers": { "brandly": { "command": "brandly", "args": ["mcp", "serve"] } } } brandly init writes an AGENTS.md at the project root (created only if absent — your file is never overwritten) instructing agents to use this surface. brandly sync no longer writes provider API keys into tool configs by default; pass --legacy-provider-keys only if you deliberately want raw provider access (which bypasses the pipeline).
One orchestrating agent drives the pipeline by dispatching phase-scoped subagents — the contracts and gates are the only shared state:
brandly plan --json # 1. dispatch source of truth: per phase # inputs, outputs, gate, est_cost brandly run --execute --until --yes # 4. advance a phase brandly gate --all-scenes # 3. screen a worker result (deterministic) Read brandly plan --json — each phase carries inputs[], outputs[], the deterministic gate that verifies it, next_command, and est_cost (budget with brandly estimate before dispatching paid work). Dispatch one subagent per phase with that contract (brandly director prints the same table for humans). Screen every worker result with its gate — never trust a subagent's self-report; verify_element/scenes run deterministically (use_ai=False). Advance with brandly run --execute --until — fail-closed: a failed phase freezes current_phase and exits non-zero. On failure the run prints (and plan --json repeats) a structured retry_instruction: the failing error/verdict, the attempt counter (attempts/max_attempts), the exact re-run command, and — once the 3-attempt cap is reached — escalate: true with the human escalation command (brandly approve ). Re-dispatch the worker with that reason; the cap keeps the loop bounded. Cognition can run in parallel, but provider generation stays single-writer (subagents never fan out paid generation calls and never publish).
export AGNES_API_KEY="your-agnes-api-key" export MINIMAX_API_KEY="your-minimax-api-key" Or create a .env file:
AGNES_API_KEY=your_key_here MINIMAX_API_KEY=your_key_here AGNES_BASE_URL=https://apihub.agnes-ai.com/v1 MINIMAX_BASE_URL=https://api.minimaxi.com/v1 Quick Start 1. Initialize a Project brandly init \ --name "SuperWidget Pro" \ --idea "A revolutionary widget that organizes your desk with AI" \ --style cinematic \ --budget 500 \ --shots 5 \ --platforms tiktok instagram youtube 2. Run the Pipeline brandly estimate --style cinematic --shots 5 brandly run brandly approve brandly director 3. Generate Media brandly image --prompt "product on marble surface" --style-preset cinematic brandly video --prompt "sleek earbuds rotating" --duration 5 brandly music --prompt "upbeat electronic" --duration 30 brandly tts "Welcome to SuperWidget Pro" Running image generation externally (isolated context, #75) All project metadata (plans, generation docs, autosaved media) is written beneath the selected context root — never inferred. To keep an external pipeline's working tree clean:
# Isolated Brandly home (all .brandly/ state lands here, not in the repo): export ROOT=/tmp/brandly-home # or: brandly --root /tmp/brandly-home ... # Write the artifact outside the tree, attach it to an explicit project: brandly image --prompt "product on marble surface" \ --output ./out/product.png \ --project-id superwidget # No project selected? Pass nothing and run externally — no project records # are created (the run reports this explicitly instead of falling back to an # implicit "untitled" project): brandly image --prompt "hero shot" --output ./out/hero.png --json Machine-readable results and explicit outputs (#73) --output is the contract for "put the artifact exactly here": the provider payload is downloaded/decoded and validated (full decode + format, width and height probe) before an atomic move, so a failed or truncated download never leaves a partial or non-image file at the requested path.
--json makes the command script-safe: stdout carries exactly one JSON document and nothing else — callers no longer parse human-readable output to recover a provider URL.
brandly image --prompt "hero shot" --output ./out/hero.png --json { "status": "success", "task_id": "provider-task-handle", "provider_url": "https://... (credential query params redacted)", "path": "out/hero.png", "format": "png", "width": 1024, "height": 1024, "model": "image-model-id", "generated_at": "2026-09-24T00:00:00Z", "job_id": "job-id (recover with brandly job-poll)" } Failures exit non-zero with a structured error instead:
{ "status": "error", "error_code": "provider_error | no_image | image_download_failed", "error_message": "...", "task_id": null, "job_id": "job-id" } Branch on error_code, then recover the durable result for that job_id with brandly job-poll (#74) instead of re-submitting. Success detection is payload-driven: URL-only and base64-only provider responses both succeed; only a response carrying neither payload is reported as no_image.
If Blender is installed, generate spatial reference frames for Agnes AI keyframe/reference modes:
# Detect installed Blender version python -c "from brandly_cli.blender_integration import detect_blender; v = detect_blender(); print(v)" # Render spatial references python skills/brandly-3d-spatial/scripts/playblast_renderer.py \ --config .brandly/my-project/3d-spatial/cameras/scene.json \ --output .brandly/my-project/3d-spatial/cameras \ --mode single # Extract references for Agnes python skills/brandly-3d-spatial/scripts/extract_references.py \ --input .brandly/my-project/3d-spatial/cameras \ --output .brandly/my-project/3d-spatial/keyframes \ --strategy first 5. Export & Share brandly export --platforms tiktok youtube brandly thumbnail brandly stitch clip1.mp4 clip2.mp4 --transition fade brandly voice-match input.mp4 --source en --target es brandly analyze video.mp4 brandly share output.mp4 CLI Reference Project Management Command Description brandly init / brandly start Start a new video project brandly status Show project status brandly list List all projects brandly run Run the next pipeline phase brandly approve Approve a phase and advance brandly cost Show cost summary Media Generation Command Description brandly image Generate an image via Agnes AI (persists a durable job record; recover with brandly job-poll) brandly video Generate a video via Agnes AI (with 503 resilience) brandly music Generate background music brandly tts Generate voiceover via TTS brandly produce --shots shots.json Multi-shot film: registers ALL shots on the production plan (source of truth), then generates one shot at a time with a 60 s wait (Agnes: 1 request/min). No batch/parallel mode; resumable brandly job-poll Poll a durable image-job record; --output writes the recovered artifact — never submits a new generation Durable image jobs and retry safety (#74) brandly image writes a job record to ROOT/.brandly/jobs/ .json before the provider call; terminal state (artifact URL/metadata or failure reason) is persisted on success/failure. If the process dies — crash, --timeout exceeded, client disconnect — the result is not lost:
brandly job-poll --json # status / result_available / path brandly job-poll --output ./recovered.png # write the recovered artifact Polling only reads the durable record, so a disconnected client can never trigger a duplicate generation. --max-age (default 48 h) expires stale records. For new submissions, retry safety depends on the provider: ones that honour X-Client-Request-Id (Ark/Doubao) allow safe resume; providers without request-echo support are at-most-once — resubmission may bill again.
Large local reference images are auto-converted to smaller webp/jpeg payloads before upload (disable with BRANDLY_IMAGE_CONVERT=off). Scope auto-injected references with brandly video --no-auto-refs / --auto-ref-category , and adopt client-supplied plates with brandly reference --image [--no-generate].
ai video generation, product video, marketing video, cli tool, agent pipeline, multi-agent, agentic ai, brand video, social media video, tiktok video, youtube video, image generation, video generation, keyframe video, reference video, blender 3d, spatial reference, agnes ai, minimax tts, background music, voiceover, director agent, pipeline orchestration, creative ai, automated video production, product demo, commercial, advertising, content creation, shot list, storyboard, consistency, character sheet, reference sheet
agent agentic ai ai blender 3d brandly cli content creation creative ai director agent generation image keyframe video marketing video multi-agent orchestrator pipeline orchestration product video reference video social media spatial reference video video production
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 29, 2026.




