About Gflow CLI
Gflow CLI is an MCP server published by ffroliva in the Agents category: mCP server and CLI for Google Flow: generate Veo 3.1 and Omni video and Nano Banana / Imagen images from Claude Code, Claude Desktop, Cursor, Codex or the terminal. Free, MIT, on PyPI. Independent project, not affiliated with Google. Conduid read 30 tools from its source: gflow_auth_status, gflow_character_create, gflow_character_list, gflow_character_show, gflow_character_voices, gflow_doctor_composer and 24 more. It is published to PyPI as gflow-cli and runs with uvx.
The repository has 1.4K stars and 210 forks, is licensed MIT, and its last commit was on 1 Dec 2026. The latest release is v0.106.0 (23 Nov 2026). It follows v0.105.1 (22 Nov 2026), and the 5 most recent releases go back to v0.103.1 (20 Nov 2026). It passes all 5 static checks Conduid ran on the repository. Its topics include cli, google-flow, image-to-video, imagen, text-to-video and veo.
Install
uvx gflow-clipip install gflow-cligit clone https://github.com/ffroliva/gflow-cliTools (30)
gflow_auth_statusNon-interactive, credit-free Flow session probe (#497). Call this BEFORE a generation tool to fail fast on expired auth, before a long blocking generation call. The result has isError true unless `status` is `authenticated`. Never starts an interactive login flow. May boot a short-lived headless browser, which on flow.google.com is the usual path, and may take up to ~2 min on a slow network. Every session result also carries `wire: {status, build}`, the health of the direct (browser-free) credits read, probed first with one GET and one POST to flow.google.com unless the direct read is off. `wire.status` is `accepted` (the saved cookies work), `signed_out_shell` or `http_401` (Flow refused the saved session), `store_unreadable` (the profile's cookies could not be read: Chrome has it open, or it has no saved session), `disabled` (GFLOW_CLI_WIRE_READS=0 or the macOS default), `proxy_configured`, `throttled`, `no_chrome_version`, `network`, `redirect`, `http_400`, `http_error`, `unparseable` or `unexpected`. With `accepted`, credit reads need no browser; any other status means they use the browser instead and does not change `status`, except `throttled`: Flow is rate-limiting the account, so the browser probe is skipped and the result is `status: throttled` with a retryable 429 `error` carrying `retry_after` seconds. `build` is Flow's build label when read, else null.| Parameter | Type | Description |
|---|---|---|
| profile | string | gflow-cli profile name (``"default"`` auto-resolves like the CLI). |
gflow_character_createCreate a Flow CHARACTER from local image files: `image` is the portrait, `body_image` an optional body image, both paths on the machine running this MCP server. Nothing is generated: spends no credits and no image quota. Drives the character editor on flow.google.com in a browser, then sets the name, personality and voice (see gflow_character_voices). A failure after the portrait upload names the character's entity_id in remediation_hint when known, otherwise says one may exist, and is not retryable: check gflow_character_list before calling again. gflow deletes nothing. Generating the face from a prompt is CLI-only (`gflow character create --face-prompt`).| Parameter | Type | Description |
|---|---|---|
| body_image | string | Optional body image path, on the server's filesystem. |
| image * | string | Portrait image path, on the server's filesystem. |
| name * | string | Display name. |
| personality | string | Personality notes. |
| profile | string | gflow-cli profile name; resolves like the CLI when left as "default". |
| project * | string | Flow project to create it in. |
| voice | string | Preset voice name, case-insensitive (see gflow_character_voices). |
gflow_character_listList the saved Flow CHARACTER entities in a project. Read-only, spends no credits. On flow.google.com, returns each character's entity_id, display_name, voice, personality, workflow_ids and thumbnail_media_id; characters moved to the project's Trash are omitted. Pass entity_id in reference_entities paired with display_name in reference_entity_names (image and video r2v). Trashed characters are omitted from this catalog and from @Name lookup. If the catalog is unavailable, image mentions can still use the @ picker and video mentions fail with exit 29 (mention index unavailable). Drives a browser.| Parameter | Type | Description |
|---|---|---|
| profile | string | |
| project * | string |
gflow_character_showShow one saved Flow CHARACTER entity by id or by exact display name. Read-only, spends no credits. On flow.google.com, returns the character's entity_id, display_name, voice, personality, workflow_ids and thumbnail_media_id; a character in the project's Trash is not found (character-not-found, exit 11). Exactly one of entity_id or name is required; ambiguous names fail. Drives a browser.| Parameter | Type | Description |
|---|---|---|
| entity_id | string | The character's entity id (mirrors the CLI ``--id``). |
| name | string | Exact display name (mirrors ``--name``). Case-sensitive, and ambiguous names are refused rather than resolved arbitrarily. |
| profile | string | gflow-cli profile name. |
| project * | string | Flow project id the character belongs to. |
gflow_character_voicesList the preset voices available for a Flow Character's TTS. Static lookup — no network, no browser, no cost. Call it before creating a character to choose a valid voice name.gflow_doctor_composerReport which composer Flow serves a profile on one flow.google.com project: classic, agent_mode (the Agent switch is on), agent_panel (the agent panel is open), agent_only (#799: text-to-image and text-to-video only) or unknown. Read-only and credit-free: it opens the project in the profile's browser under the profile lease and clicks nothing on the project page, so it never closes the panel or switches agent mode off; the usual browser startup may pick the profile's own account on Google's account chooser. One page load is a snapshot. Same verdict as `gflow doctor --composer PROJECT_ID`.| Parameter | Type | Description |
|---|---|---|
| profile | string | |
| project * | string |
gflow_download_mediaFetch an already-generated VIDEO from Flow by its media ID and write it to disk. For a generation that finished and was billed but whose download failed — the clip is in the Flow project and the local catalog shows no file for it. Spends no credits: the generation was already paid for. The bytes are verified against the size Flow reports before the file is written. out_dir, if given, must resolve inside the configured output directory. Video only: an image media ID is refused immediately (exit 11) because the signed URL this needs comes from a record only a clip's route emits. See issue #877. The transfer already retries a dropped connection internally, so a failure marked retryable means wait a moment and call again — never immediately, and never in a tight loop: each call opens a browser under a per-profile lease, and a second concurrent call fails on that lease instead (exit 11).| Parameter | Type | Description |
|---|---|---|
| media_id * | string | The Flow media ID, as shown by ``gflow_list_projects`` assets or the catalog. This is the id a failed-download generation left behind. |
| out_dir | string | Directory to write into, inside the configured output dir (the default). |
| profile | string | Restrict the catalog lookup to one profile. Omit to search all — an id present under several profiles is reported as an error naming them. |
gflow_edit_videoEdit an existing video (local .mp4/.mov/.m4v/.3gp/.avi file or Flow clip media UUID) with a text prompt on flow.google.com, plus 0-5 reference_images for a local file only (single-clip output; Omni models only, default omni-1.2). max_credits uses Flow's pre-submit quote as a hard cap and refuses missing or over-limit quotes. Local files support optional aspect ('16:9'/'9:16') and resolution ('360p'/'720p'); existing Flow media UUIDs require project (or a catalogued UUID), preserve source aspect at 720p, and refuse reference_images (exit 11, not ported yet: download the clip with gflow data download and pass the file). out_file, if given, must resolve inside the configured output directory. Returns the local file path; a model Flow is retiring adds model_retiring to warnings.| Parameter | Type | Description |
|---|---|---|
| aspect | string | |
| max_credits | integer | |
| model | string | |
| out_file | any | |
| project_name | string | |
| prompt * | string | |
| reference_images | array | |
| resolution | string | |
| source * | string | |
| tools | any | |
| wait | any |
gflow_extend_videoContinue an existing video (local .mp4/.mov/.m4v/.3gp/.avi file or Flow clip media UUID) by one segment on flow.google.com with a text prompt, optional duration (3-10 seconds), and 0-3 reference_images. max_credits reads Flow's pre-submit quote in the extend settings popover and refuses missing or over-limit quotes before anything is billed. Existing Flow media UUIDs require project (or a catalogued UUID); local video files auto-create a project when project is omitted. Preserves the source clip's aspect (optional aspect '9:16'/'16:9' verifies a match and refuses mismatches pre-submit). out_file, if given, must resolve inside the configured output directory. Drives Flow's Extend control in a headless browser by default; browser_visibility 'headed' shows the window (so does the server's GFLOW_CLI_TRANSPORT=ui_automation). Spends video credits; returns the local file path to the extended clip, with route ('ui'), visibility and retried.| Parameter | Type | Description |
|---|---|---|
| aspect | string | |
| duration | integer | |
| max_credits | integer | |
| out_file | any | |
| profile | string | |
| project_name | string | |
| prompt * | string | |
| reference_images | array | |
| wait | any |
gflow_generate_imageGenerate an image using Google Flow's image models. Produces 1-4 images from a text prompt. out_file, if given, must resolve inside the configured output directory. Models: nano2 (Nano Banana 2.1, fast; 'nano2.1' also accepted), nano2-lite (Nano Banana 2 Lite), nano-pro (Nano Banana Pro), image4 (Imagen 4, no longer in Flow's menu). Aspects: 1:1, 9:16, 16:9, 4:3, 3:4. The prompt supports @AssetName mentions to tag saved project characters/assets by name (resolves to referenceEntities/referenceImages). Reference a SAVED named asset via @Name; reference an arbitrary one-off image via reference_images. See docs/REFERENCE_STRATEGIES.md. On accounts served from flow.google.com, use an existing project and local reference files. The picker uses @Name or reference_entity_names to find characters. A UUID media reference the local catalog records in that same project is referenced in place (#995), but any other UUID, an entity id with no name (neither in reference_entity_names nor from an @Name in the prompt), and image4 are not ported to that composer yet and fail before submit; retrying will not clear it. On an agent-only composer (#799) only text-to-image runs, so reference_images and character references fail there too. Measured shapes are sent over direct HTTP with a headless browser that only mints the reCAPTCHA token; other shapes open a visible browser (browser_visibility overrides). The result names route, visibility and retried. Returns local file paths to the generated images; fewer than count adds images_missing to warnings, and a saved image off the requested aspect, identical to a reference or under 8 KB adds aspect_mismatch, echoed_reference or tiny_file.| Parameter | Type | Description |
|---|---|---|
| aspect | string | Aspect ratio — '1:1', '9:16', '16:9', '4:3', '3:4'. |
| browser_visibility | any | Browser window policy for this job (mirrors the CLI ``--browser-visibility``; overrides ``GFLOW_CLI_BROWSER_VISIBILITY``): 'auto', 'headless' or 'headed', case-insensitive; any other value is a 400. Under 'auto', one local reference file in an existing project runs in a headless browser when it is the only reason for the UI path. |
| count | integer | Number of images to generate (1-4). |
| instructions | array | Optional list of custom agent instructions to add or enable (only in agentic mode). |
| model | string | Model to use — 'nano2' (Nano Banana 2.1; 'nano2.1' also accepted), 'nano2-lite', 'nano-pro', or 'image4'. |
| out_file | any | Optional file to write, inside the configured output dir: a relative path is taken relative to it; an escape or a directory is refused (400 Invalid Output). |
| profile | string | gflow-cli profile name (a plain name, never a path). Leave as ``"default"`` (or omit) to auto-resolve using the same precedence as the CLI: ``GFLOW_CLI_PROFILE`` env var → ``config.toml`` default → auto-select if exactly one profile exists. |
| project | string | Optional existing Flow project id to generate into (mirrors the CLI ``--project`` flag). When omitted, ``GFLOW_CLI_PROJECT`` is used if set and ``project_name`` is not; otherwise a fresh project is created — on labs.google or flow.google.com, whichever serves the account. |
| project_name | string | Optional human-readable project title to use when creating a fresh Flow project. |
| prompt * | string | The text prompt describing the desired image. Supports ``@AssetName`` mentions to tag a saved project character or media asset by name (resolves to referenceEntities / referenceImages, deduped against reference_images). Use ``@Name`` for a saved named asset; use ``reference_images`` for an arbitrary one-off image. See ``docs/REFERENCE_STRATEGIES.md``. |
| reference_entities | any | Saved Flow CHARACTER entity **ids** to attach (mirrors the CLI ``--reference-entity``). Same wire as an ``@Name`` mention (``referenceEntities``) and dedupes against it; use ids when a display name would be ambiguous, since names are not unique. |
| reference_entity_names | any | Display names paired positionally with ``reference_entities`` (mirrors ``--reference-entity-name``). A matching prompt mention can fill a missing name on flow.google.com. |
| reference_images | array | Optional list of reference images for image-to-image generation. Can be local file paths or UUIDs of previously uploaded assets. |
| thinking_level | string | Optional image thinking level in Flow's settings pane — 'low', 'medium', or 'high' (mirrors CLI ``--thinking-level``; omit to leave Flow's current setting untouched). |
| tools | any | Optional list of prompt tools to apply before generation. Each item is ``{"name": str, "options": dict}``. Valid names include ``"creative-director"`` (which supports an ``options`` key of ``"style"`` for domain-vocabulary injection). Requires an OpenAI-compatible endpoint (GFLOW_CLI_LLM_API_KEY and/or GFLOW_CLI_LLM_BASE_URL); degrades gracefully to the original prompt when unavailable (mirrors the CLI ``--tool/-t`` flag). |
| ui_mode | string | Required Flow UI arm — 'classic' (hard aspect controls), 'agentic' (chat surface; forced automatically when instructions are given), or 'auto' (bind whatever renders, the default). On the UI path, if the arm can't be reached, generation aborts before submitting (no credits); 'agentic' always takes the UI path, while 'classic' and 'auto' may run on the direct path, which has no editor to verify. Overrides GFLOW_CLI_UI_MODE. |
| wait | any | Block until the generation finishes (default) or run it in the background; agents read it from the tool schema (#481). |
gflow_generate_videoGenerate a video using Google Flow's Veo model. Modes: t2v (text-to-video), i2v (image-to-video), r2v (reference-to-video). Aspects: 9:16, 16:9. Optional model (veo_lite/veo_fast/veo_quality/omni_flash/omni_1_2_flash), duration (seconds; omni_1_2_flash takes 3-15, at most 10 with an end_frame), and count select the Veo model, clip length, and batch size (CLI parity). Tag a saved project character by name with @CharacterName (referenceEntities). On flow.google.com, video mentions require r2v. For r2v, supply reference_images or reference_entities alongside the mention. A matching @Name can supply an explicit id's name on flow.google.com. Use reference_images for one-off ingredients. See docs/REFERENCE_STRATEGIES.md. A video clip is not a reference: to edit a clip with reference images, call gflow_edit_video(source=<clip>, prompt, reference_images=[<image>]). max_credits uses Flow's quote as a hard cap and refuses missing or over-limit quotes. Optional ui_mode ('classic'/'auto') verifies the classic editor pre-submit on the UI path and aborts before spending credits if unreachable (the direct path has no editor); 'agentic' is not supported for video. out_file, if given, must resolve inside the configured output directory. Text-to-video and start-frame image-to-video at measured model keys go over direct HTTP with a headless browser that only mints the reCAPTCHA token; a refusal Flow did not charge is retried once from a new headless browser, and a second one is final (retryable false, next_action wait). A capped text-to-video of an explicit measured key reads the quote in a headless browser, and an r2v from one local reference image runs headless; other shapes and other capped videos open a visible one; browser_visibility overrides. The result names route, visibility and retried. On flow.google.com, an i2v initial_frame or end_frame may be a Flow image UUID the catalog records in project with a caption; it is bound on the UI path with no upload, while a cross-project UUID (or un-captioned UUID with a local fallback) returns the exit-36 envelope and an uncatalogued/unusable UUID returns 400. Returns the local file path; a model Flow is retiring adds model_retiring to warnings.| Parameter | Type | Description |
|---|---|---|
| aspect | string | Aspect ratio — '9:16' or '16:9'. |
| browser_visibility | any | Browser window policy for this job (mirrors the CLI ``--browser-visibility``; overrides ``GFLOW_CLI_BROWSER_VISIBILITY``): 'auto', 'headless' or 'headed', case-insensitive; any other value is a 400. |
| count | integer | Number of videos to generate (mirrors the CLI ``--count``; default 1). |
| duration | integer | Optional clip length in seconds (mirrors the CLI ``--duration``): Every integer 3–15 on explicit ``omni_1_2_flash`` (11–15 needs a Google AI plan; with an ``end_frame`` at most 10, #1178), 4/6/8 on Veo 3.1, 4/6/8/10 on ``omni_flash``; whether the account's cohort renders the control is decided pre-submit at zero cost. When omitted, Flow's per-model default applies. On the migrated flow.google.com host an 'r2v' request with explicit omni_flash accepts 4/6/8/10, and explicit ``omni_1_2_flash`` every integer 3-15 through its duration slider. Veo or an unspecified model accepts only 8: measured shorter Veo requests dropped references and billed text-to-video instead. Omitted r2v duration still pins 8 to avoid inherited editor settings. |
| end_frame | string | Optional end frame (local file or in-project captioned image UUID on flow.google.com, #1542); follows the same 400 / exit-36 rules as ``initial_frame``. |
| initial_frame | string | Path or in-project Flow media UUID for the start frame (required for i2v). On flow.google.com, a local file at the measured key goes over direct HTTP, otherwise uploads on the UI path under a run-unique name (#792); captioned image UUIDs catalogued in ``project`` bind in place on the UI path with zero upload (#1542). Cross-project UUIDs (or un-captioned UUIDs with a verified local fallback) return the exit-36-equivalent envelope, while uncatalogued/unusable UUIDs and non-path strings such as ``@Name`` return 400 before dispatch. |
| max_credits | integer | Flow quote cap. Omission uses the environment default, which MCP cannot clear. |
| mode | string | Generation mode — 't2v', 'i2v', or 'r2v'. |
| model | string | Optional Veo model — 'veo_lite', 'veo_fast', 'veo_quality', 'omni_flash', 'omni_1_2_flash' (aliases accepted, mirrors the CLI ``--model``). When omitted, Flow's UI default applies EXCEPT for i2v with frames, where the transport defaults to veo-lite. Every model supports i2v with a start frame and with an end frame; 'omni_flash' was the last exception and its end-frame route was wire-verified 2026-09-02 (refs #125, #626). |
| out_file | any | Optional file to write, inside the configured output dir: a relative path is taken relative to it; an escape or a directory is refused (400 Invalid Output). |
| profile | string | gflow-cli profile name (a plain name, never a path). Leave as ``"default"`` (or omit) to auto-resolve using the same precedence as the CLI: ``GFLOW_CLI_PROFILE`` env var → ``config.toml`` default → auto-select if exactly one profile exists. |
| project | string | Optional existing Flow project id to generate into (mirrors the CLI ``--project`` flag on ``video t2v``/``i2v``/``r2v``). When omitted, ``GFLOW_CLI_PROJECT`` is used if set and ``project_name`` is not; otherwise a fresh project is created (titled ``project_name`` when given) on labs.google or flow.google.com, whichever serves the account. On flow.google.com (``GFLOW_CLI_FLOW_HOST``), ported modes are 't2v'; 'i2v' with local frames or captioned image UUIDs catalogued in ``project`` (#1542); and 'r2v' with local ``reference_images`` and/or named ``reference_entities`` (#723). Cross-project UUID frames (or un-captioned UUIDs with a verified local fallback), r2v ``ref_names``, and ``reference_entities`` on 't2v' or missing a name from either the names list or a matching prompt mention return exit 36 equivalents. Agent-only composers (#799) take 't2v' only. |
| project_name | string | |
| reference_entities | any | Saved Flow CHARACTER entity **ids** to attach (mirrors the CLI ``--reference-entity``). Same wire as an ``@Name`` mention (``referenceEntities``) and dedupes against it; use ids when a display name would be ambiguous, since names are not unique. Satisfies r2v's reference requirement on its own. |
| reference_entity_names | any | Display names paired positionally with ``reference_entities`` (mirrors ``--reference-entity-name``). A matching prompt mention can fill a missing name on flow.google.com. |
| reference_images | array | Local image paths or catalog UUIDs with verified local files. For r2v, supply these or reference_entities even if the prompt contains a mention. A video clip is a 400 naming ``gflow_edit_video`` (#1540). |
| resolution | string | Optional video resolution — '360p' or '720p' (Omni models only, mirrors the CLI ``--resolution``). When omitted, Flow's default applies. On any other model, or on the labs editor, the job fails pre-submit with the exit-11-equivalent envelope and no credits spent. |
| tools | any | Optional list of prompt tools to apply before generation. Each item is ``{"name": str, "options": dict}``. Valid names include ``"creative-director"`` (which supports an ``options`` key of ``"style"`` for domain-vocabulary injection). Requires an OpenAI-compatible endpoint (GFLOW_CLI_LLM_API_KEY and/or GFLOW_CLI_LLM_BASE_URL); degrades gracefully to the original prompt when unavailable (mirrors the CLI ``--tool/-t`` flag on ``video t2v``). |
| ui_mode | string | Required Flow UI arm (mirrors the CLI ``--ui-mode`` on ``video t2v``/``i2v``; applies to every mode of this tool, including 'r2v'; the direct path has no editor to verify). Labs video only has a classic driver: 'classic'/'auto' verify the classic editor pre-submit (best-effort DOM probe) and abort before spending credits if it is unreachable; 'agentic' is not yet supported for video and is rejected (400). An agent-only flow.google.com composer (#799) is routed to its own driver before that check, so 't2v' runs there under 'auto' or 'classic'. |
| wait | any | Block until the generation finishes (default) or run it in the background; agents read it from the tool schema (#481). |
gflow_get_creditsRead the current Google Flow credit balance for one saved profile or all profiles - the number Flow's account menu shows. Read directly from flow.google.com with the profile's saved session (no browser) when Flow accepts it; otherwise read in that profile's browser (one browser launch per profile, sequential for all_profiles). The direct read is off on macOS by default, behind a proxy, or with GFLOW_CLI_WIRE_READS=0. HTTP 429/503 returns a retryable error with no browser fallback: wait, do not loop. Spends no credits. Set all_profiles=true when choosing an account for generation; partial profile failures remain visible in the result. Set refresh=true to renew a signed-out session (rewrites that profile's saved cookies) in a headless browser and read again (slower - one more Chrome launch per signed-out profile; a revoked session still needs `gflow auth login`). The tier fields (sku, service_tier, user_paygate_tier, subscription_credits) are always null: flow.google.com does not report them.| Parameter | Type | Description |
|---|---|---|
| all_profiles | boolean | |
| profile | string | |
| refresh | boolean |
gflow_instructions_addAdd a persistent instruction card to a Flow project's Agent-Mode brief (credits-free). Each ref is classified automatically: local image path → uploaded as an image reference; asset UUID → image reference; anything else → character id/name.| Parameter | Type | Description |
|---|---|---|
| enabled | boolean | Create the card enabled (default) or disabled. |
| profile | string | gflow-cli profile name. |
| project * | string | Flow project id (required). |
| refs | array | Optional references — local image paths, asset UUIDs, or character ids/names (classified automatically, like CLI --ref). |
| text * | string | Guideline text the agent folds into every generation. |
| title * | string | Human-readable card label (used for later selection by title). |
gflow_instructions_applyDeclaratively FULL-SYNC a Flow project's brief: REPLACES all existing instruction cards with the given set (destructive — cards not listed are removed). Each card is {'title', 'text', 'ref': [...], 'enabled'}. Credits-free.| Parameter | Type | Description |
|---|---|---|
| cards * | array | Declarative card entries; each is a dict with 'title' (str), 'text' (str), optional 'ref' (list of image paths / asset UUIDs / character ids) and optional 'enabled' (bool, default True). This is the same entry shape as the CLI `instructions apply` file. |
| profile | string | gflow-cli profile name. |
| project * | string | Flow project id (required). |
gflow_instructions_listList a Flow project's persistent Agent-Mode instruction cards (reads the live server brief). Credits-free.| Parameter | Type | Description |
|---|---|---|
| profile | string | gflow-cli profile name; 'default' auto-resolves like the CLI. |
| project * | string | Flow project id (required — briefs are project-scoped). |
gflow_instructions_rmRemove one instruction card from a Flow project's brief, selected by title or card id (exactly one). Credits-free.| Parameter | Type | Description |
|---|---|---|
| card_id | string | Select the card by its stable server id. |
| profile | string | gflow-cli profile name. |
| project * | string | Flow project id (required). |
| title | string | Select the card by title (case-insensitive, must be unambiguous). |
gflow_instructions_set_enabledEnable or disable one instruction card on a Flow project's brief, selected by title or card id (exactly one). Credits-free.| Parameter | Type | Description |
|---|---|---|
| card_id | string | Select the card by its stable server id. |
| enabled * | boolean | True to enable the card, False to disable it. |
| profile | string | gflow-cli profile name. |
| project * | string | Flow project id (required). |
| title | string | Select the card by title (case-insensitive, must be unambiguous). |
gflow_instructions_toggle_modeTurn a Flow project's brief master switch on or off. When off, NO cards apply even if individually enabled. Cards are left untouched. Credits-free.| Parameter | Type | Description |
|---|---|---|
| enabled * | boolean | True for --on, False for --off. |
| profile | string | gflow-cli profile name. |
| project * | string | Flow project id (required). |
gflow_list_modelsList the image and video models the generate tools accept: name, Flow's menu label (image), aliases, reference cap, max duration and retires_on (video; ISO date or null), aspects and tiers. Static, the same as `gflow models --json`; no browser, no spend.gflow_list_projectsList all projects in the local gflow catalog. Returns project IDs, names, and creation dates from the SQLite database.| Parameter | Type | Description |
|---|---|---|
| limit | integer | Maximum number of projects to return per page. |
| offset | integer | Number of rows to skip — pass the previous page's ``next_offset`` to fetch the next page (#498). |
| profile | string | gflow-cli profile name to filter by. |
gflow_list_toolsList available gflow prompt tools (name, title, description, category).gflow_media_restoreRestore a trashed media item back to its Flow project over the wire (RPC pGCYOe). Credit-free (0 credits). Returns the restored item status and ID. Sent directly with no browser when the direct read is available; otherwise from a flow.google.com page, headless under the default auto visibility. The result reports route (direct|ui) and visibility.| Parameter | Type | Description |
|---|---|---|
| media_id * | string | |
| profile | string | |
| project_id | string |
gflow_media_trashMove a generated media item (image or video) to Flow's Trash over the wire (RPC pGCYOe). Credit-free (0 credits). Trashed items are hidden from project views but can be recovered using gflow_media_restore. Requires explicit confirm=True to prevent accidental deletion. Sent directly with no browser when the direct read is available; otherwise from a flow.google.com page, headless under the default auto visibility. The result reports route (direct|ui) and visibility.| Parameter | Type | Description |
|---|---|---|
| confirm | boolean | |
| media_id * | string | |
| profile | string | |
| project_id | string |
gflow_narrateSynthesize a local narration audio file. Narration text is sent to the selected provider (Microsoft Edge Read Aloud or Google Gemini); this uses no Flow credits. Gemini requires GFLOW_CLI_GEMINI_TTS_API_KEY. Output paths stay inside the configured output directory.| Parameter | Type | Description |
|---|---|---|
| out_file * | string | |
| pitch | string | |
| provider | string | |
| rate | string | |
| text * | string | |
| voice | string |
gflow_upscale_imageUpscale a platform-generated Flow image to 2K or 4K and save it locally. media_id is the UUID of the image to upscale. scale is '2k' or '4k' (4k requires Ultra subscription; Pro/Plus accounts support 2k). project is optional (resolved from the local catalog when omitted). out_dir is the output directory (defaults to configured images directory; must resolve inside the configured output directory). profile selects the auth profile (defaults to the active profile). A scale the image's download menu does not list returns UpscaleUnavailableError (exit 22) naming the listed scales. 2K spends no credits; whether 4K does has not been measured. Under auto, it opens a headed browser.| Parameter | Type | Description |
|---|---|---|
| media_id * | string | The Flow media ID (UUID) of the generated image. |
| out_dir | string | Output directory, inside the configured output dir (the default). |
| profile | string | Profile name (overrides default). |
| project | string | Project UUID that owns the media. Resolved from local catalog when omitted. |
| scale | string | Target resolution: '2k' or '4k' (4k is Ultra-only). |
gflow_upscale_videoUpscale or export a platform-generated Flow video to 4K Ultra, 1080p Full HD, 720p, or 270p GIF. media_id is the UUID of the video to upscale. scale is '4k' (Ultra 2160p upscale; spends credits), '1080p' (Full HD), '720p' (original, or Flow's upscale of a smaller original), or '270p' (animated GIF). project is optional (resolved from the local catalog when omitted). out_dir is the output directory (defaults to configured videos directory; must resolve inside the configured output directory). profile selects the auth profile (defaults to the active profile). flow.google.com only (GFLOW_CLI_FLOW_HOST=labs.google refuses it). Flow decides which scales each clip offers (an Omni 1.2 Flash clip lists no 1080p; 4k requires Flow Ultra); a scale the clip's menu does not list returns UpscaleUnavailableError (exit 22) naming the scales it does list. With scale omitted: 1080p, else 720p, else the 270p GIF, whichever the clip's menu lists (never 4k, which spends credits), planned like 1080p; the result's scale names the scale exported. Measured: 1080p export spent 0 credits (2026-10-07), as did 720p and the 270p GIF (2026-11-29); 4k Ultra export spends credits (measured 50 credits on Omni 1.2 Flash, 2026-11-23). A 1080p upscale of a catalogued measured source goes over direct HTTP with a headless browser that only mints the reCAPTCHA token. Under auto, the download-menu scales (720p, 270p, and 4k, whose headless run is unmeasured) run in a headless browser; 1080p planned through the menu opens a visible one (browser_visibility overrides). The result names route and visibility.| Parameter | Type | Description |
|---|---|---|
| browser_visibility | any | Browser window policy for this job (mirrors the CLI ``--browser-visibility``; overrides ``GFLOW_CLI_BROWSER_VISIBILITY``): 'auto', 'headless' or 'headed', case-insensitive; any other value is a 400. |
| media_id * | string | The Flow media ID (UUID) of the generated video. |
| out_dir | string | Output directory, inside the configured output dir (the default). |
| profile | string | Profile name (overrides default). |
| project | string | Project UUID that owns the media. Resolved from local catalog when omitted. |
| scale | string | Target quality: '4k' (Ultra 2160p, spends credits), '1080p' (enhanced), '720p' (original or upscaled), or '270p' (GIF); one Flow does not list for the clip is refused. Omitted: 1080p, else 720p, else the 270p GIF, whichever Flow lists (never 4k); the reply's 'scale' names it. |
gflow_usage_statsSummarize local gflow-cli usage statistics over the last N weeks. Returns command invocation counts from local telemetry (when enabled) and generation counts from the local catalog. Like every gflow tool call, it may start the weekly background upload of usage totals when one is due (only on machines where a person has seen the usage notice; see the telemetry block's upload state).| Parameter | Type | Description |
|---|---|---|
| weeks | integer | Number of ISO weeks to summarize (1..53, default 12). |
gflow_video_assembleJoin local video files or locally available catalog video IDs with optional music and voiceover. Ducking lowers music and clip audio under voiceover by default. This is local, credit-free processing; out_file must be inside the configured output directory. Geometry and frame rate follow the first clip.| Parameter | Type | Description |
|---|---|---|
| clip_volume | number | Clip audio gain, from 0 to 1 (default 1). |
| clips * | array | Local video paths or catalog UUIDs with verified local copies. |
| duck | boolean | Reduce music and clip audio while voiceover is present (default true). |
| music | string | Optional local audio file path. |
| music_volume | number | Music gain, from 0 to 1 (default 0.3). |
| out_file * | string | Required MP4 destination, relative to the configured output directory. |
| profile | string | Optional catalog profile to disambiguate media IDs. |
| voiceover | string | Optional local audio file path. |
| voiceover_volume | number | Voiceover gain, from 0 to 1 (default 1). |
gflow_video_captionsBurn an authored SRT file into a local video or transcribe first when srt is omitted. Supports optional position ('bottom', 'top', 'middle'), margin (pixels from edge), font_size (pixels), and box_opacity (0.0-1.0). Credit-free; generated .mp4 and automatic .srt outputs stay inside the configured output directory.| Parameter | Type | Description |
|---|---|---|
| box_opacity | number | |
| file * | string | |
| font_size | integer | |
| language | string | |
| margin | integer | |
| out_file | any | |
| position | any | |
| profile | string | |
| srt | string |
gflow_video_transcribeTranscribe a local video or catalog video UUID to an .srt file using the configured OpenAI-compatible audio transcription endpoint. Credit-free; output stays inside the configured output directory. Google’s default endpoint is refused before audio is sent.| Parameter | Type | Description |
|---|---|---|
| file * | string | |
| language | string | |
| out_file | any | |
| profile | string |
Security checks
Static checks derived from the repository 7 days ago. Heuristics on the source, not an audit.
- ✓README presentThe repository's README runs to about 3.9K words.
- ✓License declaredThe repository declares the MIT license.
- ✓Tests presentA test suite exists in the repository.
- ✓Dependencies pinnedDependency versions are pinned by uv.lock.
- ✓No dynamic code executionScanned 211 source files and found no eval, dynamic Function or shell execution.
1 check has not been run yet.
What the source scan found
- Transport
- stdio, Streamable HTTP and HTTP with SSEsrc/gflow_cli/mcp/server.py:372, src/gflow_cli/cli.py:882, src/gflow_cli/cli.py:882
- Starts other programs
- 19 callssrc/gflow_cli/auth/real_chrome.py:443, src/gflow_cli/cli_movie.py:1083, src/gflow_cli/telemetry_upload.py:158
- Outbound network calls
- 35 callssrc/gflow_cli/api/flow_wire.py:169, src/gflow_cli/api/flow_wire.py:203, src/gflow_cli/api/flow_wire.py:206
- Writes or deletes files
- 76 callssrc/gflow_cli/api/_flow_generation.py:220, src/gflow_cli/api/transports/_ui_capture.py:343, src/gflow_cli/api/transports/_video_common.py:704
- Lockfile
- uv.lock
Pattern matches on the source text of 211 files: places to read, not proof of what the code does at run time.
Releases
README
The repository's README runs to about 3.9K words, fetched 7 days ago. The original in the repository is authoritative.
Read full README