Dev.to
7/17/2026

How I built an OpenAI-compatible prompt encryption proxy in 300 lines of Python
Short summary
A developer who sells GPT prompts built a 300-line Python proxy using FastAPI and httpx that injects system prompts server-side, so buyers never see the prompt text. The proxy is OpenAI-compatible with streaming SSE support, bearer key auth, and works with clients like ChatBox and Cursor. The open-source Lite version is on GitHub; a paid Pro version adds encrypted storage and multi-tenant support.
- •300-line FastAPI proxy injects system prompts server-side, preventing prompt theft
- •OpenAI-compatible API with streaming SSE, bearer auth — buyers point their client at your URL
- •Mistakes and fixes covered: SSE format re-emission, system prompt prepending, timeout tuning
Generated with AI, which can make mistakes.
Is this a good recommendation for you?



