{"id":50718173,"url":"https://github.com/LeenHawk/gproxy","last_synced_at":"2026-06-26T22:00:36.453Z","repository":{"id":337150136,"uuid":"1147156724","full_name":"LeenHawk/gproxy","owner":"LeenHawk","description":"gproxy is a Rust-based multi-channel LLM proxy that exposes OpenAI / Claude / Gemini-style APIs through a unified gateway, with a built-in admin console, user/key management, and request/usage auditing.","archived":false,"fork":false,"pushed_at":"2026-06-20T15:07:59.000Z","size":15983,"stargazers_count":155,"open_issues_count":1,"forks_count":28,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-20T15:27:32.517Z","etag":null,"topics":["claude","gemini","gpt","llm-proxy"],"latest_commit_sha":null,"homepage":"https://gproxy.leenhawk.com","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LeenHawk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"ko_fi":"leenhawk"}},"created_at":"2026-02-01T09:42:21.000Z","updated_at":"2026-06-20T01:53:12.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/LeenHawk/gproxy","commit_stats":null,"previous_names":["leenhawk/gproxy"],"tags_count":98,"template":false,"template_full_name":null,"purl":"pkg:github/LeenHawk/gproxy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeenHawk%2Fgproxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeenHawk%2Fgproxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeenHawk%2Fgproxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeenHawk%2Fgproxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LeenHawk","download_url":"https://codeload.github.com/LeenHawk/gproxy/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LeenHawk%2Fgproxy/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34834415,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-26T02:00:06.560Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["claude","gemini","gpt","llm-proxy"],"created_at":"2026-06-09T21:00:25.962Z","updated_at":"2026-06-26T22:00:36.448Z","avatar_url":"https://github.com/LeenHawk.png","language":"Rust","funding_links":["https://ko-fi.com/leenhawk"],"categories":["LLMOps","*Ops for AI"],"sub_categories":["LLM Gateways \u0026 Proxies","LLMOps"],"readme":"# GPROXY\n\n**A high-performance, multi-provider LLM proxy in a single Rust binary** — with\nan embedded React console, multi-tenant auth, and the same engine compiled to run\n**natively, in Docker, or on the serverless edge (WebAssembly)**.\n\nEnglish · [简体中文](README.zh_CN.md)\n\n- 🪪 **License:** AGPL-3.0-or-later · 🐳 **Image:** `ghcr.io/leenhawk/gproxy`\n- 🦀 **Targets:** native binary · Docker · edge wasm (Cloudflare / Deno / Netlify / Supabase / EdgeOne / Appwrite)\n- 🖥️ **Console:** built in, served at `/console`\n\n---\n\n## What it does\n\nGPROXY exposes a unified **OpenAI / Anthropic / Gemini-compatible** HTTP surface\non top of many upstream LLM providers, and adds everything you need to run it as a\nshared service:\n\n- **Multi-provider routing** — OpenAI, Anthropic, Gemini/Vertex, DeepSeek, Groq,\n  OpenRouter, NVIDIA, Vercel AI Gateway, Claude Code, Codex, and any\n  OpenAI-compatible custom endpoint.\n- **Two routing modes** — aggregated `/v1/...` (provider in the model name) and\n  scoped `/{provider}/v1/...` (provider in the URL).\n- **Cross-protocol translation** — an OpenAI client can talk to a Claude upstream\n  (and vice-versa); same-dialect requests take a minimal-parsing fast path.\n- **Multi-tenant auth** — users, API keys, glob model permissions, RPM/RPD/token\n  rate limits, USD quotas. Claude prompt caching, rewrite rules, circuit breakers.\n- **Pluggable storage** — SQLite / PostgreSQL / MySQL, optional at-rest encryption.\n- **Embedded console** — no separate frontend to deploy.\n\n---\n\n## Deploy\n\n### 🐳 One-click (Docker — recommended)\n\nFully self-contained: embedded console, file-based SQLite, no external services.\n\n[![Deploy to Koyeb](https://www.koyeb.com/static/images/deploy/button.svg)](https://app.koyeb.com/deploy?type=docker\u0026image=ghcr.io/leenhawk/gproxy\u0026ports=8787;http;/\u0026name=gproxy\u0026env[GPROXY_ADMIN_PASSWORD]=change-me-min12char)\n[![Deploy to Render](https://render.com/images/deploy-to-render-button.svg)](https://render.com/deploy?repo=https://github.com/LeenHawk/gproxy)\n\n```bash\ndocker run -p 8787:8787 -e GPROXY_ADMIN_PASSWORD=change-me-min12char ghcr.io/leenhawk/gproxy\n# then open http://localhost:8787/console  (admin / change-me-min12char)\n```\n\n\u003e **The admin password must be at least 12 characters** — the container exits on\n\u003e boot with `GPROXY_ADMIN_PASSWORD rejected` if it's shorter.\n\u003e\n\u003e **Reaching the console over plain HTTP from a non-`localhost` address** (LAN IP,\n\u003e server IP, tunnel)? The session cookie is `Secure` by default, so the browser\n\u003e drops it and the console bounces you straight back to the login page even with\n\u003e the right password. Add `-e GPROXY_INSECURE_COOKIES=1`, or put it behind HTTPS.\n\u003e Plain `http://localhost:8787` works as-is.\n\n### ☁️ Serverless edge (WebAssembly)\n\nThe same router runs as a wasm edge function on six platforms. Prebuilt,\nready-to-deploy bundles live on the [**`deploy` branch**](https://github.com/LeenHawk/gproxy/tree/deploy)\n(no toolchain needed — the platforms have no cargo). Edge functions need an\nexternal **Turso** control-plane DB (+ optional **Upstash** cache); full\nwalkthrough in **[docs/edge-deploy.md](docs/edge-deploy.md)**.\n\n[![Deploy to Cloudflare](https://deploy.workers.cloudflare.com/button)](https://deploy.workers.cloudflare.com/?url=https://github.com/LeenHawk/gproxy/tree/deploy/cloudflare)\n[![Deploy to Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/LeenHawk/gproxy\u0026branch=deploy\u0026create_from_path=netlify)\n\n| Platform | Bundle | Deploy |\n|---|---|---|\n| Cloudflare Workers | [`deploy/cloudflare`](https://github.com/LeenHawk/gproxy/tree/deploy/cloudflare) | one-click button ☝️ / `wrangler deploy` |\n| Netlify Edge | [`deploy/netlify`](https://github.com/LeenHawk/gproxy/tree/deploy/netlify) | one-click button ☝️ / `netlify deploy --prod` |\n| Deno Deploy | — | `deploy/deno/build.sh` (CLI) |\n| Supabase Edge | [`deploy/supabase`](https://github.com/LeenHawk/gproxy/tree/deploy/supabase) | `supabase functions deploy gproxy` (Docker/eszip, CLI) |\n| EdgeOne Pages | [`deploy/eopages`](https://github.com/LeenHawk/gproxy/tree/deploy/eopages) | `edgeone pages deploy` (CLI) |\n| **Appwrite Functions** | [`deploy/appwrite-deno`](https://github.com/LeenHawk/gproxy/tree/deploy/appwrite-deno) | `appwrite push functions` (deno-2.0, CLI) |\n\n### 📦 Native binary\n\nPre-built binaries (linux/macOS/windows, x86_64 + aarch64) ship on every\n[release](https://github.com/LeenHawk/gproxy/releases). Or `cargo build --release`.\n\n---\n\n## Configure\n\nGPROXY is configured by **environment variables**; live config then lives in the\ndatabase and is managed through `/console`.\n\n| Variable | Default | Purpose |\n|---|---|---|\n| `GPROXY_HOST` / `GPROXY_PORT` | `127.0.0.1` / `8787` | bind address |\n| `GPROXY_PERSISTENCE` | `file` | `file` (SQLite under `GPROXY_DATA_DIR`) or `db` |\n| `GPROXY_DSN` | — | DSN when `persistence=db` (Postgres/MySQL/SQLite) |\n| `GPROXY_MASTER_KEY` | — | unseal stored secrets (absent = plaintext) |\n| `GPROXY_ADMIN_USER` / `GPROXY_ADMIN_PASSWORD` | `admin` / random | first-boot admin |\n\n**Upgrading from v1?** Point a v2 binary at your existing v1 SQLite database and it\nmigrates in place on first boot (backing the old file up as `*.v1.bak`).\n\n---\n\n## First request\n\n```bash\n# Aggregated — provider/model in the body\ncurl http://127.0.0.1:8787/v1/chat/completions \\\n  -H \"Authorization: Bearer \u003cyour-key\u003e\" -H \"Content-Type: application/json\" \\\n  -d '{\"model\":\"openai-main/gpt-4.1-mini\",\"messages\":[{\"role\":\"user\",\"content\":\"Hello\"}]}'\n```\n\nOps endpoints (`/healthz`, `/version`, `/metrics`) are admin-gated.\n\n## Documentation\n\n- **[Edge deployment](docs/edge-deploy.md)** · **[Architecture](docs/architecture-design.md)** · **[Developer guide](docs/developers/README.md)**\n\n## License\n\n[AGPL-3.0-or-later](LICENSE) · Author: [LeenHawk](https://github.com/LeenHawk)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLeenHawk%2Fgproxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FLeenHawk%2Fgproxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FLeenHawk%2Fgproxy/lists"}