feat: Add simplified cloud deployment support for Render and other platforms #1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
🚀 Simplified Cloud Deployment Support
This PR adds minimal, production-ready cloud deployment support to claude-code-router, enabling users to deploy the service to platforms like Render, Railway, Heroku, and others.
✨ Key Features
cloud-server-simple.js
file for cloud deployment📁 Essential Files
cloud-server-simple.js
- Main cloud deployment entry pointRENDER_DEPLOY.md
- Complete deployment guidepackage.json
,package-lock.json
- Dependenciesdist/
- Compiled codesrc/
- Source code🔧 How It Works
Before (Local Only):
ccr code # Starts local service + Claude Code
After (Cloud + Local):
💰 Benefits
$0.14/1M tokens) vs Claude ($3.00/1M tokens)🧪 Testing Results
/v1/messages
)📋 Quick Deployment (Render)
npm install && npm run build
node cloud-server-simple.js
https://your-app.onrender.com
🔄 Backward Compatibility
All existing local functionality remains unchanged. This is purely additive - users can continue using
ccr code
locally while also having the option to deploy to the cloud.🧹 Code Cleanup
Removed unnecessary files to keep the deployment clean:
blog/
directory (documentation not needed for deployment)screenshoots/
directory (images not needed for deployment)docker-compose.yml
,dockerfile
(focusing on Render deployment)config.json
(auto-generated by deployment script)This basic deployment does not include API key authentication between Claude Code and your Render service. Anyone with your Render URL can use your deployed service. For production use, consider adding authentication middleware.
📖 Documentation
This enhancement transforms claude-code-router from a local-only tool into a flexible service that can be deployed anywhere, providing significant cost savings and improved availability with minimal complexity.