BYO OpenRouter key on review page#13
Open
dangng2004 wants to merge 2 commits into
Open
Conversation
Adds a prominent always-visible section on /review.html where users can paste a personal OpenRouter key. When supplied, the backend uses it for the review and bypasses the shared daily limit, leaving more of the shared budget for less well-resourced users. - New BYO key panel between the help text and the email field, on brand (accent-light bg + accent border) so it reads as a first-class option rather than a hidden tweak. - Password input; key is sent as the `openrouter_api_key` form field and never persisted in the page. - Backend URL auto-detects localhost vs production so the same page works against a local uvicorn (port 8080) during development.
Contributor
Author
Headline now leads with the concrete benefit (review the full paper, not just the first 20 pages) and keeps the "leave more budget for less well-resourced users" framing as the secondary reason. Adds a Length dropdown inside the BYOK box with two options: * 20k tokens (~20 pages) — default * Full paper (up to 100 pages) The selection is sent as the `tier` form field; the backend only honors it when a BYO key is also supplied.
chenhaot
reviewed
May 19, 2026
| <div id="byok-section" style="border:1.5px solid #f9c0c0;border-radius:var(--radius-sm);background:var(--accent-light);margin-top:50px;margin-bottom:14px;padding:16px;box-shadow:var(--shadow-sm);"> | ||
| <div style="font-size:14px;font-weight:700;color:var(--accent);margin-bottom:8px;letter-spacing:-0.1px;">Use your own key to review full papers</div> | ||
| <div style="font-size:13px;color:var(--text);line-height:1.55;margin-bottom:12px;"> | ||
| By default, submissions are capped at 20 pages / 20k tokens to protect a shared daily budget. With your own OpenRouter key you can review the full paper, and you also leave more of the shared budget for less well-resourced users. Your key is used only for this single review and is never stored or logged. Get one at <a href="https://openrouter.ai/keys" target="_blank">openrouter.ai/keys</a>. |
Contributor
There was a problem hiding this comment.
This is too simple. Maybe add
"We encourage you to provide an OpenRouter API key so you can review the full paper without the default 20-page / 20k-token submission cap. These limits exist to make a free service possible (reach out if you are interested in sponsoring our research). Using your own key also helps reserve our free service budget for less well-resourced users. Your key is used only for this single review and is never stored or logged. Get one at openrouter.ai/keys."
chenhaot
requested changes
May 19, 2026
Contributor
chenhaot
left a comment
There was a problem hiding this comment.
take a look at my wording?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Paired backend PR
Requires the matching backend change to actually consume the key and skip rate-limiting: ChicagoHAI/openaireview-web-backend (WIP PR opened alongside this one).
Test plan