An open-source AI coding agent that lets you interact with a remote tmux session and freely edit code in any git repository. Built with React, Vite, Cloudflare Pages, and Electron.
- AI-Powered Development: Chat with AI to create, edit, and run code
- Real-time Collaboration: Multiple users can work on the same project
- Session Management: Save, resume, and share your coding sessions
- Cloud & Local Models: Support for multiple AI providers including local models
- Deployment Ready: Deploy to Vercel, Netlify, and other platforms
- Cross-Platform: Runs in the browser or as a desktop app (Electron)
- Real-time collaboration via Yjs (y-websocket) with persisted docs and health endpoint
- Plan/Act agent workflow with checkpointed execution and revert support
- Multi-provider model support (cloud + local) with in-app model orchestrator
- Session save/resume/share (optional Supabase-backed storage)
- Deployment wizard + provider integrations (GitHub/GitLab + Vercel/Netlify)
- Cloudflare Pages-compatible production builds (wrangler.toml, functions/[[path]].ts)
- Cloudflare build OOM mitigation: NODE_OPTIONS=--max-old-space-size=6142 (or
pnpm run build:highmem)
- Complete rebranding to "bolt.gives" with backward compatibility
- Enhanced cloud deployment support
- Improved performance optimizations
- Expanded AI provider integrations
- Better documentation and setup guides
bolt.gives is designed to run on Cloudflare Pages. Follow these steps to deploy:
- A Cloudflare account
- Wrangler CLI installed (
npm install -g wrangler) - Your AI provider API keys ready
Set the following environment variables in your Cloudflare Pages project:
# AI Provider API Keys
ANTHROPIC_API_KEY=your_key_here
OPENAI_API_KEY=your_key_here
GOOGLE_GENERATIVE_AI_API_KEY=your_key_here
# ... add other providers you want to use
# Optional Integrations
VITE_GITHUB_ACCESS_TOKEN=your_github_token
VITE_GITLAB_ACCESS_TOKEN=your_gitlab_token
VITE_VERCEL_ACCESS_TOKEN=your_vercel_token
VITE_NETLIFY_ACCESS_TOKEN=your_netlify_token
VITE_SUPABASE_URL=your_supabase_url
VITE_SUPABASE_ANON_KEY=your_supabase_keyFor most deployments, use:
pnpm run buildIf you encounter build OOM (Out of Memory) errors, use the high-memory build:
pnpm run build:highmemOr set the build command with increased Node heap size:
NODE_OPTIONS=--max-old-space-size=6142 pnpm run buildSet the build output directory to: build/client
Set the functions directory to: functions
Set the Node.js version to: 18.18 or higher
-
Push your code to a Git repository (GitHub, GitLab, etc.)
-
In Cloudflare Pages:
- Connect your repository
- Set build settings:
- Build command:
pnpm run buildorpnpm run build:highmem - Build output directory:
build/client - Functions directory:
functions - Node.js version:
18.18or higher
- Build command:
-
Add environment variables in the Cloudflare Pages dashboard
-
Deploy!
- OOM Errors: Use
pnpm run build:highmemor setNODE_OPTIONS=--max-old-space-size=6142 - Build Failures: Check that Node.js version is 18.18 or higher
- Function Errors: Verify the functions directory is set to
functions
Test your Cloudflare Pages deployment locally:
pnpm run build
pnpm run startThis will use Wrangler to serve your build locally with the same environment as Cloudflare Pages.
- Node.js 18.18 or higher
- pnpm (recommended) or npm
-
Clone the repository:
git clone https://github.com/stackblitz-labs/bolt.gives.git cd bolt.gives -
Install dependencies:
pnpm install
-
Copy the environment variables:
cp .env.example .env.local
-
Edit
.env.localand add your API keys -
Start the development server:
pnpm run dev
-
Open your browser to
http://localhost:5173
pnpm run dev- Start development serverpnpm run build- Build for productionpnpm run build:highmem- Build for production with increased memorypnpm run start- Start production server locallypnpm run lint- Run ESLintpnpm run typecheck- Run TypeScript type checkingpnpm test- Run testspnpm run electron:dev- Start Electron development app
- Frontend: React 18 + Remix v2
- Styling: UnoCSS with Tailwind compatibility
- Editor: CodeMirror 6
- Terminal: xterm.js
- AI: Vercel AI SDK with multiple provider support
- Deployment: Cloudflare Pages with Functions
- Desktop: Electron with auto-updates
Contributions are welcome! Please read our contributing guidelines before submitting PRs.
MIT License - see LICENSE file for details.
- Built by the bolt.gives team
- Original project: bolt.diy by StackBlitz