Sign inSign up

openray/eko

By openray

โ€ขUpdated 4 months ago

Image
0

532

openray/eko repository overview

โ ๐Ÿ›ก๏ธ Ekล

Open-source, context-aware security proxy that prevents leaking sensitive data to AI services โ€” with first-class detectors for African regulated domains.

Ekล sits between your application and an AI provider, detects sensitive data in prompts, and either redacts or tokenizes it before it leaves your environment.

๐ŸŽฎ Try the live playground โ†’โ  ย ยทย  ๐Ÿ“ฆ Source & full docs on GitHub โ†’โ 


โ ๐Ÿš€ Quick start

docker run --rm -p 8080:8080 openray/eko:main-latest

Verify it is up:

curl http://localhost:8080/health
curl http://localhost:8080/ready

Sanitize a prompt:

curl -X POST http://localhost:8080/v1/sanitize \
  -H "Content-Type: application/json" \
  -d '{"prompt":"My BVN is 12345678901 and email is [email protected]"}'

โ ๐Ÿท๏ธ Supported tags & architectures

TagDescription
main-latestLatest build from the main branch
latestSame image as main-latest
sha-<commit>Immutable build pinned to a specific commit

Architectures: multi-arch manifest โ€” linux/amd64 and linux/arm64 (runs natively on Apple Silicon / ARM servers and x86).


โ ๐Ÿ”Œ OpenAI-compatible proxy

Point the OpenAI SDK at Ekล โ€” only the base URL changes:

export OPENAI_BASE_URL="http://localhost:8080/v1"

Routes: POST /v1/chat/completions, POST /v1/responses, plus the core POST /v1/sanitize. Ekล forwards the sanitized request to the configured upstream.


โ ๐ŸŽจ Run with your own configuration

docker run -d \
  -p 8080:8080 \
  -v $(pwd)/configs/config.yaml:/app/configs/config.yaml:ro \
  -v $(pwd)/patterns:/app/patterns \
  openray/eko:main-latest

Start from configs/config.example.yaml in the repo. For a Redis-backed token vault and the optional contextual SLM sidecar, use Docker Compose โ€” see the GitHub READMEโ .

Secrets: never bake local_master_key, Vault tokens, or provider API keys into the image โ€” inject them at deploy time via your secrets manager.


โ ๐ŸŒ What gets detected

  • Credentials & secrets โ€” API keys (OpenAI, Anthropic, Google, AWS, Azure), database connection strings, JWT/OAuth, SSH keys, env-style secrets (API_KEY=, PASSWORD=)
  • PII โ€” Nigerian (BVN, NIN, NUBAN, +234), Kenyan (M-Pesa, ID, +254), South African (ID, +27), Ghanaian (Mobile Money, +233), plus emails, IBAN, SWIFT/BIC
  • Financial โ€” credit card numbers, bank accounts, transaction references
  • Custom business patterns โ€” your own regex rules under patterns/custom

Optional contextual detection of person names and addresses via an opt-in Small Language Model sidecar.


โ ๐Ÿ“Š Monitoring

Prometheus-compatible metrics at GET /metrics; liveness and readiness at /health and /ready. A container HEALTHCHECK is built in.



Ekล (Yoruba): "to guard, to protect" โ€” built with โค๏ธ in Africa, for the world.

Tag summary

Content type

Image

Digest

sha256:7fe7fbd2dโ€ฆ

Size

12.2 MB

Last updated

4 months ago

docker pull openray/eko