Independent project. Not affiliated with, sponsored by, or endorsed by Cloudflare, Inc. “Cloudflare” is a trademark of Cloudflare, Inc.
Cloudflare AI Flows

Getting started

🚧 Coming soon. AI Flows isn’t publicly available yet, and the repository referenced below is not yet open. These steps are a preview of the self-host setup that ships with the public release.

Prerequisites

  • Node.js ≥ 18
  • A Cloudflare account (free tier works for getting started)

Deploy

# 1. Clone
git clone https://github.com/your-org/cloudflare-ai-flows.git && cd cloudflare-ai-flows

# 2. Install and build the CLI
npm install
npm run build --workspace=@cf-ai-flows/cli

# 3. Provision all Cloudflare resources (D1, KV, R2, Vectorize, Queue, AI Gateway, Worker)
node packages/cli/dist/index.js setup

# 4. Apply the D1 schema
node packages/cli/dist/index.js migrate

# 5. Deploy
node packages/cli/dist/index.js deploy

After deploy, open your Worker URL and go to /setup to create your workspace and admin account. Visiting the root URL redirects you there until setup is complete. Then sign in at /login and start building flows.

Tip: run npm link inside packages/cli after building to use cf-ai-flows as a global command.

Upgrading? Run migrate to apply any new D1 migrations between versions.