Back to browse
GitHub Repository

Bring your own key (BYOK) relay to enable lightweight frontend-only apps to use LLMs using the user's API keys without hitting CORS.

50 starsJavaScript

Byok-relay – self-hosted proxy for BYOK LLM apps without CORS issues

by avikalp·Apr 30, 2026·1 point·0 comments

AI Analysis

MidShip It

Simple relay proxy for BYOK apps, but LiteLLM and Cloudflare Workers already solve this.

Strengths
  • Encrypts user API keys at rest with AES-256-GCM before proxying requests to providers.
  • Supports streaming responses and covers major providers like Anthropic, OpenAI, and Google.
  • Minimal footprint with easy extension for any OpenAI-compatible endpoint via header config.
Weaknesses
  • Self-hosting a proxy for CORS is a solved pattern with many established zero-config alternatives.
  • Adds operational overhead for developers who could use serverless functions or LiteLLM instead.
Target Audience

Frontend developers building BYOK AI applications

Similar To

LiteLLM · Cloudflare Workers · llm-proxy

Similar Projects

Infrastructure●●Solid

VoidLLM – privacy-first LLM proxy (Go, self-hosted)

Zero-knowledge architecture means prompts never touch disk — unlike LiteLLM.

Solve My ProblemSlick
chrisremo85
342mo ago