Status: [LIVE] Endpoints found: https://api.openai.com/v1/models Source: https://github.com/bbrowning/paude-proxy # paude-proxy **Keep your API keys out of untrusted code.** paude-proxy is a credential-injecting HTTPS proxy — it holds your real API keys and injects them into outgoing requests based on the destination domain. Your application sends requests with dummy credentials; the proxy swaps in the real ones before they hit the wire. The application never sees, stores, or can exfiltrate valid credentials. ``` Your app paude-proxy api.openai.com (no real credentials) (has real credentials) | | |-- Authorization: dummy -->|-- Authorization: Bearer sk-REAL-KEY | |-- forwards to upstream |<-- response --------------|<-- upstream response ``` This is especially useful for **AI coding agents** (Claude Code, Cursor, Gemini CLI) running in sandboxed containers, but works for any scenario where you want to broker API credentials without exposing them to the calling code. ## Quick Start Requires Go 1.23+. ```bash # Build make build # Start the proxy with your real OpenAI key OPENAI_API_KEY=sk-your-real-key \ ALLOWED_DOMAINS=.openai.com \ PAUDE_PROXY_CA_DIR=/tmp/proxy-ca \ ./bin/paude-proxy ``` In another terminal: ```bash # Make a request through the proxy — your real key is injected automatically curl --proxy-cacert /tmp/proxy-ca/ca.crt \ -x http://localhost:3128 \ https://api.openai.com/v1/models # The request arrives at OpenAI with "Authorization: Bearer sk-your-real-key" # even though curl never knew the real key ``` That's it. Any HTTPS client that speaks `HTTP CONNECT` can use the proxy. ## How It Works paude-proxy is a man-in-the-middle (MITM) HTTPS proxy built on [goproxy](https://github.com/elazarl/goproxy). When a client connects: 1. Client sends `CONNECT api.openai.com:443` 2. Proxy terminates TLS using a generated CA certificate (the client must trust this CA) 3. Client sends the HTTP request (with dummy or no credentials) 4.