gflow-cli
Lets your AI agent generate Veo videos and Imagen images through your own Google Flow account.
360 stars on GitHubby ffrolivaLicense MITUpdated 18 days ago
How to install
This MCP is local: it runs on your computer.
It works in apps installed on your PC (Claude Desktop, Claude Code, Cursor, VS Codeβ¦). Choose your app:
Paste in the terminal:
claude mcp add gflow-cli -- uvx gflow-cli mcp run
What to fill in
| Name | What it is | Required |
|---|---|---|
GFLOW_CLI_HOME | Where gflow keeps its Chrome profile, config and database. Defaults to a per-user directory. | No |
Ready! Now test it
Restart the app and paste one of these requests in the chat:
Generate a 16:9 video of a slow push-in on a sunlit forest clearing.
Make a photo of a hot air balloon over Tokyo at sunrise.
What it is
gflow-cli is a command-line tool that also ships an MCP server for Google Flow. Your agent can generate images and videos, create reusable characters and run batches. It drives a real browser logged in to your own Google account. It is unofficial, in alpha and not affiliated with Google.
What it can do
gflow image t2i: text-to-imagegflow video t2v: text-to-videogflow video i2vandr2v: image-to-video and reference-to-videogflow video extend: continue a clip past 8 secondsgflow character create: make a reusable charactergflow auth loginandgflow auth status: sign in and check the sessiongflow mcp run --no-spend: run the MCP server without credit-spending tools
When to use
- βΊWhen you want an AI agent to batch-generate images or video clips from a list of prompts.
- βΊWhen you need the same character to appear across several generations.
- βΊWhen you want to script Veo video work from the terminal or an agent.
What you need
Skills that pair well
MCP or skill?
The MCP gives the agent the hands. The skill teaches the right way to use them. Together, the result is better and uses fewer tokens.
cli-anything-ollamaLets your agent run AI models stored on your own computer through Ollama, for chat, text generation, and embeddings.ai-video-genHelps your agent generate AI video clips from a text description or a reference image, choosing from several video generation services.image-generationLets your agent generate or edit images from a text prompt, such as an illustration, icon, poster, or photo.Frequently asked questions
Is it open source and free?
The code is on GitHub and PyPI. Video generation uses credits from your own Google Flow account.
Does it cost credits?
The readme says credits are only spent on Veo video generation; images and composition are free.
Is it official?
No. It is alpha, reverse-engineered and not affiliated with Google. Automation is subject to Google's terms and may break if Flow changes.
Can I stop the agent from spending credits?
Yes. Run the MCP server with gflow mcp run --no-spend so credit-spending tools are never registered.
Does it work headless?
It uses a headed browser profile because Google's login and reCAPTCHA need it. A stale session can renew headlessly with gflow auth renew.
Is my account safe?
The readme points to an account-safety document and says it cannot promise that automation will not be flagged.
If it does not work
- βΊRun gflow auth login --browser chrome once, then gflow auth status to check the session.
- βΊInstall the browser with the Playwright install chromium command before the first run.
- βΊIf a command fails with a selector-drift exit code, Flow's page changed; update gflow with gflow update.
5 new skills a week. 1 minute to read.