openrelay  by romgX

Unify and manage diverse AI model quotas and subscriptions

Created 2 months ago
2,130 stars

Top 20.5% on SourcePulse

GitHubView on GitHub
Project Summary

Summary

OpenRelay addresses the fragmentation of AI model subscriptions and free quotas by providing a unified local proxy. It allows users to seamlessly integrate and utilize diverse AI models (paid and free) across various tools and IDEs, eliminating manual configuration and ensuring continuous AI availability. This benefits developers and power users seeking to maximize their AI resources efficiently.

How It Works

OpenRelay functions as a local proxy server that auto-discovers available AI subscriptions and free quotas on the user's machine, alongside supporting 24 direct API providers. It exposes a single local endpoint (http://localhost:18765) which AI-aware tools can be configured to use via environment variables (e.g., ANTHROPIC_BASE_URL). This approach centralizes quota management, enabling tools like Claude Code or Aider to leverage any configured provider, including free tiers from Groq, Gemini, or Cerebras. Advanced features include one-click CLI tool configuration via a web dashboard and IDE integration through RPC proxies.

Quick Start & Requirements

Installation involves downloading a single executable binary for Windows or macOS, eliminating the need for Node.js or npm. Users run the executable and access a web dashboard at http://localhost:18765 for management. macOS users must run chmod +x and xattr -d com.apple.quarantine on the downloaded binary to bypass Gatekeeper security restrictions.

Highlighted Details

  • Supports 32 providers, including direct API access to Groq, Gemini, Anthropic, and more, plus IDE-specific integrations.
  • Enables seamless integration with IDEs like Cursor, VS Code Copilot, and Windsurf via RPC proxies or bridges.
  • Features custom model groups that automatically failover between providers when quotas are exhausted, ensuring uninterrupted AI access.
  • Provides a unified local endpoint for all AI tools, simplifying configuration and management.

Maintenance & Community

Community support and updates are primarily channeled through Telegram (chat and updates channels) and GitHub Issues for bug reporting and feature requests. Users are encouraged to star the repository and join the Telegram group for potential Pro access giveaways.

Licensing & Compatibility

OpenRelay employs an Open Core model. The core framework, including proxying, format translation, and configuration management, is licensed under MIT, permitting broad commercial use and integration into closed-source projects. However, advanced "Pro features" such as custom model groups and unlimited requests are subject to a separate commercial license, requiring explicit agreement for their use.

Limitations & Caveats

The core functionality of combining quotas into custom model groups and achieving unlimited requests is designated as a "Pro feature" under a commercial license. This implies that users seeking these advanced capabilities will require a separate commercial agreement, potentially limiting the free tier's utility for complex, high-demand scenarios. macOS users must perform additional steps to run the unsigned binary.

Health Check
Last Commit

1 week ago

Responsiveness

Inactive

Pull Requests (30d)
0
Issues (30d)
6
Star History
732 stars in the last 30 days

Explore Similar Projects

Feedback? Help us improve.