Skip to content

Jev directory

JEV Safety Gateway

A pre-filtering reverse proxy that sits between nginx and an OpenAI-compatible LLM backend: it extracts user input from each request, asks TypeSafe's JEV whether it is harmful, blocks risky ones with a 403 and passes normal ones through unchanged, streaming included.
Stars
19
Language
Go
License
AGPL-3.0
Reading time
3 min
Published by
Community
Author
dark-hxx
Last verified
Oct 2026
Languages
Go
Platforms
APISQLite
Capabilities
Open sourceSelf-hostedRequires API key

Highlights

  • Covers OpenAI, Anthropic and Gemini request shapes: chat completions, messages, rerank and generateContent, plus a fallback for other paths.
  • Strips client-injected context like <system-reminder> blocks and decodes base64 segments before judging, so encoded payloads cannot dilute the safety signal.
  • Rotates multiple TypeSafe API keys on 401/429/529 and can fail open or fail closed when JEV itself is unavailable.
  • record_snippet defaults to off: audit records keep verdicts, scores and reasons but not submitted text, all in SQLite behind an admin password login.
  • Deploys with one docker run; both ports publish to 127.0.0.1 only so a local nginx fronts the proxy and source-IP spoofing stays blocked.

Quickstart

bash
mkdir -p ./data ./geoip && sudo chown -R 10001:10001 ./data
docker run -d --name jev-safety-gateway --restart unless-stopped \
  -p 127.0.0.1:8080:8080 -p 127.0.0.1:8081:8081 \
  -v "$PWD/data:/data" -v "$PWD/geoip:/geoip:ro" \
  ghcr.io/dark-hxx/jev-safety-gateway:latest

Watch out

Grounded in the repository README (primarily Chinese) and GitHub metadata reviewed on 2026-10-15; the README publishes no latency or accuracy benchmarks, the public demo uses the shared password 123456 and must not carry real JEV keys or traffic, and the project is AGPL-3.0-or-later.

Questions about this entry

Short answers drawn from the linked project or page.

Reactions & coverage

Posts, threads, and videos about this entry from around the web.

X: Jev 1.14 is now on OpenRouter

YouTube: Building a contextual brand-safety scorer on Jev from scratch.

X: A website slop detector that checks 35 tells in 243 ms

X: Breaking, golden nugget, or slop

From the Jev guides

Original write-ups on what this entry is for.

From the Jev AI model community

Posts from builders shipping with Jev right now.

Follow @typesafeai