New Tool Radar

Local Model Setup

How to Install LocalAI With the One-Line Script

Install LocalAI on Linux or macOS with the one-line install script, then start it and open the web UI.

Schematic diagram with four steps: run the install script, start local-ai, open the web UI at localhost:8080, then download the first model.

LocalAI is a self-hosted, OpenAI-compatible API for local models, and the fastest way in on Linux or macOS is the one-line install script from the project’s own site. It installs the local-ai binary, and then you start the server and open the web UI.

Run the script and start the server

Run curl -sSL https://localai.io/install.sh | sh in the terminal, then start LocalAI with local-ai. Open the web UI at http://localhost:8080 — that is where you browse models and run the first one. The first model the quickstart uses is gemma-4-e2b-it-qat-q4_0, at 4.3 GB total.

curl -sSL https://localai.io/install.sh | sh
local-ai
# open http://localhost:8080

The script installs the binary; it does not download a model for you, so the first run needs a download before anything answers. LocalAI also ships as a Docker Compose file and as a desktop app — the script is the quickest route on a Linux or macOS machine you control.

Try it: four checks

Check What you should see If you do not see it
Script runs The install script finishes Check curl and network access
Binary present local-ai runs Check it is on the path
Server starts local-ai starts without an error Check port 8080 is free
Web UI opens http://localhost:8080 shows the UI Download a model first

Expected result. We checked the LocalAI quickstart, which gives the install script, the local-ai command, the localhost:8080 web UI, and the first model gemma-4-e2b-it-qat-q4_0 at 4.3 GB. We did not run the script on this machine.

Limits

This guide covers the script install only. The first model download and any GPU image choice are separate steps. We did not test any install ourselves.

Sources

See all