Getting started
View on GitHubDocumentation / Getting started
Getting started
This page takes Looksee from a fresh machine to a signed-in Studio with a detection model ready to use. It uses Docker Compose, which is the supported way to run Looksee.
Requirements
- Docker Engine with Docker Compose 2.24 or later. Docker Desktop works on macOS and Windows; Linux servers are the usual production target.
- A 64-bit x86 or ARM processor. Detection runs on the CPU by default; a CUDA GPU is optional and covered in Deployment.
- Free ports
3000(Studio),8000(API),8554(RTSP),8889(WebRTC), and8189/udp(WebRTC ICE). PostgreSQL, Valkey, the video storage, and the MediaMTX control API bind to the loopback interface only.
The Compose file limits every service. The inference service gets 4 CPUs and 4 GB of memory by default; raise INFERENCE_CPUS and INFERENCE_MEMORY in .env for more cameras or larger models.
Install
git clone https://github.com/okoflow/looksee.git
cd looksee
cp .env.example .env
Open .env and set these values before the first start:
| Variable | Set it to |
|---|---|
WEBRTC_HOST_IP | 127.0.0.1 when the browser runs on the same machine. The machine's address on your network, such as 192.168.1.20, when you open Studio from another device. Browsers connect to this address for live video. |
POSTGRES_PASSWORD, MTX_MEDIA_PASSWORD, STORAGE_PASSWORD | Private values of your own. They are blank in .env.example, and the stack refuses to start until they are set. |
Then build and start the stack:
docker compose up -d --build
docker compose ps -a
Long-running services should be running and their health checks should pass. models-init, storage-init, api-migrate, and media-cache-init should exit with code 0.
Create the owner account
Open http://<WEBRTC_HOST_IP>:3000. Studio redirects to the setup page while no account exists. Enter an email address, a display name, and a password of at least eight characters with one digit and one capital letter. The account becomes the instance owner and you are signed in.
[!WARNING] Until the owner exists, anyone who can reach port
3000can claim the instance. Create the account right after the first start, and keep the stack on a trusted network. Security covers the rest.

Add a detection model
Open Models in Studio and check that General objects (COCO) is installed. This D-FINE-S model detects 80 classes. If the first start was offline, the owner can choose Download. For a custom detector, follow the model bundle guide.
Check the stack
curl http://127.0.0.1:8000/health
docker compose logs -f api inference
The API answers {"status":"ok"}. Interactive API documentation is served at http://127.0.0.1:8000/docs.
Everyday commands
docker compose logs -f studio api inference mediamtx # follow logs
docker compose stop # stop, keep data
docker compose up -d # start again
For backups and version upgrades, follow the deployment guide.
Next
Your first workflow builds a helmet compliance workflow from the canvas up and shows it running in the monitor.