AI-powered development platform that lets you create web applications by chatting with AI agents in real-time sandboxes.
Before running the application, you must build the E2B template that the AI agents use to create sandboxes.
Prerequisites: - Docker must be installed and running (the template build command uses Docker CLI)
# Install E2B CLI
npm i -g @e2b/cli
# or
brew install e2b
# Login to E2B
e2b auth login
# Navigate to the sandbox template directory
cd sandbox-templates/nextjs
# Build the template (replace 'your-template-name' with your desired name)
e2b template build --name your-template-name --cmd "/compile_page.sh"
After building the template, update the template name in src/inngest/functions.ts:
// Replace "vibe-nextjs-test-2" with your template name
const sandbox = await Sandbox.create("your-template-name");
# Install dependencies
npm install
# Set up environment variables
cp env.example .env
# Fill in your API keys and database URL
# Set up database
npx prisma migrate dev # Enter name "init" for migration
# Start development server
npm run dev
Create a .env file with the following variables:
DATABASE_URL=""
NEXT_PUBLIC_APP_URL="http://localhost:3000"
# OpenAI
OPENAI_API_KEY=""
# E2B
E2B_API_KEY=""
# Clerk
NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY=""
CLERK_SECRET_KEY=""
NEXT_PUBLIC_CLERK_SIGN_IN_URL="/sign-in"
NEXT_PUBLIC_CLERK_SIGN_UP_URL="/sign-up"
NEXT_PUBLIC_CLERK_SIGN_IN_FALLBACK_REDIRECT_URL="/"
NEXT_PUBLIC_CLERK_SIGN_UP_FALLBACK_REDIRECT_URL="/"
# Database
npm run postinstall # Generate Prisma client
npx prisma studio # Open database studio
npx prisma migrate dev # Migrate schema changes
npx prisma migrate reset # Reset database (Only for development)
# Build
npm run build # Build for production
npm run start # Start production server
npm run lint # Run ESLint
src/app/ - Next.js app router pages and layoutssrc/components/ - Reusable UI components and file explorersrc/modules/ - Feature-specific modules (projects, messages, usage)src/inngest/ - Background job functions and AI agent logicsrc/lib/ - Utilities and database clientsrc/trpc/ - tRPC router and client setupprisma/ - Database schema and migrationssandbox-templates/ - E2B sandbox configurationCreated by CodeWithAntonio
$ claude mcp add nextjs-vibe \
-- python -m otcore.mcp_server <graph>