3,672 prompts from top AI collections
← Back to Market
[UNTESTED] [MM-sheng/zeroleak-llm-proxy] 1 endpoint(s)
ChatGPT API Proxy/ChatGPT
2,136 characters
Status: [UNTESTED] Endpoints found: http://localhost:8787/v1/chat/completions Source: https://github.com/MM-sheng/zeroleak-llm-proxy # ZeroLeak LLM Proxy OpenAI-compatible privacy proxy for LLM API calls. It redacts secrets and personal data before prompts leave your machine, forwards the sanitized request to a model provider, then restores placeholders in the response. This project is an MVP for developers who want to use cloud LLM APIs without accidentally sending API keys, tokens, emails, phone numbers, database URLs, or private keys to the model provider. ## What It Does - Accepts OpenAI-compatible `POST /v1/chat/completions` requests. - Redacts sensitive values in `messages`, `tools`, and common string fields. - Forwards the sanitized request to an OpenAI-compatible upstream API. - Restores placeholders in the model response before returning it. - Avoids writing prompts or responses to disk. - Includes a local CLI redaction demo. ## Why Developers increasingly paste source code, logs, `.env` files, stack traces, and customer data into AI tools. A small proxy layer can reduce accidental leakage while keeping the normal OpenAI API workflow. This is not a replacement for confidential computing or true encrypted inference. The goal is narrower and immediately useful: > Prevent sensitive strings from being sent to third-party LLM providers. ## Quick Start ```bash npm test cp .env.example .env npm start ``` In another terminal: ```bash curl http://localhost:8787/v1/chat/completions \ -H "Content-Type: application/json" \ -H "Authorization: Bearer local-dev-key" \ -d '{ "model": "gpt-4o-mini", "messages": [ { "role": "user", "content": "Review this config: OPENAI_API_KEY=sk-proj-example123 and email me at alice@example.com" } ] }' ``` ## Environment ```bash UPSTREAM_API_KEY=your_provider_key UPSTREAM_BASE_URL=https://api.openai.com PORT=8787 ``` Any OpenAI-compatible provider can be used by changing `UPSTREAM_BASE_URL`. ## CLI Demo ```bash npm run redact -- "Email alice@example.com and use token sk-proj-secret123" ``` Example output:
Download .txt