1.5 KiB
1.5 KiB
Recap Relay
Operator-side credit-metered proxy for Recap clients. Fronts Google Gemini (and optionally a local Parakeet+Gemma setup) so Recap users on Core/Pro/Max tiers can summarize videos without bringing their own API keys.
What it does
- Receives
POST /relay/transcribeandPOST /relay/analyzefrom Recap installs - Validates
X-Recap-Install-Idand optionalAuthorization: Bearer LIC1-...against a Keysat license server (cached online check) - Tracks per-install credit balances in
/data/credits.jsonwith calendar-month rollover for paid tiers - Routes to Gemini first; falls back to the operator's Parakeet+Gemma above the per-user-per-month Gemini cap
Setup
After installing, set:
- Gemini API Key — required, the relay's primary backend
- Keysat URL — defaults to
https://keysat.xyz; override to the internal hostname if Keysat is co-located on this Start9 server - Admin Password — gates the
/admin/*dashboard - (Optional) Parakeet URL + Gemma URL — operator-hardware fallback for Pro/Max overflow
Then forward a public hostname (e.g. relay.yourdomain.com) to this service via StartTunnel, and point your Recap install's "Set Relay URL" action at that hostname.
Tier defaults
- Core (unlicensed): 5 lifetime credits
- Pro (
relay_proentitlement): 50 monthly credits, max 25 via Gemini - Max (
relay_maxentitlement): unlimited monthly, max 50 via Gemini
Adjust via the "Adjust Tier Quotas" action without redeploying.