Stars
Forks
Watchers
Developer links
CatGPT Gateway
CatGPT Gateway turns the ChatGPT or Claude account a team already pays for into an OpenAI-compatible API that ordinary tools can call. Point the OpenAI Python SDK, LangChain, or a plain curl request at the gateway and choose the browser-backed model for Claude or ChatGPT; the service opens the provider web interface in a real Chromium session, enters the prompt, waits for completion, extracts the answer, and returns standard OpenAI JSON. Streaming responses arrive over SSE, persistent session headers keep multi-turn conversations on one browser tab to avoid reloads, and a browser page pool handles concurrent requests across several tabs. Tool calling round-trips through structured prompt injection, so LangChain agents can invoke local functions and receive parsed tool calls in the normal format. Vision inputs, PDF and document attachments, and ChatGPT image generation through DALL-E pass through the same endpoint shape that existing clients already speak. A live monitor at the preview route shows every active browser tab in a double-buffered grid, with tab switching and safe tab closure for the operator. One browser login through a noVNC page persists in a Docker volume, so the API keeps serving after restarts without storing provider API keys. Running on a dedicated VPS on RepoCloud with guaranteed CPU, RAM, and SSD, full root SSH access, and a browser serial console. MIT licensed.
Benefits
- Subscription Becomes An API
- A ChatGPT Plus or Claude account becomes an OpenAI-compatible endpoint for the OpenAI SDK, LangChain and curl, so existing client code works without purchasing separate provider API access.
- Streaming And Persistent Sessions
- SSE streaming returns tokens as the browser generates them, and a session header pins a conversation to one tab, preserving multi-turn context while avoiding page reloads and repeated challenges.
- Concurrent Browser Tab Pool
- A page pool spreads requests across multiple real browser tabs for both providers, and the live preview grid shows each tab so operators can watch, switch or close sessions.
- Tools, Vision And Files
- Function calling, image inputs, PDF and document attachments, and ChatGPT image generation all travel through the same completions interface, covering the request shapes most client libraries already send.
Features
- Two Browser Providers
- Set one environment variable to select Claude with the claude-browser model or ChatGPT with catgpt-browser, covering free, Pro, Plus and Team accounts through the provider web session.
- OpenAI Response Format
- A FastAPI service on port 8000 accepts chat completions and returns standard OpenAI JSON, extracting answers from the automated Chromium page through centralized provider selectors.
- Live Multi-Tab Monitor
- The preview route renders a zero-flicker double-buffered grid of all concurrent browser tabs, with tab management controls and an English or Chinese interface toggle for operators.
- Docker Login Persistence
- Sign in once through the noVNC browser page on port 6080 and the Docker volume keeps the session across restarts, with bearer token authentication protecting the API endpoint.