# API reference: install

The hub's own installer for its clients (lucen, lucen-device, lucen-mcp)

## GET /install.sh

`getInstallScript` · scope `none` · The installer for this hub's clients

`curl -fsSL <hub>/install.sh | sh -s -- cli` installs the named tools from this hub's own package index. It also takes `device` and `mcp`, and an extra such as `cli[rollout]` is allowed. The script is rendered for this hub's public URL: `PUBLIC_API_URL`, else the URL the request reached. It is never cached. The API image builds `lucen-cli`, `lucen-sdk`, `lucen-mcp` and `lucen-device` as pure-Python wheels from its own commit. It serves them as static files beside this script: a PEP 503 index at `/install/simple/` and the wheels under `/install/files/`. These paths serve files and are not API operations. Dependencies resolve from PyPI. The script uses `uv` when present, with this index first. Otherwise it uses `python3 -m venv` + `pip`, fetching the hub's wheels by direct URL. Failing both, it installs `uv`. Then it writes the hub's URL into `~/.config/lucen/credentials` when that file does not exist. It never writes a key there. This way `lucen` and `lucen-device` talk to the hub that served them. A hub whose image carries no wheels (a checkout) answers `404`.

Responses:

- `200`: The shell script.
- `404`: Resource not found (or hidden from the caller).
