Skip to content

fix(amd): remove LiteLLM auth + fix stale DREAM_MODE (Issues 16, 18)#599

Merged
Lightheartdevs merged 1 commit intomainfrom
fix/lemonade-remove-auth-and-stale-mode
Mar 24, 2026
Merged

fix(amd): remove LiteLLM auth + fix stale DREAM_MODE (Issues 16, 18)#599
Lightheartdevs merged 1 commit intomainfrom
fix/lemonade-remove-auth-and-stale-mode

Conversation

@Lightheartdevs
Copy link
Copy Markdown
Collaborator

Summary

  • Issue 16 (revised): Remove LiteLLM auth requirement for lemonade mode. All ports bind to 127.0.0.1 — no external exposure, no auth needed. Eliminates the entire auth cascade (Issues 8, 9b, 17b).
  • Issue 18: Phase 07 reads stale DREAM_MODE=local from shell instead of DREAM_MODE=lemonade from .env. OpenCode gets wrong URL/key. Fix: unconditionally re-read from .env.

Changes

  • config/litellm/lemonade.yaml — remove general_settings.master_key
  • extensions/services/litellm/compose.yamlLITELLM_MASTER_KEY now optional (:-} instead of :?)
  • installers/phases/06-directories.sh — remove master_key from generated config, stop overwriting OPENAI_API_KEY/TARGET_API_KEY for AMD
  • installers/phases/07-devtools.sh — unconditionally re-read DREAM_MODE from .env, use no-key for lemonade OpenCode

Test plan

  • AMD/Lemonade: all services connect to LiteLLM without auth errors
  • AMD/Lemonade: OpenCode gets http://127.0.0.1:4000/v1 (not port 8080)
  • NVIDIA: LiteLLM still starts (LITELLM_MASTER_KEY empty but not required)
  • NVIDIA: OpenCode gets http://127.0.0.1:8080/v1 unchanged

🤖 Generated with Claude Code

…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>
@Lightheartdevs Lightheartdevs merged commit 70c71bf 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