Turn any AI website into an OpenAI-compatible API.
Transforms web-based AI interfaces (ChatGPT, Claude, DeepSeek, and others) into fully-functional OpenAI-compatible agents accessible via standard API endpoints.
# Install dependencies
uv sync
# Run the server
uv run python -m src.maindocker build -t ai-web-wrapper .
docker run -p 8000:8000 -v ./data:/app/data ai-web-wrapperSet your OpenAI client to point to the proxy:
export OPENAI_BASE_URL=http://localhost:8000/v1
export OPENAI_API_KEY=wsk_live_xxx # Your virtual keyProvider-specific endpoints also available:
# Direct provider routing (bypasses key resolution)
curl http://localhost:8000/v1/<site-provider>/chat/completions| Component | Purpose |
|---|---|
| Providers | Registered adapters for AI websites (ChatGPT, Claude, DeepSeek, etc.) |
| Cookies | Authentication profiles with login sessions captured via Playwright |
| Recorder | Browser-based action recorder for reverse-engineering site APIs |
| Proxy | OpenAI-compatible /v1/chat/completions endpoint that routes to providers |
See the developer guide for step-by-step instructions on creating adapters for new AI websites.
- Backend: FastAPI + Uvicorn + SQLAlchemy + Pydantic v2
- Automation: Playwright (browser login)
- HTTP: httpx (proxy forwarding)
- UI: Jinja2 + HTMX + Alpine.js
- Auth: python-jose (JWT for virtual keys)
MIT