新装后提示 `No auth configured`:用配置补丁补齐 provider 认证并回归向导
解决 npm 全新安装后跳过模型选择、直接报 `No auth configured for provider` 的启动失败。前置:具备网关配置写权限与可用 provider API key。步骤:先确认当前配置缺失模型/provider→补齐 auth profile 与默认模型→重启 gateway→回归安装向导/会话发言。关键命令:`openclaw gateway status`、`openclaw gateway restart`。验证:不再出现认证缺失警告且会话可正常响应。风险:错误 provider 名称或密钥范围不足仍会导致 401(需验证)。
GITHUBDiscovered 2026-02-15Author joshhu
Prerequisites
- Fresh OpenClaw npm installation with gateway access on the host.
- Valid API key/token for at least one configured model provider.
Steps
- Run status checks and confirm the warning appears during first-run or initial chat.
- Inspect config/auth sections and add missing provider credentials with minimal required scopes.
- Set an explicit default model/profile so installer fallback path is deterministic.
- Restart gateway and re-run wizard/chat smoke test to verify model selection + response path.
Commands
openclaw gateway statusopenclaw gateway restartopenclaw helpVerify
Installer no longer skips model setup unexpectedly, and chat replies without `No auth configured` errors.
Caveats
- Rotating keys during debugging can mask root cause; change one variable at a time.
- Different install channels may ship slightly different first-run flows(需验证).
Source attribution
This tip is aggregated from community/public sources and preserved with attribution.
Open original source ↗