Cloudflare Worker proxy that converts API calls from Gemini and OpenAI models to Claude Code format. Enables low-cost, zero-configuration access to Claude Code with One-Balance integration. Supports streaming and non-streaming responses, tool calls, and easy deployment.
git clone https://github.com/glidea/claude-worker-proxy.gitCloudflare Worker proxy that converts API calls from Gemini and OpenAI models to Claude Code format. Enables low-cost, zero-configuration access to Claude Code with One-Balance integration. Supports streaming and non-streaming responses, tool calls, and easy deployment.
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/glidea/claude-worker-proxyCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
I need to set up a Cloudflare Worker for my [COMPANY] in the [INDUSTRY] industry that acts as a proxy for Claude Code. Can you provide a step-by-step guide on how to deploy this using the Claude Code Router?
### Cloudflare Worker Proxy Setup Guide
To set up a Cloudflare Worker that acts as a proxy for Claude Code, follow these steps:
1. **Log into Cloudflare**: Access your Cloudflare dashboard and select the domain you want to work with.
2. **Create a New Worker**: Navigate to the Workers section and click on 'Create a Worker'.
3. **Configure the Worker**: In the code editor, implement the following code snippet:
```javascript
addEventListener('fetch', event => {
event.respondWith(handleRequest(event.request));
});
async function handleRequest(request) {
const url = new URL(request.url);
url.hostname = 'your-claude-code-endpoint.com'; // Change to your Claude Code endpoint
const modifiedRequest = new Request(url, request);
return await fetch(modifiedRequest);
}
```
4. **Test Your Worker**: Use the preview feature to test the worker's functionality before deploying it.
5. **Deploy the Worker**: Once confirmed, click on 'Save and Deploy' to make your proxy live.
This setup allows your [COMPANY] to efficiently route requests through Claude Code, enhancing automation in your [INDUSTRY] workflows.Smart ring for digital payments
Protect and enhance web performance with DDoS protection, firewalls, and content delivery.
AI assistant built for thoughtful, nuanced conversation
IronCalc is a spreadsheet engine and ecosystem
Enterprise workflow automation and service management platform
Automate your spreadsheet tasks with AI power