Skip to content

fix(amd): unset LITELLM_MASTER_KEY to truly disable auth#602

Merged
Lightheartdevs merged 1 commit intomainfrom
fix/litellm-unset-master-key
Mar 24, 2026
Merged

fix(amd): unset LITELLM_MASTER_KEY to truly disable auth#602
Lightheartdevs merged 1 commit intomainfrom
fix/litellm-unset-master-key

Conversation

@Lightheartdevs
Copy link
Collaborator

Summary

Empty string doesn't disable LiteLLM auth — it checks is not None, not truthiness. The only way is to unset the env var entirely so os.environ.get() returns None.

Fix

Override entrypoint in compose.amd.yaml to unset the variable before launching LiteLLM. Langfuse conditional logic replicated from base compose.

Test plan

  • AMD/Lemonade: LiteLLM starts without auth — OpenClaw connects without 400
  • AMD/Lemonade + Langfuse: callback still injected correctly
  • NVIDIA: compose.amd.yaml not loaded, auth unchanged
  • make test passes (contract test updated)

🤖 Generated with Claude Code

LiteLLM checks `is not None`, not truthiness — empty string still enables
auth. Docker Compose cannot unset an env var, only override its value.

Fix: Override entrypoint in compose.amd.yaml to `unset LITELLM_MASTER_KEY`
before exec. This makes os.environ.get() return None, disabling auth.
Langfuse conditional logic replicated from base compose.

Contract test updated to check for `unset` instead of blank value.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@Lightheartdevs Lightheartdevs merged commit 6bff052 into main Mar 24, 2026
14 of 20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant