Your API key, models, and endpoint are kept only in this browser tab’s memory. They are never written to IndexedDB. Closing or refreshing the page clears session overrides. For local development you can seed defaults with NEXT_PUBLIC_AI_API_KEY, NEXT_PUBLIC_AI_MODEL, and NEXT_PUBLIC_AI_QUALITY_MODEL in .env.local.
More info — how we keep keys temporary, where to get one, and pricing.