fix(amd): remove LiteLLM auth + fix stale DREAM_MODE (Issues 16, 18)#599
Merged
Lightheartdevs merged 1 commit intomainfrom Mar 24, 2026
Merged
Conversation
…AM_MODE
Issue 16 (revised): Remove LITELLM_MASTER_KEY requirement for lemonade mode.
All LiteLLM ports bind to 127.0.0.1 — no external exposure, no auth needed.
This eliminates the auth cascade (Issues 8, 9b, 17b) — no key to manage
means no key to get wrong. OpenClaw, Perplexica, OpenCode, Open WebUI, and
Privacy Shield all work without bearer tokens.
Changes:
- lemonade.yaml: remove general_settings.master_key
- Phase 06 generated config: remove master_key block
- litellm/compose.yaml: LITELLM_MASTER_KEY now optional (:-} instead of :?)
- Phase 06 .env: stop overwriting OPENAI_API_KEY and TARGET_API_KEY for AMD
- Phase 07 OpenCode: use no-key for lemonade mode
Issue 18: Phase 07 reads stale DREAM_MODE from shell variable (set to "local"
by install-core.sh) instead of the .env value ("lemonade" written by Phase 06).
Fix: unconditionally re-read DREAM_MODE from .env in Phase 07.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
DREAM_MODE=localfrom shell instead ofDREAM_MODE=lemonadefrom .env. OpenCode gets wrong URL/key. Fix: unconditionally re-read from .env.Changes
config/litellm/lemonade.yaml— removegeneral_settings.master_keyextensions/services/litellm/compose.yaml—LITELLM_MASTER_KEYnow optional (:-}instead of:?)installers/phases/06-directories.sh— remove master_key from generated config, stop overwriting OPENAI_API_KEY/TARGET_API_KEY for AMDinstallers/phases/07-devtools.sh— unconditionally re-read DREAM_MODE from .env, useno-keyfor lemonade OpenCodeTest plan
http://127.0.0.1:4000/v1(not port 8080)http://127.0.0.1:8080/v1unchanged🤖 Generated with Claude Code