[UNTESTED] [blue126/unified-proxy] 5 endpoint(s)
ChatGPT
API Proxy/ChatGPT
2,152 characters
Status: [LIVE]
Endpoints found:
https://chatgpt.com/backend-api/codex/models?client_version=0.157.0
Source: https://github.com/blue126/unified-proxy
# Unified Proxy
> **LiteLLM migration in progress:** The [migration guide](docs/litellm-migration.md)
> contains the new gateway configuration and staged cutover. The Node service
> described below remains the production runtime until the separate cutover.
A self-hosted OpenAI-compatible API proxy that routes requests to **Anthropic Claude** and **OpenAI GPT** using OAuth subscriptions — no API credits needed.
- **Anthropic**: Claude Max subscription via PKCE OAuth
- **OpenAI**: ChatGPT Plus/Pro subscription via PKCE OAuth (ChatGPT Backend)
- **Auto-routing**: model name prefix determines the provider automatically
- **Auto-refresh**: tokens refreshed silently in the background
- **OpenAI-compatible API**: drop-in replacement — just change the base URL
---
## Prerequisites
- Node.js >= 20
- At least one active subscription:
- Anthropic Claude Max (for Claude models)
- ChatGPT Plus or Pro (for GPT/o-series models)
---
## Quick Start (local)
```bash
# 1. Clone and enter the directory
git clone <repo-url>
cd unified-proxy
# 2. Log in (OAuth, requires a browser)
node server.js --login all # both Anthropic + OpenAI
# or individually:
node server.js --login # Anthropic only
node server.js --login openai # OpenAI only
# 3. Start the proxy (no PROXY_API_KEY needed locally — auth is disabled)
node server.js
# 4. Verify
curl http://localhost:3456/health
curl http://localhost:3456/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{"model":"claude-haiku-4-5","messages":[{"role":"user","content":"Hi"}]}'
```
---
## API Endpoints
All endpoints are exposed at `https://<your-domain>` (or `http://localhost:3456` locally).
### Health Check
```
GET /health
GET /
```
Returns status of both providers and token expiry. **No API key required.**
```bash
curl https://your-proxy.example.com/health
```
```json
{
"status": "ok",
"version": "5.0.0",
"mode": "unified-proxy",
"features": ["anthropic-oauth", "openai-oauth", "a