PromptReview Proxy (promptreview-proxy)
promptreview-proxy is a lightweight, local HTTP proxy forwarding server for the PromptReview VS Code Extension.
Features
- Local HTTP Proxying: Intercepts outbound LLM traffic from VS Code (
http.proxy). - Cloud Analytics Relay: Asynchronously logs prompt metadata to your API subdomain (
https://api.prompt-guard-ai.com/v1/prompts). - Dynamic Provider Routing: Forwards requests to target LLM providers (OpenAI, Anthropic, Groq, Ollama, etc.) and streams responses back to VS Code.
Quick Start
Installation
pip install promptreview-proxy
Usage
Run the proxy server from command line:
promptreview-proxy
Model routing
The VS Code model identifier is not necessarily an OpenAI API model name. The proxy sends LLM_DEFAULT_MODEL (default gpt-4o) unless an explicit alias is configured in LLM_MODEL_ROUTE_MAP.
For example, to route a VS Code model named Raptor to OpenAI's gpt-4o model:
export LLM_DEFAULT_MODEL=gpt-4o
export LLM_MODEL_ROUTE_MAP='{"raptor":"gpt-4o"}'
Or configure environment variables:
export PROXY_PORT=6767
export API_BASE_URL="https://api.prompt-guard-ai.com"
promptreview-proxy
Release files for promptreview-proxy 0.1.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| promptreview_proxy-0.1.7.tar.gz | 8.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| promptreview_proxy-0.1.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 17.3 kB
Release files / promptreview_proxy-0.1.7.tar.gz
| Download URL | promptreview_proxy-0.1.7.tar.gz |
|---|---|
| Size | 8.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
94b48a83ad77dcd23851e909e996a662edecf7b8fa617d0583a6f1f2ad5cf3b0
|
|
BLAKE2b-256 checksum How to use checksums |
1630ad7cefa871c2c4bbe54231dd2ea90f114730f64a47a183020c226341e30d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|
Release files / promptreview_proxy-0.1.7-py3-none-any.whl
| Download URL | promptreview_proxy-0.1.7-py3-none-any.whl |
|---|---|
| Size | 9.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e1387bec49ca3136784c66e0526cdaaf1bb4eb97830ee9ccfd03a50eb35a460e
|
|
BLAKE2b-256 checksum How to use checksums |
b6c48430a5ebb9888cd5b4c3aec4cc452c89484c603c0466c8fd9d2762f63ae0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.7
|