-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
gateway install --force drops MINIMAX_API_KEY from service-env despite managed keys list #90277
Copy link
Copy link
Open
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.ClawSweeper needs live local, crabbox, or manual validation to confirm this issue.impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.Auth, provider routing, model choice, or SecretRef resolution may break.impact:crash-loopCrash, hang, restart loop, or process-level availability failure.Crash, hang, restart loop, or process-level availability failure.issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.Good issue quality with a plausible reproduction path needing some confirmation.
Metadata
Metadata
Assignees
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.clawsweeper:needs-live-reproClawSweeper needs live local, crabbox, or manual validation to confirm this issue.ClawSweeper needs live local, crabbox, or manual validation to confirm this issue.impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.Auth, provider routing, model choice, or SecretRef resolution may break.impact:crash-loopCrash, hang, restart loop, or process-level availability failure.Crash, hang, restart loop, or process-level availability failure.issue-rating: 🐚 platinum hermitGood issue quality with a plausible reproduction path needing some confirmation.Good issue quality with a plausible reproduction path needing some confirmation.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Summary
On macOS (LaunchAgent),
openclaw gateway install --forceregenerates~/.openclaw/service-env/ai.openclaw.gateway.envbut does not exportMINIMAX_API_KEY, even though:MINIMAX_API_KEYis present and non-empty in~/.openclaw/.envMINIMAX_API_KEYappears inOPENCLAW_SERVICE_MANAGED_ENV_KEYSMINIMAX_WEBSEARCH_API_KEY,DEEPSEEK_API_KEY,OPENROUTER_API_KEY) are exported correctlyThe gateway then crashes immediately on startup:
Environment
/opt/homebrew/bin/nodeai.openclaw.gateway.plist, port 18789Config context
models.providers.minimax-openai.apiKeyuses a proper env SecretRef:(
MINIMAX_WEBSEARCH_API_KEYin the minimax plugin uses the same SecretRef shape and does get exported.)Reproduction
Latest stability bundle message:
Impact
install --forcere-triggers the bug on every attemptexport MINIMAX_API_KEY='...'to service-env after everyinstall --forceSuggested fix
Ensure
gateway installexports every key listed inOPENCLAW_SERVICE_MANAGED_ENV_KEYSwhen a non-empty value exists in~/.openclaw/.env, with no special-casing that skipsMINIMAX_API_KEY.