Skip to content

Saving settings duplicates API keys #9071

@pmarini-nc

Description

@pmarini-nc

LocalAI version:

4.0.0

Environment, CPU architecture, OS, and Version:

Linux local-ai 6.8.0-106-generic #106-Ubuntu SMP PREEMPT_DYNAMIC Fri Mar 6 07:58:08 UTC 2026 x86_64 x86_64 x86_64 GNU/Linux

Describe the bug

When saving the settings from the WebUI the API Keys are duplicated.
See screen recording:

api-keys-duplication-issue.webm

To Reproduce
Save settings

Expected behavior
API keys are not duplicated

Logs

Additional context

root@local-ai:~# cat /etc/local-ai/local-ai.env
LOCALAI_LOG_LEVEL=debug
LOCALAI_MODELS_PATH=/mnt/vol01/local-ai/models
LOCALAI_BACKENDS_PATH=/mnt/vol01/local-ai/backends
# d284*: Web UI
LOCALAI_API_KEY=d2848
LOCALAI_UPLOAD_LIMIT=2048
LOCALAI_DISABLE_WEBUI=false
LOCALAI_THREADS=6
PARALLEL_REQUESTS=true
LLAMACPP_PARALLEL=1
LOCALAI_CONFIG_DIR=/etc/local-ai

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    Status

    In review

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions