Developer Builds Open-Source Gateway to Use ChatGPT and Gemini in VS Code Without API Keys
A developer has released Chat Model Relay, a self-hosted, experimental tool that routes VS Code requests to existing ChatGPT and Gemini browser sessions, eliminating the need for separate API keys or provider subscriptions. The gateway exposes OpenAI-compatible endpoints and supports features such as file attachments, vision requests, tool-call translation, and a long-prompt fallback that uploads oversized prompts as temporary attachments. It is deployed locally via Docker Compose and is primarily designed for use with VS Code's custom model endpoint feature. The project carries notable limitations, including vulnerability to browser layout changes, session expiry, and slower response times compared to native APIs, and it does not support live token streaming. The developer has cautioned that it is strictly experimental software for personal use and should never be exposed publicly without proper authentication and network controls.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in