Skip to content

feat: add byok-relay to Development Tools#153

Open
alokit-bot wants to merge 2 commits into
reorx:masterfrom
alokit-bot:add-byok-relay
Open

feat: add byok-relay to Development Tools#153
alokit-bot wants to merge 2 commits into
reorx:masterfrom
alokit-bot:add-byok-relay

Conversation

@alokit-bot
Copy link
Copy Markdown

byok-relay — BYOK relay for frontend apps

byok-relay is a self-hosted (or managed) relay that lets frontend apps use user-supplied AI API keys — exactly the pattern this list curates.

Fits this list's criteria:

  • Lets users configure their own API keys (Anthropic, OpenAI, Google, Groq, OpenRouter, Mistral, any OpenAI-compatible endpoint)
  • Free on-demand usage of their own quota — zero inference cost for the developer
  • Users bring their own key once; relay stores it encrypted (AES-256-GCM) and proxies all requests server-side

Why it's different from a simple proxy: Users own their key — it never leaves the relay in plaintext, and the frontend only ever holds a short-lived relay token (not the real API key). This solves the trust problem of BYOK for browser-only apps.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds the byok-relay project to the README, describing it as a self-hosted relay for user-supplied AI API keys. The review feedback recommends removing an extra blank line for consistency, changing the term 'register' to 'configure' for clarity, and ensuring the Chinese version of the README is also updated.

Comment thread README.md Outdated
Comment on lines +509 to +510

- [byok-relay](https://github.com/avikalpg/byok-relay)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

There is an extra blank line introduced before the new entry. Removing it will maintain consistency with the spacing used for other items in this section.

Suggested change
- [byok-relay](https://github.com/avikalpg/byok-relay)
- [byok-relay](https://github.com/avikalpg/byok-relay)

Comment thread README.md Outdated

- [byok-relay](https://github.com/avikalpg/byok-relay)

A self-hosted (or managed) relay that lets frontend apps use user-supplied AI API keys — no CORS issues, no exposed keys, no inference bill for the developer. Users register their own Anthropic, OpenAI, Google, Groq, OpenRouter, or Mistral key once; the relay stores it encrypted (AES-256-GCM) and proxies all subsequent requests server-side with SSE streaming support.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

This repository is bilingual. Please add the corresponding entry to README.cn.md to keep both versions in sync. A suggested translation is provided below. Additionally, 'configure' is more appropriate than 'register' for API keys in this context.

Chinese Translation:

  • byok-relay

    一个自托管(或托管)的中继,允许前端应用使用用户提供的 AI API 密钥 —— 无 CORS 问题,无密钥泄露,开发者无需承担推理费用。用户只需配置一次其 Anthropic、OpenAI、Google、Groq、OpenRouter 或 Mistral 密钥;中继将其加密存储 (AES-256-GCM),并支持 SSE 流式传输,在服务端代理所有后续请求。

Suggested change
A self-hosted (or managed) relay that lets frontend apps use user-supplied AI API keys — no CORS issues, no exposed keys, no inference bill for the developer. Users register their own Anthropic, OpenAI, Google, Groq, OpenRouter, or Mistral key once; the relay stores it encrypted (AES-256-GCM) and proxies all subsequent requests server-side with SSE streaming support.
A self-hosted (or managed) relay that lets frontend apps use user-supplied AI API keys — no CORS issues, no exposed keys, no inference bill for the developer. Users configure their own Anthropic, OpenAI, Google, Groq, OpenRouter, or Mistral key once; the relay stores it encrypted (AES-256-GCM) and proxies all subsequent requests server-side with SSE streaming support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant