File size: 1,258 Bytes
eec0c73
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
---
title: glmgate  Free GLM Reverse Proxy
emoji: 🦎
colorFrom: gray
colorTo: green
sdk: docker
app_port: 7860
---

# glmgate

A **fully‑automated** OpenAI‑compatible reverse proxy for the free GLM chat at <https://chat.z.ai>. 

- No API keys required – accounts are created on‑the‑fly using temporary email addresses.
- Captcha handling is done with Playwright (headful, Xvfb).
- Tokens are refreshed automatically; dead accounts are replaced without user involvement.
- Comes with a **Svelte SPA dashboard** to monitor accounts, models, request rate and live logs.
- Deploys on a **free Hugging Face Space** (CPU‑only, port 7860).

## Quick start (local dev)
```bash
# Build frontend
cd frontend && npm ci && npm run build
# Install backend deps and run
cd ..
pip install -r requirements.txt
uvicorn main:app --host 0.0.0.0 --port 7860
```

The dashboard will be reachable at <http://localhost:7860>.

## Deploy to Hugging Face Spaces
The repository already contains a multi‑stage Dockerfile that builds the frontend and bundles the FastAPI backend with Playwright.
Just create a new Space, point it at this repo and enable the **Docker** runtime. The Space will automatically build and start.

---
*Built with love by DEV & Fickito.*