Files
flow/scripts/gcp/GCP_DEPLOYMENT.md
T
zeekay a270a374f0 refactor(rebrand): unify hanzoflow -> hanzo-flow (pkg) / flow (module,cmd) / FLOW_ (env)
Cleaned the concurrent session's half-rebrand inconsistency (166 files):
- pip/pypi refs hanzoflow -> hanzo-flow (matches hanzo-flow-base/sdk)
- module paths/commands/devcontainer hanzoflow -> flow (the import name + CLI)
- env vars HANZOFLOW_ -> FLOW_ (was inconsistent with the LANGFLOW_->FLOW_ sweep)
- fixed a stale src/backend/base/hanzoflow/ path that didn't exist
- product display HanzoFlow -> 'Hanzo Flow' in docs; kept HanzoFlow only as a
  code identifier where a space is illegal

Canonical: pip install hanzo-flow / import flow / `flow` CLI. compileall clean.
2026-07-16 10:26:22 -07:00

2.8 KiB

Run Hanzo Flow from a New Google Cloud Project

This guide will help you set up a Hanzo Flow development VM in a Google Cloud Platform project using Google Cloud Shell.

Note

: When Cloud Shell opens, be sure to select Trust repo. Some gcloud commands might not run in an ephemeral Cloud Shell environment.

Standard VM

Open in Cloud Shell

This script sets up a Debian-based VM with the Hanzo Flow package, Nginx, and the necessary configurations to run the Hanzo Flow Dev environment.


Spot/Preemptible Instance

Open in Cloud Shell - Spot Instance

When running as a spot (preemptible) instance, the code and VM will behave the same way as in a regular instance, executing the startup script to configure the environment, install necessary dependencies, and run the Hanzo Flow application. However, due to the nature of spot instances, the VM may be terminated at any time if Google Cloud needs to reclaim the resources. This makes spot instances suitable for fault-tolerant, stateless, or interruptible workloads that can handle unexpected terminations and restarts.

Pricing (approximate)

For a more accurate breakdown of costs, please use the GCP Pricing Calculator >

Component Regular Cost (Hourly) Regular Cost (Monthly) Spot/Preemptible Cost (Hourly) Spot/Preemptible Cost (Monthly) Notes
100 GB Disk - $10/month - $10/month Disk cost remains the same for both regular and Spot/Preemptible VMs
VM (n1-standard-4) $0.15/hr ~$108/month ~$0.04/hr ~$29/month The VM cost can be significantly reduced using a Spot/Preemptible instance
Total $0.15/hr ~$118/month ~$0.04/hr ~$39/month Total costs for running the VM and disk 24/7 for an entire month