Codeflow is an autonomous coding agent running on top of the E2B Sandbox that can be used to automate tasks on any repository.
- Autonomous Task Execution: Give Codeflow a task and watch it work autonomously
- Secure Sandbox Environment: All code execution happens in isolated E2B Sandbox
- Multi-LLM Support: Works with multiple language model providers
- Real-time Streaming: See tool calls and outputs in real-time
- Repository Management: Clone, navigate, and modify any repository
- Interactive Web Interface: Modern Next.js frontend with terminal-like experience
- Fast Apply: Apply partial code edits efficiently (like Cursor)
- MCP Integration: Model Context Protocol support for enhanced capabilities
- Smart suggestions with categorized prompts for common coding tasks
- Real-time chat with typing indicators and message timestamps
- File attachment support for images and code files with preview
- Code block rendering with syntax highlighting and copy functionality
- Message actions including copy, thumbs up/down, and regenerate options
- Responsive design that adapts to different screen sizes
- Backend: E2B JavaScript/Python SDK with TypeScript
- Frontend: Next.js with interactive web application
- Sandbox: E2B Sandbox for secure code execution
- LLM: Multiple provider support (OpenAI, Anthropic, etc.)
Follow these steps to set up and run Codeflow locally:
git clone https://github.com/codeflow-ai/codeflow.git
cd codeflowpnpm installCreate a .env file in the root directory with the following variables:
# OpenAI API Key (required for LLM functionality)
OPENAI_API_KEY=your_openai_api_key_here
# E2B API Key (required for sandbox functionality)
E2B_API_KEY=your_e2b_api_key_here
# GitHub integration (required for repository import)
GITHUB_CLIENT_ID=your_github_oauth_app_client_id
GITHUB_CLIENT_SECRET=your_github_oauth_app_client_secret
GITHUB_REDIRECT_URI=http://localhost:3000/api/github/auth
# Optional: Cursor API integration
CURSOR_API_KEY=your_cursor_api_key
# Application URL
NEXT_PUBLIC_APP_URL=http://localhost:3000OpenAI API Key:
- Go to OpenAI Platform
- Sign in or create an account
- Navigate to the API Keys section
- Click "Create new secret key"
- Give your key a name (e.g., "Codeflow Development")
- Copy the generated key and add it to your
.envfile asOPENAI_API_KEY
E2B API Key:
- Go to e2b.dev
- Sign up or sign in to your account
- Navigate to your dashboard
- Go to the "API Keys" section
- Click "Create API Key"
- Give your key a name (e.g., "Codeflow Development")
- Copy the generated key and add it to your
.envfile asE2B_API_KEY
pnpm run dev