Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
65 changes: 65 additions & 0 deletions RENDER_DEPLOY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# Deploy to Render

## Quick Setup

1. **Fork this repository**

2. **Create Render Web Service**:
- Go to [Render Dashboard](https://dashboard.render.com)
- Click "New" → "Web Service"
- Connect your forked repository
- Use these settings:
- **Build Command**: `npm install && npm run build`
- **Start Command**: `node cloud-server-simple.js`

3. **Set Environment Variables** (in Render dashboard):
- Go to your service → Environment
- Add these variables:
```
OPENAI_API_KEY=your-actual-api-key-here
OPENAI_BASE_URL=https://api.deepseek.com
OPENAI_MODEL=deepseek-chat
```

4. **Deploy** and get your URL: `https://your-app.onrender.com`

5. **Use with Claude Code**:
```bash
export ANTHROPIC_BASE_URL=https://your-app.onrender.com
export ANTHROPIC_API_KEY=any-string # Can be any value
claude-code
```

## Security Note

⚠️ **Important**: 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:

1. Adding authentication middleware
2. Using environment-based access control
3. Implementing rate limiting
4. Monitoring usage

## Provider Examples

**DeepSeek (Recommended - very cheap):**
```
OPENAI_API_KEY=sk-your-deepseek-key
OPENAI_BASE_URL=https://api.deepseek.com
OPENAI_MODEL=deepseek-chat
```

**OpenAI:**
```
OPENAI_API_KEY=sk-your-openai-key
OPENAI_BASE_URL=https://api.openai.com/v1
OPENAI_MODEL=gpt-4
```

**OpenRouter:**
```
OPENAI_API_KEY=sk-your-openrouter-key
OPENAI_BASE_URL=https://openrouter.ai/api/v1
OPENAI_MODEL=anthropic/claude-3.5-sonnet
```

That's it! Now you can use Claude Code with any provider without running anything locally.
105 changes: 0 additions & 105 deletions blog/en/maybe-we-can-do-more-with-the-route.md

This file was deleted.

103 changes: 0 additions & 103 deletions blog/en/project-motivation-and-how-it-works.md

This file was deleted.

Binary file removed blog/images/alipay.jpg
Binary file not shown.
Binary file removed blog/images/chrome-devtools.png
Binary file not shown.
Binary file removed blog/images/chrome-inspect.png
Binary file not shown.
Binary file removed blog/images/search.png
Binary file not shown.
Binary file removed blog/images/webstorm-formate-file.png
Binary file not shown.
Binary file removed blog/images/wechat.jpg
Binary file not shown.
Loading