@toandev95/gflow
v0.1.2
Published
Unofficial Google Flow CLI rebuilt in Node.js and TypeScript.
Maintainers
Readme
gflow
Unofficial command-line tool for Google Flow image workflows.
gflow opens your installed Google Chrome with a persistent local profile, uses your Google Flow session, and saves generated images to disk.
Install
npm install -g @toandev95/gflowRequirements:
- Node.js 22 or newer
- Google Chrome installed
- A Google account with access to Google Flow
Authenticate
Import cookies exported from a Chrome session:
gflow auth import-cookies ./labs.google.jsonVerify the saved profile:
gflow auth verifyGenerate Images
Text to image:
gflow image t2i "a cinematic product photo of a chrome robot"Image to image:
gflow image i2i "turn this into a clean studio product render" --ref ./image.pngUseful options:
gflow image t2i "prompt" --model nano2 --aspect 1:1 -n 1 --out ./imagesSupported model aliases:
nano2nano-proimagen4
Supported aspect ratios:
9:1616:91:14:33:4
Output
By default, generated images are written to ./gflow-output in the directory where you run the command.
You can override the output directory with:
gflow image t2i "prompt" --out ./my-imagesor:
GFLOW_OUTPUT_DIR=./my-images gflow image t2i "prompt"Runtime Data
Browser profile data is stored in the current user's app data directory:
- Windows:
%LOCALAPPDATA%/gflow - macOS:
~/Library/Application Support/gflow - Linux:
$XDG_DATA_HOME/gflowor~/.local/share/gflow
Set GFLOW_HOME to use a different profile/config location.
Commands
gflow auth import-cookies <cookie-json>
gflow auth verify
gflow image t2i <prompt>
gflow image i2i <prompt> --ref <path...>Notes
This is an unofficial tool and depends on the Google Flow web experience being available to your account. If Google Flow changes its UI or access rules, generation may require an update.
