AI Preferences: Add "Test Connection" button and API key show/hide toggle


Please vote if you support this proposal:Problem

Currently in Preferences → AI, users have no way to:

  1. Verify their API key works without actually using the AI feature
  2. Show/hide their API key (security concern — key is always visible)
  3. Retain keys for multiple providers when switching between them

Current Behavior

  • User enters API key
  • No validation feedback
  • Key is always visible in plaintext
  • Switching providers loses previous provider’s key

Expected Behavior

  • A “Test Connection” button that pings the API and confirms the key works
  • A show/hide toggle (:eye:) on the API key field
  • Keys stored per-provider so switching doesn’t lose them

System Information

JabRef v100.0.0, Linux

Thank for the report. Good to know that some users are starting to use this feature. Since your problem definitely requires to change code, please open an issue at GitHub.

Edit: Please create two separate issues: one for the visibility toggle and one for storing API keys for different providers.

By the way, keys are NOT always visible in plain text:

You do NOT want to send your API key from provider A to provider B, otherwise provider B could abuse your personal API key to access the service from provider A. Switching providers loses previous provider’s key is correct behaviour. What is needed is storage for different providers.

Filed as