๐ค Claude Code on Cloudflare
June 24, 2025 ยท View on GitHub
This template provides a containerized environment on Cloudflare workers for Claude Code to process GitHub issues. It listens to new issues created from your connected repositories, and creates a Pull Request to solve them.
โจ Features
- ๐ Leading coding agent: Leverage the same Claude Code that you already use for coding tasks
- โก Lightning Fast: Cloudflare Containers provide instant scaling and sub-millisecond response times so Claude Code can work on any number of issues concurrently
- ๐ง Zero Configuration: One-click deployment with guided setup process
- ๐ก๏ธ Installation Token Management: Secure, auto-refreshing GitHub App tokens
- ๐ Secure: Deploys to your own Cloudflare account
๐ Quickstart
1๏ธโฃ Deploy to Cloudflare
Click the deploy button above to instantly deploy to your Cloudflare account. The deployment includes:
- Cloudflare Worker with Container support
- Durable Objects for secure storage
- All necessary bindings and configurations
2๏ธโฃ Set Up Anthropic API
After deployment, you'll need to configure your Claude AI integration:
-
Get your Anthropic API key:
- Visit Anthropic Console
- Create an API key with appropriate permissions
-
Configure the API key:
- Navigate to your deployed worker's
/claude-setupendpoint - Enter your Anthropic API key
- The system will securely encrypt and store your credentials
- Navigate to your deployed worker's
3๏ธโฃ Install GitHub App
Once you complete the Anthropic API setup, you'll be redirected to the /gh-setup endpoint (or you can access it manually), which will guide you through installing the GitHub App and configuring access to your repositories. The system will automatically capture installation details.
๐ Usage
Once configured, the system works automatically:
- Issue Creation: When someone creates an issue in your repository, Claude receives a webhook
- AI Analysis: Claude analyzes the issue content and begins processing
- Progress Updates: Real-time progress comments appear as Claude works
- Solution Delivery: Claude provides comprehensive solutions with code examples
- Task Completion: Final completion comment marks the end of processing
๐ป Local development
# Install dependencies
npm install
# Start development server
npm run dev
๐ License
This project is open source and available under the MIT License.