Installation manual
This manual explains how to install, configure and run Linux Autopilot (central platform + managed agent), locally or with Docker.
1. Prerequisites
- Ubuntu Server 26.04 LTS (central and managed host)
- Python 3.12 and
uv - Node.js 22 and
npm - PostgreSQL 16
- Ollama (local LLM runtime)
- Docker and Docker Compose (optional, for all-in-one)
2. Quick start
From the project root:
./scripts/start.sh
Starts the database, API, worker and web interface. Stop with Ctrl+C or ./scripts/stop.sh.
3. Get the code and configure
git clone <repository-url> linuxautopilot
cd linuxautopilot
cp .env.example .env
Edit .env and set at least DATABASE_URL, OLLAMA_MODEL (default qwen2.5:7b-instruct) and OLLAMA_BASE_URL.
4. Database
CREATE ROLE ai_operator LOGIN PASSWORD 'ai_operator';
CREATE DATABASE ai_operator OWNER ai_operator;
Apply migrations:
cd apps/api
uv run alembic upgrade head
5. Backend (FastAPI)
cd apps/api
uv sync
uv run uvicorn app.main:app --host 0.0.0.0 --port 8000
API available at http://127.0.0.1:8000 (Swagger at /docs).
6. Web interface (Next.js)
cd apps/web
npm install
npm run dev
Interface available at http://localhost:3001 (port 3000 is used by Grafana on this host).
7. Managed agent
See the Agent installation page. The agent runs as an unprivileged systemd service and connects outbound to the central platform.
8. First administrator
cd apps/api
ADMIN_PASSWORD='strong-password-123' uv run python ../../scripts/create_admin.py \
--email admin@example.com --display-name "Administrator"
Sign in at http://localhost:3001/login.
9. All-in-one (Docker Compose)
docker compose up --build
Exposed services: Web (3001), API (8000), PostgreSQL (internal), Ollama (internal).
10. Useful commands
| Action | Command |
|---|---|
| Start all | ./scripts/start.sh |
| Stop all | ./scripts/stop.sh |
| Smoke test | ./scripts/smoke_test.sh |
| API tests | cd apps/api && uv run pytest -q |
| Agent tests | cd agent && uv run pytest -q |
| Contracts tests | cd packages/contracts && uv run pytest -q |
| Model eval | cd eval && python runner.py --repeats 3 --models qwen2.5:7b-instruct |
11. Stopping
./scripts/stop.sh
