Claude Proxy seamlessly converts Claude API requests to OpenAI API format using a TypeScript proxy deployed on Cloudflare Workers.
Deploy a TypeScript proxy on Cloudflare Workers to convert Claude API requests to OpenAI API format. Seamlessly integrate compatible clients. 🚀🐙
This tool is designed for developers who need to integrate clients that use the Claude API with services that require the OpenAI API format. It simplifies the process of making API requests compatible across different platforms.
Ensure you have Node.js and npm installed before running the installation commands.
Clone the Repository: git clone https://github.com/DavidLabrin/claude_proxy.git
Change Directory: cd claude_proxy
Install Dependencies: npm install
Deploy to Cloudflare Workers: npx wrangler publishcurl -X POST 'https://your-proxy-url.com/v1/messages' -H 'Content-Type: application/json' -H 'Authorization: Bearer YOUR_API_KEY' -d '{ "messages": [{"role": "user", "content": "Hello, Claude!"}] }'
Sends a message to the proxy, which routes it to the appropriate OpenAI API endpoint.