flow-connector-cli
v1.0.19
Published
CLI and local bridge for the Flow Connector Chrome extension — batch image and video generation on Google Flow, driven from a terminal or an AI coding agent.
Maintainers
Readme
flow-connector-cli
CLI and local bridge for the Flow Connector Chrome extension. Batch-generate images and videos on Google Flow from your terminal or an AI coding agent — using the Google session you are already signed into. No API keys, no per-image cost.
npm install -g flow-connector-cli
flow-auto status --site flowRequires Node.js 20 or newer. If npm is not recognised, install Node from
nodejs.org and open a new terminal.
What this package is for
This package alone does nothing. It is the local half of a two-part tool:
| Piece | Where it comes from |
|---|---|
| Chrome extension | Chrome Web Store — Flow Connector |
| This CLI + bridge + MCP server | npm (you are here) |
| Agent skill | shipped inside this package — flow-auto skill install flow-generate |
Install this if you want to drive generation from a terminal or a coding agent (Claude Code, Cursor, Codex, Windsurf, Gemini, or any MCP client).
The fastest setup is the extension's own side panel: Setup → Copy setup prompt, then paste that into your agent. It installs this package, wires up the skill or the MCP server, and checks the connection.
Requirements — the one people miss
There is no API here. The extension drives the real flow.google.com interface in your browser, so a Flow tab must be:
- open, and
- logged in, and
- visible on screen — not minimised, not fully covered by another window.
Chrome throttles timers and rendering in hidden tabs, so a covered window makes generation stall rather than run slowly. The browser side-by-side with your editor, or on a second monitor, is the setup that works.
Usage
# is everything connected?
flow-auto status --site flow
# images
flow-auto generate create flow-text-to-image --prompt "a red fox in snow" --aspect-ratio 16:9 --wait
flow-auto generate create flow-image-to-image --prompt "make it watercolour" --image ./photo.png --wait
# video (slower — give it a longer timeout)
flow-auto generate create flow-text-to-video --prompt "waves at sunset" --duration 8 --wait --wait-timeout 15
flow-auto generate create flow-frame-to-video --prompt "she turns and smiles" --image ./frame.png --wait --wait-timeout 15
# a batch: submit without --wait, then poll
flow-auto generate create flow-text-to-image --prompt "..." --index 1 --folder run1
flow-auto generate list
# stitch clips into one file (needs ffmpeg)
flow-auto merge ./clip1.mp4 ./clip2.mp4 -o ./final.mp4
# remove the Gemini sparkle from your own generation (needs ffmpeg)
flow-auto clean ./in.jpg --mark flow -o ./out.jpgModes: flow-text-to-image, flow-image-to-image, flow-text-to-video,
flow-frame-to-video, flow-ingredients-to-video, flow-video-to-video,
flow-extend-video, flow-create-character, flow-set-voice,
flow-rename-asset, flow-upload-assets. Run flow-auto modes for the
current list.
clean matters most for reference images: feeding a marked image into a
video job can paint the mark into the scene, where it is no longer an overlay
and cannot be removed. Use it only on media you generated yourself. It does not
change the fact that the media is AI-generated, and does not touch the
invisible SynthID watermark Flow also applies.
The bridge daemon starts automatically on first use and listens on
127.0.0.1:8791 — loopback only, reachable solely by tools already running on
your machine.
Privacy
Everything runs locally. The extension's only outbound calls are to Google Flow itself and to a licence/configuration endpoint. Full policy.
Support
Open an issue, or use Help → Report a problem in the extension's side panel, which fills in your version and log for you.
License
MIT © Srijan Kaiwart
Not affiliated with, endorsed by, or sponsored by Google LLC. Product names are used only to say what this tool works with. Automating a website may be subject to that site's terms of service; use responsibly and at your own discretion.
