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.
See VibeSDK Build in action before deploying your own instance
👆 Click to deploy your own instance!
Follow the setup guide below to configure required services
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 – Try it out before deploying your own instance!
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.
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.
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.
🤖 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
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
Before clicking "Deploy to Cloudflare", have these ready:
- Cloudflare Workers Paid Plan
- Workers for Platforms subscription
- Google Gemini API Key - Get from ai.google.dev
Once you click "Deploy to Cloudflare", you'll be taken to your Cloudflare dashboard where you can configure your VibeSDK deployment with these variables.
- 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). This is needed for the app to work.
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.
dev | 256 MiB | 1/16 vCPU | 2 GB | Development/testing | All plans |
basic | 1 GiB | 1/4 vCPU | 4 GB | Light applications | All plans |
standard | 4 GiB | 1/2 vCPU | 4 GB | Most applications | All plans (Default) |
enhanced | 4 GiB | 4 vCPUs | 10 GB | High-performance apps | Enterprise customers only |
Option A: Via Deploy Button (Recommended) During the "Deploy to Cloudflare" flow, you can set the instance type as a build variable:
- Variable name: SANDBOX_INSTANCE_TYPE
- Recommended values:
- Standard/Paid users: standard (default)
- Enterprise customers: enhanced
Option B: Via Environment Variable For local deployment or CI/CD, set the environment variable:
For Standard/Paid Users:
- standard (Recommended) - Best balance of performance and resource usage
- basic - For simple applications or testing
- dev - Minimal resources for development only
For Enterprise Customers:
- enhanced (Recommended) - Maximum performance with full CPU cores and extra disk space
- standard - If you prefer conservative resource usage
The SANDBOX_INSTANCE_TYPE controls:
- App Preview Performance - How fast generated applications run during development
- Build Process Speed - Container compile and build times
- Concurrent App Capacity - How many apps can run simultaneously
- Resource Availability - Memory and disk space for complex applications
💡 Pro Tip: Start with standard and upgrade to enhanced if you notice performance issues with complex applications or need faster build times.
⚠️ Enterprise Required: The enhanced instance type requires a Cloudflare Enterprise plan. Using it on other plans may result in deployment failures.
OAuth configuration is not shown on the initial deploy page. If you want user login features, you'll need to set this up after deployment:
How to Add OAuth After Deployment:
- Find your repository in your GitHub/GitLab account (created by "Deploy to Cloudflare" flow)
- Clone locally and run bun install
- Create .dev.vars and .prod.vars files (see below for OAuth configuration)
- Run bun run deploy to update your deployment
Google OAuth Setup:
- Google Cloud Console → Create Project
- Enable Google+ API
- Create OAuth 2.0 Client ID
- Add authorized origins: https://your-worker-name.workers.dev
- Add redirect URI: https://your-worker-name.workers.dev/api/auth/google/callback
- Add to both .dev.vars (for local development) and .prod.vars (for deployment):
GOOGLE_CLIENT_ID="your-google-client-id" GOOGLE_CLIENT_SECRET="your-google-client-secret"
GitHub OAuth Setup:
- GitHub → Settings → Developer settings → OAuth Apps
- Click New OAuth App
- Application name: Cloudflare VibeSDK
- Homepage URL: https://your-worker-name.workers.dev
- Authorization callback URL: https://your-worker-name.workers.dev/api/auth/github/callback
- Add to both .dev.vars (for local development) and .prod.vars (for deployment):
GITHUB_CLIENT_ID="your-github-client-id" GITHUB_CLIENT_SECRET="your-github-client-secret"
- 🧠 AI Analysis: Language models process your description
- 📋 Blueprint Creation: System architecture and file structure planned
- ⚡ Phase Generation: Code generated incrementally with dependency management
- 🔍 Quality Assurance: Automated linting, type checking, and error correction
- 📱 Live Preview: App execution in isolated Cloudflare Containers
- 🔄 Real-time Iteration: Chat interface enables continuous refinements
- 🚀 One-Click Deploy: Generated apps deploy to Workers for Platforms
Want to see these prompts in action? Visit the live demo at build.cloudflare.dev first, then try them on your own instance once deployed:
🎮 Fun Apps
"Create a todo list with drag and drop and dark mode"
"Build a simple drawing app with different brush sizes and colors"
"Make a memory card game with emojis"
📊 Productivity Apps
"Create an expense tracker with charts and categories"
"Build a pomodoro timer with task management"
"Make a habit tracker with streak counters"
🎨 Creative Tools
"Build a color palette generator from images"
"Create a markdown editor with live preview"
"Make a meme generator with text overlays"
🛠️ Utility Apps
"Create a QR code generator and scanner"
"Build a password generator with custom options"
"Make a URL shortener with click analytics"
Cloudflare VibeSDK generates apps in intelligent phases:
- Planning Phase: Analyzes requirements, creates file structure
- Foundation Phase: Generates package.json, basic setup files
- Core Phase: Creates main components and logic
- Styling Phase: Adds CSS and visual design
- Integration Phase: Connects APIs and external services
- Optimization Phase: Performance improvements and error fixes
- Node.js 18+ and Bun
- Cloudflare account with Workers paid plan
For Local Development (.dev.vars):
For Production Deployment (.prod.vars):
Important: Local development uses .dev.vars, but bun run deploy only reads from .prod.vars for deployment secrets.
- Copy the example file: cp .dev.vars.example .dev.vars
- Fill in your API keys and tokens
- Leave optional values as "default" if not needed
- Build Variables: Set in your deployment platform (GitHub Actions, etc.)
- Worker Secrets: Automatically handled by deployment script or set manually:
wrangler secret put ANTHROPIC_API_KEY wrangler secret put OPENAI_API_KEY wrangler secret put GOOGLE_AI_STUDIO_API_KEY # ... etc
The deployment system follows this priority order:
- Environment Variables (highest priority)
- wrangler.jsonc vars
- Default values (lowest priority)
Example: If MAX_SANDBOX_INSTANCES is set both as an environment variable (export MAX_SANDBOX_INSTANCES=5) and in wrangler.jsonc ("MAX_SANDBOX_INSTANCES": "2"), the environment variable value (5) will be used.
Cloudflare VibeSDK implements enterprise-grade security:
- 🔐 Encrypted Secrets: All API keys stored with Cloudflare encryption
- 🏰 Sandboxed Execution: Generated apps run in completely isolated containers
- 🛡️ Input Validation: All user inputs sanitized and validated
- 🚨 Rate Limiting: Prevents abuse and ensures fair usage
- 🔍 Content Filtering: AI-powered detection of inappropriate content
- 📝 Audit Logs: Complete tracking of all generation activities
🚫 "Insufficient Permissions" Error
- Authentication is handled automatically during deployment
- If you see this error, try redeploying - permissions are auto-granted
- Contact Cloudflare support if the issue persists
🤖 "AI Gateway Authentication Failed"
- Confirm AI Gateway is set to Authenticated mode
- Verify the authentication token has Run permissions
- Check that gateway URL format is correct
🗄️ "Database Migration Failed"
- D1 resources may take time to provision automatically
- Wait a few minutes and retry - resource creation is handled automatically
- Check that your account has D1 access enabled
🔐 "Missing Required Variables"
- Worker Secrets: Verify all required secrets are set: ANTHROPIC_API_KEY, OPENAI_API_KEY, GOOGLE_AI_STUDIO_API_KEY, JWT_SECRET
- AI Gateway Token: CLOUDFLARE_AI_GATEWAY_TOKEN should be set as BOTH build variable and worker secret
- Environment Variables: These are automatically loaded from wrangler.jsonc - no manual setup needed
- Authentication: API tokens and account IDs are automatically provided by Workers Builds
🤖 "AI Gateway Not Found"
- With AI Gateway Token: The deployment script should automatically create the gateway. Check that your token has Read, Edit, and Run permissions.
- Without AI Gateway Token: You must manually create an AI Gateway before deployment:
- Go to AI Gateway Dashboard
- Create gateway named vibesdk-gateway (or your custom name)
- Enable authentication and create a token with Run permissions
🏗️ "Container Instance Type Issues"
- "enhanced" fails on non-Enterprise plans: Use standard instead - enhanced requires Cloudflare Enterprise
- Slow app previews: Try upgrading from dev or basic to standard instance type
- Out of memory errors: Upgrade to higher instance type or check for memory leaks in generated apps
- Build timeouts: Use enhanced instance type (Enterprise) or standard for faster build times
- 📖 Check Cloudflare Workers Docs
- 💬 Join Cloudflare Discord
- 🐛 Report issues on GitHub
Want to contribute to Cloudflare VibeSDK? Here's how:
- 🍴 Fork via the Deploy button (creates your own instance!)
- 💻 Develop new features or improvements
- ✅ Test thoroughly with bun run test
- 📤 Submit Pull Request to the main repository
- Workers - Serverless compute platform
- Durable Objects - Stateful serverless objects
- D1 - SQLite database at the edge
- R2 - Object storage without egress fees
- AI Gateway - Unified AI API gateway
- Discord - Real-time chat and support
- Community Forum - Technical discussions
- GitHub Discussions - Feature requests and ideas
- Workers Learning Path - Master Workers development
- Full-Stack Guide - Build complete applications
- AI Integration - Add AI to your apps
MIT License - see LICENSE for details.