What's New
- Safer web console by default. Without a
WEBUI_PASSWORD, the WebUI and its admin endpoints (/api/*,/account-limits,/refresh-token,/health,/test/*) now only answer requests from the machine the proxy runs on. SetWEBUI_PASSWORDto open the dashboard from other machines. The/v1API that Claude Code calls, the default bind address and its CORS are unchanged. - New
ALLOWED_HOSTSandCORS_ORIGINSoptions. The WebUI checks theHostandOriginheaders, which blocks DNS rebinding and calls from other websites. UseALLOWED_HOSTSto add hostnames besideslocalhostand IP addresses (e.g.proxy.lan), andCORS_ORIGINSto allow browser origins that call the WebUI API from another site. - Claude Code settings saved from the WebUI are limited to proxy and model env vars (
ANTHROPIC_BASE_URL,ANTHROPIC_MODEL, the default model vars, and similar). Other keys such as hooks,apiKeyHelperorstatusLineare ignored and the existing values on disk are kept.
Heads up before upgrading: if you open the dashboard or poll /health from another machine, set WEBUI_PASSWORD. If you reach the dashboard through a hostname other than localhost or an IP address (a LAN name or a reverse proxy), add it to ALLOWED_HOSTS. Otherwise those requests get a 403. See docs/configuration.md.