Skip to main content

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.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for promptreview-proxy 0.1.3
File Size Uploaded
promptreview_proxy-0.1.3.tar.gz 6.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for promptreview-proxy 0.1.3
File Interpreter ABI Platform
promptreview_proxy-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size: 14.7 kB

Release files / promptreview_proxy-0.1.3.tar.gz

Download URL promptreview_proxy-0.1.3.tar.gz
Size 6.9 kB
Tags Source
SHA-256 checksum
How to use checksums
439916bd4879e457679bcc3ba9788eafcbf5b49196832018f5d2ceda607eb7e0
BLAKE2b-256 checksum
How to use checksums
bc2eeaa5ced54f64be6a24c2029eff643ae97cb7f4d4bfb6b17aa78e74311250
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.3-py3-none-any.whl

Download URL promptreview_proxy-0.1.3-py3-none-any.whl
Size 7.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c69ace2aa7c5240d0cb994904cbc078b801c74a9b201c040cdd28c799ca3cc2e
BLAKE2b-256 checksum
How to use checksums
b91ba8bb53873fbeacc4b8c4d4ad933ed570a0f02a783b06c04742f94db668b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.13.7

Release history Release notifications | RSS feed

0.1.11

1 release file

0.1.10

1 release file

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page