Discover and explore top open-source AI tools and projects—updated daily.
This project provides a Cloudflare Worker that acts as a proxy, translating requests between Anthropic's Claude API format and OpenAI-compatible APIs. It enables users to leverage Claude Code with services like OpenRouter, offering access to a wider range of models through a familiar interface. The primary benefit is enhanced flexibility and model choice for users of Claude Code.
How It Works
The y-router worker intercepts API requests made in Anthropic's /v1/messages
format. It then converts these requests into the OpenAI chat completions format, forwards them to a specified OpenAI-compatible API endpoint (defaulting to OpenRouter), and translates the response back into Anthropic's format. This two-way translation supports both streaming and non-streaming responses, abstracting the underlying API differences.
Quick Start & Requirements
bash -c "$(curl -fsSL https://cc.yovy.app/install.sh)"
npm
(for manual setup), wrangler
(for Cloudflare deployment), Docker (for local deployment).ANTHROPIC_MODEL
and ANTHROPIC_SMALL_FAST_MODEL
for specifying preferred models.Highlighted Details
Maintenance & Community
The project is maintained by luohy15. It acknowledges inspiration from claude-code-router
and claude-code-proxy
. Community interaction channels are not explicitly mentioned in the README.
Licensing & Compatibility
Limitations & Caveats
The project is positioned as a tool for testing models other than Anthropic's native offerings, with a recommendation to use claude-relay-service
for intensive usage of Anthropic models. Users are solely responsible for API key management, associated costs, and compliance with all relevant terms of service and legal regulations. The software is provided "as is" without warranty.
1 month ago
Inactive