Skip to main content
Per-app cloud storage paths are provisioned for file uploads, static assets, and user-generated content. Credentials are injected automatically.

How it works

  1. A per-app GCS (Google Cloud Storage) path is provisioned
  2. STORAGE_BUCKET and GOOGLE_APPLICATION_CREDENTIALS are injected as environment variables
  3. Your app reads and writes files using any GCS-compatible SDK

Usage in your app

const { Storage } = require("@google-cloud/storage");
const storage = new Storage();
const bucket = storage.bucket(process.env.STORAGE_BUCKET);

// Upload a file
await bucket.upload("./photo.jpg", { destination: "uploads/photo.jpg" });

// Download a file
await bucket.file("uploads/photo.jpg").download({ destination: "./downloaded.jpg" });

For agents

Storage is auto-provisioned. No CLI commands needed — just deploy an app that uses the STORAGE_BUCKET environment variable. The rest is handled automatically.
floo deploy --json
floo env list --app my-app --json 2>/dev/null | jq '.data.env_vars[] | select(.key == "STORAGE_BUCKET")'