AI & Machine Learning · Machine Learning Infrastructure
Grepture
An AI gateway for tracing, evals, and data protection
Grepture combines an AI traffic proxy, TypeScript SDK, and command-line scanner for request tracing, PII handling, prompt security, and cost tracking. Its documented repositories use AGPL-3.0. Grepture Cloud offers hosted gateway and observability features, while local scanning works offline and without an account. Cloud pricing is not published.
Key facts
- License
- AGPL-3.0
- Main language
- TypeScript
- Maintainer
- Grepture, with benmann as top documented contributor
- Latest release
- No tagged release published
- GitHub stars
- 10, October 2026
- Hosted option
- Grepture Cloud, pricing not published
What Grepture is
Grepture combines an AI gateway proxy, a TypeScript SDK, and a developer CLI. The GitHub organization lists Germany as its location, and benmann is the top contributor across the documented repositories. The repositories first appear in 2026: proxy and SDK on February 15, followed by CLI on February 25. The proxy lists 10 stars, the SDK 1, and the CLI 0. The project describes integrations with OpenAI, Anthropic, Google AI, Azure OpenAI, Cohere, Mistral, AWS Bedrock, Hugging Face, Groq, and Replicate. The website presents Grepture as an EU-hosted service and offers self-hosting for the gateway. The documented repositories identify Grepture as the organization behind the software, with benmann the only named top contributor in the repository summaries.
How it works
Grepture's typical workflow places policy checks and telemetry around an AI request. In proxy mode, an application sends traffic to Grepture, which authenticates the request, applies input rules, forwards it to an upstream provider, applies output rules, restores tokenized values, and returns the response. Rules can match headers, bodies, URLs, or models. Actions include PII redaction, text replacement, tokenization, field redaction, request blocking, and logging. Rules can target input, output, or both, with sampling rates from 1 to 100 percent. The proxy supports buffered and server-sent event responses, including token restoration across streamed chunks. The SDK adds labels, metadata, trace IDs, custom events, and flush support for serverless or short-lived processes.
Architecture and recent releases
The documented implementation is primarily TypeScript, with Docker used for proxy packaging and Bun used for local execution, installation, and development. The SDK has zero dependencies and supports Node, Bun, Deno, and edge runtimes. The CLI installs through Bun and can build a standalone binary. A local proxy listens on port 4001 by default, while the CLI development gateway uses port 8787. Trace mode sends calls directly to providers and asynchronously records model, token, latency, cost, and status metadata. The website also describes traffic logs, prompt management, cost tracking, and built-in evals with six templates. No tagged release version is listed in the documented repositories. The repository records show creation dates in February 2026, with no documented 2025 release.
License and pricing
The documented repositories use GNU Affero General Public License v3.0, represented as AGPL-3.0. This license permits commercial use, modification, and redistribution subject to its copyleft conditions, including obligations that can apply to modified network software. The documentation describes no separate enterprise license or open-core split. Grepture Cloud adds hosted gateway access, observability, cost tracking, prompt management, team rules, AI-powered entity recognition, and machine-learning security analysis. The local scanner works offline and includes PII, secret, prompt-injection, and unsafe AI usage checks. The website describes EU hosting, zero-data mode, and self-hosting. It does not publish monthly Cloud, enterprise, or support prices. Larger logged bodies can use S3-compatible storage configured through environment variables.
Limitations and how it compares
Grepture's documented footprint is small, with 10 stars on the proxy, 1 on the SDK, and 0 on the CLI, plus no tagged release version. The software offers a focused request path for redaction, tokenization, blocking, tracing, and streaming, but the documentation gives no production benchmark or hardware baseline. Compared with LiteLLM, Grepture emphasizes PII handling, prompt security, and code scanning, while LiteLLM is a broader gateway alternative. Compared with Portkey, Grepture publishes AGPL-3.0 repositories and an offline scanner, while Portkey is proprietary. Compared with Langfuse, Grepture adds request-time policy enforcement rather than concentrating on observability. Teams wanting inspectable TypeScript components and local security checks should choose Grepture; teams needing a longer release history should compare alternatives.
Main features
- PII rule processing. Detects emails, phones, SSNs, cards, IP addresses, physical addresses, and dates of birth with configurable rules.
- Reversible tokenization. Replaces selected JSON fields with tokens, stores originals for restoration, and supports restoration across streamed chunks.
- LLM traffic proxy. Routes OpenAI, Anthropic, and other provider requests through authentication, input rules, forwarding, and output rules.
- Trace mode. Sends requests directly to providers while asynchronously recording model, token, latency, cost, and status metadata.
- Developer security scanner. Scans code for PII, secrets, prompt injection patterns, unsafe AI usage, and database connection strings.
- CI and git hooks. Scans staged files or changed files, blocks commits by severity, and emits text, JSON, or SARIF output.
- Prompt and cost tracking. Provides prompt management, traffic logs, request traces, model token counts, latency details, and cost tracking through Cloud.
Self-hosting Grepture
The proxy runs directly with Bun or inside Docker. The documented setup copies rules.example.json, starts src/index.ts, and listens on port 4001 by default. Docker uses a locally built image and mounts rules.json into the container. Cloud-mode persistence can use S3-compatible storage through R2_ENDPOINT, R2_ACCESS_KEY_ID, R2_SECRET_ACCESS_KEY, and R2_BUCKET. Local runs write bodies to stdout and use a default 10MB per-request memory limit. Cloud logs keep bodies inline up to 50KB, offloading larger bodies when configured. The project documents no PostgreSQL, Redis, Helm chart, package-manager service, minimum CPU, minimum memory, upgrade procedure, or backup procedure.
Strengths
- The proxy applies PII redaction and blocking before requests reach an AI provider.
- The SDK supports proxy and direct trace modes across Node, Bun, Deno, and edge runtimes.
- The CLI provides offline scanning, pre-commit hooks, CI output, and SARIF integration.
- The proxy supports buffered and server-sent event responses with streamed token restoration.
Drawbacks
- The documented repositories have few stars and no tagged release version.
- Cloud and gateway features require an account, while pricing is not published.
- The documentation omits minimum hardware, database requirements, and a formal backup or upgrade procedure.
What teams replace with it
Teams usually evaluate Grepture when they want to move off Portkey, Helicone, Langfuse Cloud.
For side-by-side commercial comparisons, browse our alternatives hub.
Open-source alternatives to Grepture
- LiteLLM
- Langfuse
- OpenLLMetry
- Bifrost
- OpenRouter
Frequently asked questions
Is Grepture free?
The local scanner is documented as fully functional, offline, and free. Git hooks, CI scanning, local rules, PII detection, secret detection, prompt-injection patterns, and unsafe AI usage checks are included locally. The gateway, observability, cost tracking, prompt management, and other Cloud features require a Grepture account. Cloud pricing is not published.
Can businesses use Grepture under its license?
Yes. The documented repositories use AGPL-3.0, which permits commercial use, modification, and redistribution subject to the license's copyleft requirements. The documentation describes no separate enterprise license or open-core split. Teams embedding or modifying the service should review AGPL-3.0 obligations for their deployment and distribution model.
How do I self-host Grepture, and what does it require?
The proxy starts with Bun using src/index.ts or runs from a Docker image on port 4001. Configuration uses rules.json and environment variables. S3-compatible storage is optional for cloud-mode body offload. The project documents no PostgreSQL, Redis, Helm installation, minimum hardware, backup process, or upgrade procedure.
How does Grepture compare with LiteLLM?
Grepture combines an LLM proxy with PII redaction, tokenization, blocking, a security scanner, git hooks, CI output, prompt management, tracing, and cost tracking. LiteLLM is a named open-source alternative for the gateway category, but the documented Grepture content gives no direct performance comparison. Choose Grepture when request-time data protection and local scanning are central.
Does Grepture protect data and support private deployment?
The proxy can redact or tokenize data before forwarding it, and the website describes zero-data mode, which stores operational metadata without request content. The site says Grepture infrastructure is hosted in the EU. Self-hosting is supported through the proxy's Docker and Bun instructions. Local-mode bodies go to stdout, while persistent Cloud logs rely on configured storage controls.
Similar projects to compare
- LiteLLMMIT (core); proprietary enterprise licenseLiteLLM is an open source Python SDK and gateway for calling more than 100 model providers through one interface. The project is MIT licensed outside its enterprise directory, and self-hosting costs $0. LiteLLM also sells a separately licensed Enterprise edition for governance and support, with annual pricing based on request capacity, architecture, and support needs rather than token volume.
- LangfuseMIT, except ee foldersLangfuse is an open source platform for tracing, evaluating, and improving LLM applications. It collects traces from model calls, retrieval, embeddings, and agent actions, while providing prompt management, evaluation workflows, and a playground for testing changes. The repository is MIT licensed except for ee folders. Teams can self-host with Docker Compose or Kubernetes and use Langfuse Cloud, which offers a free Hobby plan and paid plans starting at $29 per month.
- OpenLLMetryApache-2.0OpenLLMetry is an Apache-2.0 Python project from Traceloop that instruments LLM providers, application frameworks, vector databases, APIs, databases, and other dependencies. It exports portable OpenTelemetry traces to Traceloop Cloud, collectors, or supported observability platforms. Teams can inspect requests, responses, token usage, latency, errors, and surrounding workflows while disabling prompt and completion attributes when needed. The optional Traceloop Cloud plan supports up to 50,000 spans monthly at no cost.
- BifrostApache-2.0Bifrost is an Apache-2.0 Go gateway for applications that need one OpenAI-compatible API across more than 20 model providers. It supports routing, failover, budgets, caching, observability, and MCP controls. The free OSS edition is self-managed, while Maxim offers a custom-priced Enterprise edition with a 14-day trial.
- AgentaMITAgenta is an agent workspace for teams that build, share, schedule, and monitor AI agents through chat, connected tools, and messaging apps. Its repository README describes the project as MIT licensed. Agenta offers a hosted Cloud service with a free Hobby tier and paid plans from $29 per month, plus a free self-hosted edition.
- Arize PhoenixElastic License 2.0 (source-available)Arize Phoenix is a self-hosted platform for tracing, evaluating, testing, and debugging LLM applications, aimed at developers and AI engineering teams. It uses Elastic License 2.0, a source-available license, and has no Phoenix license fee. Arize offers the separate AX service with a free tier, a $50 per month Pro tier, and custom Enterprise pricing.