Discover and explore top open-source AI tools and projects—updated daily.
ZhiYi-RLLM API protocol conversion and routing proxy
Top 73.2% on SourcePulse
A Go-based proxy that unifies access to multiple Large Language Model (LLM) providers, Moon Bridge exposes a consistent OpenAI Responses API endpoint while internally supporting and translating requests for Anthropic Messages, Google Gemini, and OpenAI Chat Completions. This enables clients to use a single API interface, automatically routing requests to different upstream providers based on configured model aliases, simplifying multi-model LLM integration for developers.
How It Works
The core architecture centers on protocol conversion and intelligent model routing. Moon Bridge intercepts incoming requests, performs necessary protocol transformations (e.g., OpenAI Responses to Anthropic Messages), and routes them to the specified upstream LLM provider using configured aliases. It supports three primary modes: 'Transform' (default, performs conversion), 'CaptureAnthropic' (transparently forwards to Anthropic), and 'CaptureResponse' (transparently forwards to OpenAI). Extensibility is provided via a CorePluginHooks interface for custom request/response processing and stream interception.
Quick Start & Requirements
config.example.yml to config.yml, edit API keys, and run go run ./cmd/moonbridge -config config.yml. Docker deployment is also supported.config.yml), upstream API keys.CookBook.md, CONFIGURATION.md, and API.md.Highlighted Details
routes configuration.CorePluginHooks interface for pre/post-processing and stream handling.Maintenance & Community
1103798316. No other community or maintenance signals were explicitly detailed in the provided text.Licensing & Compatibility
Limitations & Caveats
Requires a relatively recent Go version (1.25+). The GPL v3 license necessitates careful consideration for commercial use or integration into proprietary software. Advanced features like web search injection and prompt caching may require specific upstream provider support or complex configuration.
4 days ago
Inactive
theopenco
BerriAI