This guide walks you through setting up the full Vibra Code stack: the Next.js backend, Convex database, Inngest job server, E2B sandbox template, and the iOS mobile app. By the end you will have a running system and your first AI-built app previewing on your phone.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/sa4hnd/vibra-code/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
You need accounts and API keys for the following services before you start. Stripe and RevenueCat are optional — only needed if you want payment processing.| Requirement | Purpose | Where to get it |
|---|---|---|
ANTHROPIC_API_KEY | AI code generation with Claude (default agent) | console.anthropic.com |
E2B_API_KEY | Cloud sandboxes for code execution | e2b.dev |
| Clerk publishable + secret keys | Authentication for backend and mobile | clerk.com |
| Convex deployment URL | Real-time database | convex.dev |
You can use Cursor or Gemini instead of Claude by setting
AGENT_TYPE=cursor or AGENT_TYPE=gemini and providing the corresponding API key. See the AI providers guide for details.- Backend setup
- E2B sandbox template
- Mobile app setup
Backend setup
The backend is a Next.js 15 app with Convex for real-time data and Inngest for background job processing.Clone the repository
Clone with submodules — the Expo template used inside sandboxes is included as a Git submodule.
Configure environment variables
Copy the example file and fill in your API keys.Open
.env.local and set at minimum:Deploy the Convex schema
This creates the real-time database tables (users, sessions, messages, and more) in your Convex project.
Start the Inngest dev server
Inngest processes background jobs — sandbox creation, agent runs, and GitHub pushes. Run it in a separate terminal.The Inngest dashboard will be available at
http://localhost:8288.Build your first app
Once the backend is running and the mobile app is installed on your device or simulator:Open the Create tab
In the mobile app, tap the Create tab at the bottom of the screen. This opens
VibraCreateAppScreen.Describe your app
Type (or tap the microphone to speak) a description of the app you want to build. Be as specific or as brief as you like. For example:
“A habit tracker with a daily checklist and a streak counter”
Watch it build
Vibra Code creates a session in Convex, spawns an E2B sandbox, and starts the AI agent. You will see status updates stream in real time:
Cloning repo → Installing dependencies → Starting dev server → Creating tunnel → RunningThe chat view shows every file the agent reads, edits, and runs as it works.The first build takes longer because the sandbox clones the Expo template and installs npm dependencies from scratch. Subsequent messages in the same session reuse the running sandbox and are much faster.