One package, two doors onto Google Flow: the gflow CLI in your terminal and an MCP server for your AI assistant. Install once, sign in once, then use either.
Before you begin
gflow-cli is beta, reverse-engineered and not affiliated with Google. It drives a real Chrome session signed in to your own Google account, which needs Flow access. Video spends your Flow credits; images spend none, but count against a daily image quota.
Prerequisites
✓ Python 3.11+ (uv installs a managed Python)✓ Google account with Flow access✓ Google Chrome installed✓ Display for one-time browser login✓ Optional: an MCP client (Claude Code, Claude Desktop, Cursor, VS Code, Codex)
Install
One command puts gflow on your PATH. Then install the browser engine it needs (~150 MB).
Install the CLI:
Terminal
$uv tool install gflow-cli
Install Chromium (one-time, required by the browser transport):
Terminal
$uv tool run --from gflow-cli playwright install chromium
A one-time login opens a real Chrome window. Sign in with your Google account and keep going until the Flow editor loads — gflow closes the window for you and verifies the session automatically.
Use --browser chrome — the default auto picks the same real Chrome when it is installed, and only this strategy marks the profile as a real-Chrome profile.
Terminal
$gflow auth login --browser chrome
What happens
A Chrome window opens at the Flow sign-in page.
Sign in with your Google account (2FA included).
Keep going until the Flow editor loads.
gflow CLOSES THE WINDOW for you and verifies automatically.
Renamed profile from default to your-name (derived from Google account).
On first run, the profile is created as default then auto-renamed to your email's local-part (e.g. your.name@gmail.com → your-name). Single-account users never have to think about profiles. To use a custom name, pass --profile myname.
Register the MCP server with your client. It runs the same code as the CLI, on the same signed-in profile, so an assistant can generate, upscale and manage media for you.
Claude Code: install the plugin from inside Claude Code. It adds the MCP server and two skills, and ships disabled until you enable it.
The gflow entry is merged into the client's config file.
Existing content is kept; the old file is backed up as <name>.gflow-backup.
An entry that is already there is left untouched.
Restart the client to load the server.
Any other MCP client: command uvx, arguments gflow-cli mcp run, or gflow serve for Streamable HTTP at /mcp.
To keep an assistant away from your credits, register gflow mcp run --no-spend: the tools that spend credits are never registered.
Full setup: MCP server.