qmetrics.net

Grepture

Open-source LLM gateway that redacts PII before requests reach providers

Grepture screenshot

A proxy between an app and LLM APIs such as OpenAI and Anthropic. It detects and redacts PII, blocks or tokenizes sensitive content, restores values in responses, and logs traffic.

Overview

Grepture is an open-source AI gateway that sits between an application and an LLM provider such as OpenAI, Anthropic or Gemini. Requests are sent through the proxy with an X-Grepture-Target header naming the upstream API. The proxy applies rules to the request, forwards it, applies rules to the response, and returns the result to the client.

Rules are defined in a JSON file and can match on headers, body, URL or model. Actions include PII redaction using regex patterns (email, phone, SSN, credit card, IP, address, date of birth), find and replace, tokenizing JSON fields, replacing fields with a fixed value, blocking a request with a custom status, and log-only tagging. Each rule can apply to input, output or both, with a sampling rate. The rules file reloads when it changes or on SIGHUP.

Tokenized values are swapped for placeholders before the request leaves and restored in the response, including across streamed SSE chunks. The model sees tokens instead of real data, while the application gets a normal answer. The website also describes per-agent tool restriction, tracing, evals, cost tracking and a zero-retention mode.

Traffic logging covers request and response bodies. In local mode they are written to stdout. In cloud mode, bodies larger than 50KB are offloaded to S3-compatible object storage, with a 5KB preview kept in the database. Configuration uses environment variables for the port, an optional API key, the rules file path, optional plugin modules and the storage settings. The project can be self-hosted, and a hosted EU option is also offered.

Key features

  • PII detection and redaction
  • Tokenization with restoration in responses
  • Request blocking rules
  • Find and replace rules
  • Streaming (SSE) support
  • Hot-reloaded JSON rules
  • Request and response body logging
  • Plugin modules

Use cases

  • Keep personal data out of prompts sent to LLM providers
  • Block sensitive requests before they reach an API
  • Log and trace LLM traffic
  • Restrict which tools an agent may call

Open-source alternative to

Lakera Guard
“Lakera Guard Alternative for PII Redaction in LLM Apps: Grepture” source
Limina
“Private AI / Limina Alternative for LLM Redaction: Grepture” source
Nightfall AI
“Nightfall AI Alternative for LLM Prompt Redaction: Grepture” source
Skyflow
“Skyflow Alternative for AI PII Redaction: Grepture (Self-Serve, Open Source)” source

Tags

Compare Grepture

Similar software

Concrete

Python FHE compiler built on TFHE and LLVM

Concrete compiles Python functions into homomorphic encryption circuits so developers can compute on ciphertext. It offers a Python API, GPU acceleration, and automatic parameters.

★ 1.6k⟳ 1 year agoBSD-3-Clause
AI Security & PrivacyDesktop/CLI app

Strix

AI-driven penetration testing for developers

Strix runs autonomous AI agents that probe applications like attackers, validate issues with proofs of concept, and integrate into CLI and CI workflows.

★ 78k⟳ todayApache-2.0
AI Security & PrivacyDesktop/CLI app
Open Source Alternative to:XBOW

uBlock

Lean wide-spectrum content blocker for Chromium and Firefox

uBlock Origin is a browser extension that blocks ads, trackers, miners, popups, malware sites, and similar content using filter lists and custom rules.

★ 69.8k⟳ todayGPL-3.0
Browsers & ExtensionsDesktop/CLI app

Win11Debloat

PowerShell declutter tool for Windows 10 and 11

Win11Debloat is a no-install PowerShell script that removes bundled apps, limits telemetry, and applies registry and UI tweaks on Windows 10 and 11.

★ 63.8k⟳ 12 days agoMIT

PrivateGPT

Local API layer for private RAG and agent apps

PrivateGPT is an open API that sits above any OpenAI-compatible inference server. It adds ingestion, retrieval with citations, tools, MCP, databases, and a workbench UI for demos.

★ 57.7k⟳ 2 days agoApache-2.0

iFixAi

Independent auditor for agent operational alignment

iFixAi tests AI agents against simulated business scenarios and grades replies. A separate judge model scores misalignment, with CLI, plugins, and MCP workflows for coding agents.

★ 47.6k⟳ 7 days agoApache-2.0
AI Security & PrivacyDesktop/CLI app