Per-user xAI API keys

↗ view on GitHub · Custos · 2026-05-04 · d9295771

- New user_profiles.xai_api_key column.
- userSettings reads/returns xai key alongside claude + gemini.
- UserProfileContext exposes xaiApiKey + updateApiKey('xai', ...).
- Account → Models page renders an xAI key field.
- Tabular review xAI dropdown stays available without a per-user key
  (env XAI_API_KEY remains the fallback) but a user key takes precedence.
Repository Custos/legalos
Author Custos <jfeinblum@gmail.com>
Authored
Parents b4c38597
Stats 5 files changed , +58 , -11
Part of legalos fork base - Grok provider, Supabase S3, per-user xAI keys

Capture this commit into my fork

Download a Markdown prompt that tells Claude how to port this exact commit into your working tree. Run it via claude -p < capture-commit-d9295771.md from inside the repo you want the change in.

⬇ Download capture-commit-d9295771.md