Add credit top-up UI and proxy route#28
Merged
pranavpatilsce merged 2 commits intomainfrom Apr 8, 2026
Merged
Conversation
Header button (+ credits) with dropdown for $5/$10/$25/$50 top-ups, always accessible. Inline widget also appears in chat when credits are exhausted. Both call /ui/api/topup-credits which proxies to vers-landing's reef topup endpoint using the reef auth token.
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
Adds a credit top-up flow to the reef UI so users can add LLM credits without leaving the chat.
What changed
+ creditsbutton in the top bar with a dropdown for $5/$10/$25/$50 top-ups. Always accessible, so users can add credits before starting big tasks.POST /ui/api/topup-creditsforwards the request to vers-landing's/api/reef/topup-creditsendpoint using the reef auth token. The reef server already hasVERS_AUTH_TOKENin its env.How it works
/ui/api/topup-credits(reef server)${VERS_LANDING_URL}/api/reef/topup-creditswith the auth tokenNew env var
VERS_LANDING_URL— defaults tohttps://vers.sh, set on the reef VM to point to the vers-landing instanceCross-repo context
Depends on vers-landing
feat/fleet-creditsbranch which adds the/api/reef/topup-creditsendpoint, the DB migration forllm_proxy_key_id, and the deploy route changes to store the LLM proxy key ID at exchange time.