{"repo":"BinaryBeastMaster/chat-relay","free":true,"listed":false,"github":"https://github.com/BinaryBeastMaster/chat-relay","clone":"git clone https://github.com/BinaryBeastMaster/chat-relay.git","description":"Chat Relay is a system that allows Cline/RooCode to communicate with web-based AI chat interfaces (like Gemini, AI Studio, ChatGPT, and Claude) through an OpenAI-compatible API. This enables using models that may not have public APIs through their web interfaces.","language":"JavaScript","stars":144,"topics":["aistudio","anthropic","chatgpt","claude","cline","gemini","roocode"],"license":"AGPL-3.0","category":"chat-messaging","readme_excerpt":"Chat Relay: OpenAI-Compatible Relay for AI Chat Interfaces Chat Relay is a system that allows Cline/RooCode to communicate with web-based AI chat interfaces (like Gemini, AI Studio, ChatGPT, and Claude) through an OpenAI-compatible API. This enables using models that may not have public APIs through their web interfaces. It also alows you to use models that are fast or good at tools (Claude) in combination with slower smarter models (Google Pro 2.5). --- Architecture Overview The system consists of three main components: 1. OpenAI-Compatible API Server : Implements an OpenAI-compatible API endpoint that Cline/RooCode can connect to. 2. Browser Extension : Connects to the API server via WebSocket and interacts with the chat interface. 3. MCP Server : Provides additional tools and resources for the system. ASCII Diagram Mermaid Diagram --- Data Flow 1. Cline/RooCode to API Server : - Sends HTTP POST to /v1/chat/completions 2. API Server to Browser Extension : - Sends message + requestId via WebSocket 3. Extension to Chat Interface : - Inserts text, clicks send 4. Chat Interface to Extension : - Captures response from UI 5. Extension to API Server : - Returns response tied to requestId 6. API Server to Cline/RooCode : - Formats response in OpenAI structure --- Components 1. OpenAI-Compatible API Server The API server implements an OpenAI-compatible endpoint and manages browser extension connectivity. Key Features: - OpenAI-style /v1/chat/completions endpoint - WebSocket server f","default_branch":null,"files":null,"tree":[],"storefront":"/r/BinaryBeastMaster","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/BinaryBeastMaster/chat-relay/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}