LMArena Bridge usesDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/cloudwaddie/lmarenabridge/llms.txt
Use this file to discover all available pages before exploring further.
arena-auth-prod-v1 JWT cookies to authenticate with LMArena on your behalf. The dashboard provides endpoints — consumed by the dashboard UI — for managing these tokens at runtime without restarting the bridge.
Dashboard token endpoints
These endpoints are called by the dashboard UI and require an active dashboard session cookie.Add a token
auth_tokens list in config.json. The token is validated before saving — malformed values are rejected.
Delete a token
auth_tokens. The bridge stops using it immediately.
Refresh tokens
auth_tokens. The bridge tries two strategies in order:
- LMArena HTTP refresh — calls LMArena’s auth refresh endpoint directly with the existing token
- Supabase refresh — uses the embedded Supabase anon key to mint a new session token
Refresh is only attempted for tokens that are within 60 seconds of expiry (
TOKEN_EXPIRY_SKEW_SECONDS = 60). Valid tokens are left untouched.Token lifecycle
Configuring token persistence
By default (persist_arena_auth_cookie: true in config.json), the bridge saves any ephemeral auth token it discovers from a browser session back to config.json. Set this to false if you want to manage tokens exclusively through the dashboard.
config.json
List of
arena-auth-prod-v1 cookie values. The bridge cycles through them in round-robin order, skipping any that are expired.When
true, any token captured from an in-browser session is written back to config.json automatically.When
true, expired tokens that cannot be refreshed are removed from config.json automatically.Best practices
Use multiple tokens
Add at least two tokens. Round-robin rotation distributes load and keeps the bridge working while one token refreshes.
Enable prune_invalid_tokens
Turn this on in production so expired, un-refreshable tokens don’t accumulate in config.json.
Refresh proactively
Use the dashboard Refresh button periodically, especially after LMArena sessions expire overnight.
Change admin password
Always change the default
admin password before exposing the dashboard on any network.