skills/skills/langbot-env-setup/references/service-startup.md
Use this reference for LangBot backend/frontend readiness checks regardless of OS or browser-control method. Read skills/.env first and override those defaults with user-provided values or detected running services.
LANGBOT_REPOLANGBOT_WEB_REPOLANGBOT_BACKEND_URLLANGBOT_FRONTEND_URLLANGBOT_DEV_FRONTEND_URLStart LangBot from the backend repo:
cd "$LANGBOT_REPO"
uv run main.py
Healthy startup includes:
Running on http://0.0.0.0:<backend-port>
Connected to plugin runtime.
Plugin langbot/local-agent initialized
Quick check:
curl -I --max-time 3 "$LANGBOT_BACKEND_URL/login"
If bin/lbs env doctor reports that LANGBOT_BACKEND_URL has no TCP listener,
the backend is not running at the configured host and port. A reachable
standalone frontend on LANGBOT_FRONTEND_URL does not prove backend readiness.
Prefer a visible terminal session while debugging backend startup. Detached background startup methods can hide early process exits in local agent runs; if you use one, immediately verify both the process and the listener:
ps -eo pid,cmd | rg 'main.py|uv run main|langbot'
ss -ltnp | rg ':5300'
curl -I --max-time 3 "$LANGBOT_BACKEND_URL/login"
Start the new frontend from the web repo:
cd "$LANGBOT_WEB_REPO"
npm run dev
Healthy startup includes:
Local: <frontend-url>
Quick check:
curl -I --max-time 3 "$LANGBOT_FRONTEND_URL"
Environment setup is not complete until the required frontend/backend URLs are reachable and the chosen browser-control path can open the WebUI.