[LIVE] [WrongStack/WrongProxy] 3 endpoint(s)
ChatGPT
API Proxy/ChatGPT
2,424 characters
Status: [UNTESTED]
Endpoints found:
http://localhost:8000/proxy/api.openai.com/v1/chat/completions
http://localhost:8000/proxy/api.openai.com/v1/chat
http://localhost:8000/proxy/api.z.ai/api/coding/paas/v4/chat
http://localhost:8000/proxy/api.anthropic.com/v1/messages
http://localhost:8000/proxy/generativelanguage.googleapis.com/v1beta/models/gemini-2.0:generateContent
Source: https://github.com/WrongStack/WrongProxy
# WrongProxy
A transparent reverse proxy for AI model APIs. Point your client at WrongProxy instead of the provider, and it records every request — tokens, cost, prompt-cache behavior, tool calls — while serving a structured viewer and a live dashboard.
- **Zero configuration** — runs on `:8000` out of the box, keeps state in `~/.wrongproxy/`, requires no `.env`, and holds no provider credentials. (Optional: override the port with `-port` or `PORT`.) Client `Authorization` headers are forwarded verbatim.
- **models.dev catalog** — request URLs are matched against synced provider base URLs to resolve provider / model / family, even for relays and coding-plan endpoints.
- **Provider-faithful cache metrics** — upstream prompt-cache hits (OpenAI `cached_tokens`, Anthropic `cache_read`/`cache_creation`, Gemini `cachedContent`) are normalized into comparable hit ratios and USD savings.
- **Structured request viewer** — message timeline, tool definitions/calls/results, reasoning blocks and parameters rendered as UI, not raw JSON dumps. Wire shape (OpenAI / Anthropic / Gemini) is detected per request, including Anthropic-shaped relays behind generic routing.
- **SSRF-safe transparent routing** — public HTTPS destinations are resolved and validated at dial time; loopback, private, link-local, metadata and other IANA special-purpose ranges are rejected.
## Installation
Requires Go ≥ 1.23 and Node.js (for the web UI).
```bash
# build backend + webui, then run
make run
# or the plain binary (webui bundle served if webui/dist exists)
make build && ./bin/wrongproxy
# parallel dev mode: go run + vite
make dev
```
A `dev.sh` wrapper is also available: `./dev.sh start | stop | restart | status`.
### Port configuration
The listen port defaults to `:8000` and can be overridden two ways:
```bash
./bin/wrongproxy -port 9000 # flag wins over the environment
PORT=9000 ./bin/wrongproxy # environment variable
```
Precedence: `-port` > `PORT` > `8000`. Invali