1.2 KiB
1.2 KiB
E2B AI Code Editor
Chat with AI to build React apps instantly.
Setup
- Clone & Install
git clone https://github.com/yourusername/e2b.git
cd e2b
npm install
- Add
.env.local
# Required
E2B_API_KEY=your_e2b_api_key
FIRECRAWL_API_KEY=your_firecrawl_api_key
# Optional (need at least one AI provider)
ANTHROPIC_API_KEY=your_anthropic_api_key
OPENAI_API_KEY=your_openai_api_key
GROQ_API_KEY=your_groq_api_key
- Run
npm run dev
Get API Keys
firecrawl.dev → Web scraping
e2b.dev → Sandboxes
console.groq.com → Fast inference (Kimi K2 - recommended)
platform.openai.com → GPT-5
Example Chat
You: "Clone the Stripe pricing page"
AI: *generates full pricing component*
You: "Make it dark mode"
AI: *adds theme switching*
You: "Add animations"
AI: *implements Framer Motion*
You: "Deploy this"
AI: *guides deployment*
Features
- Live preview with hot reload
- Automatic package installation
- Multiple AI models
- Web scraping with Firecrawl
- Sandboxed execution
License
MIT