gflow-cli: MCP server and CLI for Google Flow (Veo 3.1, Omni, Nano Banana)
English | 简体中文
gflow-cli is an open-source MCP server and command-line tool that automates Google Flow. It generates Veo 3.1 and Omni video and Nano Banana and Imagen images from Claude Code, Claude Desktop, Cursor, Codex, VS Code or your terminal, billed to your own Google account's Flow credits. Use it as a Google Flow CLI or a Veo MCP server. Install it from PyPI with uv tool install gflow-cli (MIT, macOS, Windows and Linux).

An independent project, not affiliated with Google. It drives your own signed-in Flow session in a real Chrome window, so Google's terms apply to your account: read the DISCLAIMER and ACCOUNT_SAFETY.
gflow-cli at a glance
| |
|---|
| What it is | One Python package that is both a CLI (gflow) and an MCP server (gflow mcp run, gflow serve) for Google Flow |
| Agent surface | 29 MCP tools plus resources and prompts, over stdio and Streamable HTTP; listed in the official MCP Registry as io.github.ffroliva/gflow-cli |
| Terminal surface | 70+ commands with typed exit codes, most with --json output; gflow --help --json prints the whole tree for agents |
| Video models | Veo 3.1 Lite, Fast and Quality; Omni Flash and Omni 1.2 Flash (up to 15 s, up to 7 reference images) |
| Image models | Nano Banana 2.1, Nano Banana Pro, Nano Banana 2 Lite, Imagen 4 |
| Works with | Claude Code (plugin), Claude Desktop, Cursor, VS Code, Codex, any MCP client, shell scripts and CI |
| Cost | Free and MIT-licensed. Video bills your own Flow credits; images spend no credits (they count against a daily image quota) |
| Maturity | Releases are listed in the changelog; every release since v0.54.0 is live-verified against real Google Flow before it ships |
What can gflow-cli do?
- Generate video: text-to-video, image-to-video with a start and an end frame, and reference-to-video, on Veo 3.1 and Omni (
gflow video t2v | i2v | r2v, or gflow video generate to pick the mode for you).
- Make long videos:
gflow video extend --segments N continues a clip past Flow's 8 s limit with a continuous join, gflow video chain links shots frame to frame, and gflow scene create stitches clips server-side for free.
- Generate images: text-to-image and image-to-image, 1–4 per call, five aspect ratios (
gflow image t2i | i2i).
- Keep characters consistent:
gflow character create makes a reusable Flow Character (face, body, voice), and prompts can mention it as @Name.
- Upscale: video to 4K where Flow offers it for the item, 1080p or a GIF; images to 2K, or 4K on an Ultra plan.
- Run batches and pipelines: JSON batch runs where a row can build on an earlier row (
gflow run), multi-scene films from a manifest (gflow movie run), and persistent Agent-Mode briefs (gflow instructions).
- Rewrite prompts:
--tool creative-director and two other built-in prompt tools (reverse-engineer, storyboard), or your own (TOOLS).
- Track spend and media: the Veo credit balance (
gflow credits), a local media catalog (gflow data), a health check (gflow doctor), and output to S3, MinIO or Google Cloud Storage.
Features on the way are tracked in #1367.
How do I connect Claude Code, Cursor or Codex to Google Flow?