Skip to main content

Create Your First App

Step 1: Generate Project

Run the Capx Compose scaffolding tool:
This creates a Next.js project with:
  • Vercel AI SDK integration
  • OpenAI GPT streaming chat
  • TypeScript configuration
  • Tailwind CSS styling
  • Working example pages

Step 2: Navigate to Project

Step 3: Configure Environment

Create your environment file:
Edit .env.local and add your OpenAI API key:
Get your API key from OpenAI Platform.

Step 4: Install Dependencies

If dependencies weren’t auto-installed:

Step 5: Start Development Server

Open http://localhost:3000 to see your app!

What You Get

Your generated project includes:

Working AI Chat Interface

Navigate to /vercel-ai to see a complete chat interface with:
  • Streaming responses from OpenAI
  • Message history
  • Loading states
  • Error handling

Project Structure

Pre-configured Features

  • Next.js 14+ with App Router support
  • TypeScript for type safety
  • Tailwind CSS for styling
  • Vercel AI SDK for streaming
  • OpenAI Integration ready to use