One base URL across every provider
Switch between Anthropic, OpenAI, Gemini, Grok, and OpenAI‑compatible endpoints from a single gateway - no rewiring agents or juggling SDKs.
progy is a metered AI gateway you self-host in front of your own Anthropic, OpenAI, Gemini, Grok, and OpenAI-compatible keys. Point any agent at one base URL - progy meters tokens, tracks cost, and routes across providers.
Your keys.·Your infrastructure.·Your data.
self-host progy on your own provider keys - clone, set your keys, docker compose up, point your agent at your instance. The status dot above tracks x.progy.ai - a live instance of this exact self-hosted stack.
# 1. clone and configure with YOUR provider keys $ git clone https://github.com/whatl3y/progy && cd progy $ cp .env.example .env # set ANTHROPIC_API_KEY / OPENAI_API_KEY / … # 2. bring up the stack (postgres + redis + proxy on :8080) $ docker compose up -d # 3. issue yourself a progy key (admin), then point your agent at it $ export ANTHROPIC_BASE_URL=https://x.progy.ai $ export ANTHROPIC_AUTH_TOKEN=progy_sk_… # Bearer; bypasses Claude Code's OAuth picker $ claude # …prefer codex? add your instance as a provider, then run it $ cat >> ~/.codex/config.toml <<'TOML' model = "gpt-5-codex" model_provider = "progy" [model_providers.progy] base_url = "https://x.progy.ai/v1" wire_api = "responses" env_key = "PROGY_API_KEY" TOML $ codex
progy is a self-hosted reverse proxy you run on your own Anthropic, OpenAI, Gemini, Grok, and OpenAI‑compatible keys. Your agents talk to one base URL; progy injects your real provider key, meters every request to the token, and tracks cost in integer micro‑USDC. You operate the instance, so your keys, your traffic, and your data stay on infrastructure you control.
Switch between Anthropic, OpenAI, Gemini, Grok, and OpenAI‑compatible endpoints from a single gateway - no rewiring agents or juggling SDKs.
Per-request token metering and cost accounting in integer micro‑USDC - no float drift, full per-request usage history for your own spend.
Issue keys with their own balance ceiling for each agent, teammate, or CI job - a hard cap on spend and no shared provider account to expose. Revoke anytime.
Set one base URL and one token. Existing Anthropic / OpenAI SDKs and coding agents work unchanged against your instance.
progy holds your provider keys server-side and forwards traffic. By default it does not persist prompt or response bodies - only token counts and metadata.
The metered card / USDC top-up path is in the tree but experimental. Charging third parties for access makes you a provider Customer with real obligations - read OPERATING.md before enabling it.