lumingya/universal-web-api
🤖通用性反代程序,通过模拟人类操作支持将任意网站转化为标准的OpenAi格式的api。
What it solves
Universal Web API provides a way to use the web interfaces of various AI chatbots (like ChatGPT, Claude, Gemini, and DeepSeek) as if they were official APIs. It allows users to bridge their existing browser-based AI accounts to local clients, scripts, or workflows without needing to pay for separate API credits or manage multiple official API keys.
How it works
The tool runs as a local server using FastAPI and DrissionPage to control a Chromium-based browser. It intercepts and translates requests from an OpenAI or Anthropic compatible API format into browser actions (DOM manipulation and network parsing). When a client sends a request, the server schedules a browser tab from a managed pool, simulates user input on the AI website, and extracts the response from the same page, returning it as a standard JSON or SSE stream.
Who it’s for
Developers and power users who want to integrate their web-based AI accounts into third-party local clients, automation scripts, or AI agents, and those who prefer using the web-interface capabilities of AI models without official API access.
Highlights
- Broad Compatibility: Supports OpenAI and Anthropic API formats, making it compatible with most LLM clients.
- Wide Site Support: Pre-configured for major platforms including ChatGPT, DeepSeek, Gemini, Claude, Kimi, and Grok.
- Multimodal Support: Handles image and media uploads and returns media content.
- Tab Pool Management: Manages a pool of browser tabs to handle concurrent requests and isolate sessions.
- Customizable: Includes a control panel for adding new sites by defining CSS selectors and workflow rules via JSON configuration.
Related
- Project
- Project
- Project
- Project