Skip to content

hackernoon/claude-code-containers

Repository files navigation

🤖 Claude Code on Cloudflare

Deploy to Cloudflare

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:

  1. Get your Anthropic API key:

  2. Configure the API key:

    • Navigate to your deployed worker's /claude-setup endpoint
    • Enter your Anthropic API key
    • The system will securely encrypt and store your credentials

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:

  1. Issue Creation: When someone creates an issue in your repository, Claude receives a webhook
  2. AI Analysis: Claude analyzes the issue content and begins processing
  3. Progress Updates: Real-time progress comments appear as Claude works
  4. Solution Delivery: Claude provides comprehensive solutions with code examples
  5. 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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published