RepoCloudflare (Workers AI)Cloudflare (Workers AI)published Aug 25, 2025seen 5d

cloudflare/vibesdk

TypeScript

Open original ↗

Captured source

source ↗
published Aug 25, 2025seen 5dcaptured 8hhttp 200method plain

cloudflare/vibesdk

Description: An open-source vibe coding platform that helps you build your own vibe-coding platform, built entirely on Cloudflare stack

Language: TypeScript

License: MIT

Stars: 5081

Forks: 1212

Open issues: 19

Created: 2025-08-25T15:07:31Z

Pushed: 2026-06-10T09:40:11Z

Default branch: main

Fork: no

Archived: no

README:

🧡 Cloudflare Vibe SDK

> An open source full-stack AI webapp generator – Deploy your own instance of Cloudflare VibeSDK, an AI vibe coding platform that you can run and customize yourself.

Star History

![Star History Chart](https://www.star-history.com/#cloudflare/vibesdk&Date)

---

✨ What is Cloudflare VibeSDK?

Cloudflare VibeSDK is an open source AI vibe coding platform built on Cloudflare's developer platform. If you're building an AI-powered platform for building applications, this is a great example that you can deploy and customize to build the whole platform yourself. Once the platform is deployed, users can say what they want to build in natural language, and the AI agent will create and deploy the application.

🌐 [Experience it live at build.cloudflare.dev](https://build.cloudflare.dev) – Try it out before deploying your own instance!

🎯 Perfect For

Companies building AI-powered platforms

Run your own solution that allows users to build applications in natural language. Customize the AI behavior, control the generated code patterns, integrate your own component libraries, and keep all customer data within your infrastructure. Perfect for startups wanting to enter the AI development space or established companies adding AI capabilities to their existing developer tools.

Internal development

Enable non-technical teams to create the tools they need without waiting for engineering resources. Marketing can build landing pages, sales can create custom dashboards, and operations can automate workflows, all by describing what they want.

SaaS platforms

Let your customers extend your product's functionality without learning your API or writing code. They can describe custom integrations, build specialized workflows, or create tailored interfaces specific to their business needs.

---

🎯 Key Features

🤖 AI Code Generation – Phase-wise development with intelligent error correction ⚡ Live Previews – App previews running in sandboxed containers 💬 Interactive Chat – Guide development through natural conversation 📱 Modern Stack – Generates React + TypeScript + Tailwind apps 🚀 One-Click Deploy – Deploy generated apps to Workers for Platforms 📦 GitHub Integration – Export code directly to your repositories

🏗️ Built on Cloudflare's Platform

Cloudflare VibeSDK Build utilizes the full Cloudflare developer ecosystem:

  • Frontend: React + Vite with modern UI components
  • Backend: Workers with Durable Objects for AI agents
  • Database: D1 (SQLite) with Drizzle ORM
  • AI: Multiple LLM providers via AI Gateway
  • Containers: Sandboxed app previews and execution
  • Storage: R2 buckets for templates, KV for sessions
  • Deployment: Workers for Platforms with dispatch namespaces

SDK for Programmatic Access

Build apps programmatically using the official TypeScript SDK:

npm install @cf-vibesdk/sdk
import { PhasicClient } from '@cf-vibesdk/sdk';

const client = new PhasicClient({
baseUrl: 'https://build.cloudflare.dev',
apiKey: process.env.VIBESDK_API_KEY!,
});

const session = await client.build('Build a simple hello world page.', {
projectType: 'app',
autoGenerate: true,
});

await session.wait.deployable();
console.log('Preview URL:', session.state.previewUrl);
session.close();

[SDK Documentation](sdk/README.md) - Full API reference and examples

📋 Quick Deploy Checklist

Before clicking "Deploy to Cloudflare", have these ready:

✅ Prerequisites

  • Cloudflare Workers Paid Plan
  • Workers for Platforms subscription
  • Advanced Certificate Manager (needed when you map a first-level subdomain such as abc.xyz.com so Cloudflare can issue the required wildcard certificate for preview apps on *.abc.xyz.com)

🔑 Required API Key

Once you click "Deploy to Cloudflare", you'll be taken to your Cloudflare dashboard where you can configure your VibeSDK deployment with these variables.

![Deploy to Cloudflare Workers](https://deploy.workers.cloudflare.com/?url=https://github.com/cloudflare/vibesdk)

🔑 What you'll configure

  • GOOGLE_AI_STUDIO_API_KEY - Your Google Gemini API key for Gemini models
  • JWT_SECRET - Secure random string for session management
  • WEBHOOK_SECRET - Webhook authentication secret
  • SECRETS_ENCRYPTION_KEY - Encryption key for secrets
  • SANDBOX_INSTANCE_TYPE - Container performance tier (optional, see section below)
  • ALLOWED_EMAIL - Email address of the user allowed to use the app. This is used to verify the user's identity and prevent unauthorized access.
  • CUSTOM_DOMAIN - Custom domain for your app that you have configured in Cloudflare (Required). If you use a first-level subdomain such as abc.xyz.com, make sure the Advanced Certificate Manager add-on is active on that zone.

Custom domain DNS setup

To serve preview apps correctly, add the following DNS record in the zone that hosts CUSTOM_DOMAIN:

  • Type: CNAME
  • Name: *.abc
  • Target: abc.xyz.com (replace with your base custom domain or another appropriate origin)
  • Proxy status: Proxied (orange cloud)

Adjust the placeholder abc/xyz parts to match your domain. DNS propagation can take time—expect it to take up to an hour before previews resolve. This step may be automated in a future release, but it is required today.

🏗️ Sandbox Instance Configuration (Optional)

VibeSDK uses Cloudflare Containers to run generated applications in isolated environments. You can configure the container performance tier based on your needs and Cloudflare plan.

Available Instance Types

> 📢 Updated Oct 2025: Cloudflare now offers larger container instance types with more resources!

| Instance Type | Memory | CPU | Disk | Use Case | Availability | |---------------|--------|-----|------|----------|--------------| |…

Excerpt shown — open the source for the full document.

Notability

notability 7.0/10

High star count from major company