zqbxdev

zqbxdev / webchat2api

Public

OpenAI-compatible Web Chat API proxy with GPT/Grok account management

81
18
69% credibility
Found May 22, 2026 at 104 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
Python
AI Summary

webchat2api is a self-hosted API gateway that lets you use your own ChatGPT and Grok accounts to access AI capabilities. It provides a web dashboard for managing multiple accounts, tracks usage and credits, and exposes standard OpenAI/Anthropic-compatible API endpoints so you can integrate AI into your own applications. The system automatically handles account pooling, image generation, and content safety filtering. It stores data locally or in databases and supports cloud backups.

How It Works

1
💡 You want AI access without paying high API fees

You've heard that ChatGPT Plus gives you image generation and better models, but the official API is expensive. You wonder if there's another way.

2
🔑 You connect your own ChatGPT account

Instead of buying API credits, you add your personal ChatGPT Plus account to the system. The tool uses your account's built-in capabilities.

3
🔄 Your account becomes part of a smart pool

The system manages your account automatically, checking its status, tracking image credits, and recovering when limits are hit. If one account runs out, it switches to another you add.

4
🌐 You get a simple web dashboard

A clean interface shows you all your accounts, their status, remaining credits, and usage history. You can add or remove accounts with a few clicks.

5
You access AI in different ways
💬
Chat with text models

Send text prompts and get responses through a standard chat interface, just like using ChatGPT directly.

🎨
Generate images

Describe what you want to see, and the system creates images using your account's image generation capability.

🔌
Build with the API

Connect your own apps or scripts using the standard OpenAI-compatible API format.

6
📊 Everything gets logged and tracked

Every request is recorded so you know what's happening. You can review logs, see which accounts are being used, and monitor costs.

Your AI assistant is ready to use

You now have a personal AI gateway that uses your own accounts, with a friendly dashboard and standard API access for your projects.

Sign up to see the full architecture

5 more

Sign Up Free

Star Growth

See how this repo grew from 104 to 81 stars Sign Up Free
Repurpose This Repo

Repurpose is a Pro feature

Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.

Unlock Repurpose
AI-Generated Review

What is webchat2api?

webchat2api is a Python proxy server that exposes your GPT and Grok accounts through an OpenAI-compatible REST API. Instead of paying for an API key, you feed it access tokens from your own accounts and it handles routing, rate limiting, and quota management behind a standard `/v1/chat/completions` interface. It ships with a Next.js web dashboard for managing account pools, viewing call logs, and configuring backups to Cloudflare R2. The project supports text generation, image creation, and image editing through the same endpoints your existing AI SDK code already uses.

Why is it gaining traction?

The hook is simple: use your own ChatGPT Plus subscriptions as an API backend. For developers building internal tools or prototypes, this removes the friction of credit cards and API key management. The OpenAI-compatible interface means you can point Dify, Open WebUI, or any standard AI client at it without code changes. It also handles the messy parts -- automatic account rotation when quotas hit limits, content filtering, and encrypted backups -- things you'd otherwise cobble together yourself.

Who should use this?

Developers running self-hosted AI workflows who already pay for ChatGPT Plus or Grok accounts will get the most value. It's useful for teams evaluating AI features without committing to OpenAI's pricing, or for internal tools where you want API access without exposing corporate API keys to third parties. If you need to run multiple AI clients against a shared account pool, this saves significant integration work.

Verdict

The project is functional and well-structured for its purpose, but the 81-star count and early version number mean it lacks the community vetting of mature projects. The documentation and error handling are solid, but test coverage is unclear and you should expect to dig into the code for edge cases. At 0.70% credibility, this is a promising experiment worth trying for personal or internal use -- just don't bet production traffic on it without running your own load tests first.

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.