memorix icon indicating copy to clipboard operation
memorix copied to clipboard

Dashboard config tab hides LLM API key values, shows "none" even when configured

Open PVLPM opened this issue 7 months ago • 3 comments

Description

The Memorix dashboard config tab shows "no LLM API key" or similar message, while CLI commands confirm the LLM API key is properly configured and working.

Steps to Reproduce

  1. Configure LLM API key in ~/.memorix/.env: MEMORIX_LLM_API_KEY=sk-cp-xxx MEMORIX_LLM_BASE_URL=https://api.minimax.io/v1
  2. Configure LLM in ~/.memorix/memorix.yml: llm: provider: minimax-coding-plan model: MiniMax-M2.7
  3. Run memorix background start
  4. Open dashboard at http://localhost:3211
  5. Navigate to Config tab
  6. Observe that LLM API key is shown as "none"

Expected Behavior

Dashboard Config tab should show the same LLM configuration as CLI commands. And source should be shown as ".env", in my case.

Actual Behavior

  • Dashboard Config tab: "llm.apiKey: none"
  • CLI doctor: Shows LLM is working (minimax-coding-plan/MiniMax-M2.7)
  • CLI status: Shows "LLM API key: sk-*** (← env:MEMORIX_LLM_API_KEY)"
  • LLM functionality works correctly (reranking, fact extraction, deduplication all active)

Environment

  • Memorix version: v1.0.6
  • OS: Windows
  • Node.js runtime
  • Background HTTP mode with dashboard

Additional Context

This is likely the same root cause as the embedding display bug - dashboard does not properly read or display configuration from memorix.yml or .env files, while CLI tools show correct values. The actual LLM functionality works correctly; only the dashboard UI display is affected.

Notes

CLI tools (memorix status, memorix doctor) are reliable indicators of actual LLM configuration. The dashboard config tab appears to not properly display secret/API key values even when they are correctly configured and functioning.

Image

PVLPM avatar Apr 10 '26 14:04 PVLPM

Thanks for reporting this. We’ve confirmed this is a real dashboard/config display bug, and we plan to fix it in the upcoming v1.0.7 release line. We’ll handle it together with the related control-plane/dashboard correctness issues so the configuration view reports the actual effective state consistently.

AVIDS2 avatar Apr 10 '26 17:04 AVIDS2

Fixed in v1.0.7 Dashboard /api/config endpoint now calls loadDotenv() before reading process.env, so .env file values (MEMORIX_LLM_API_KEY, MEMORIX_EMBEDDING_API_KEY, etc.) are properly loaded and displayed. Source provenance now distinguishes between .env file and system env vars.

AVIDS2 avatar Apr 14 '26 16:04 AVIDS2

Fixed in v1.0.7 Dashboard /api/config endpoint now calls loadDotenv() before reading process.env, so .env file values (MEMORIX_LLM_API_KEY, MEMORIX_EMBEDDING_API_KEY, etc.) are properly loaded and displayed. Source provenance now distinguishes between .env file and system env vars.

Hi. When the 1.0.7 release will be uploaded?

PVLPM avatar Apr 16 '26 18:04 PVLPM