Skip to content

Quickstart

Getting started ​

Run the nocturn daemon, pair your phone with it, and approve the first thing it wants to do. It takes about fifteen minutes. You need a computer that stays on, an OpenAI-compatible model endpoint with an API key, and a phone on the same Wi-Fi.

Want to look first?

Try the demo in your browser, or open the app and tap Look around with sample data. The demo runs on its own, with sample chats, widgets and approvals, and nothing leaves your device.

1. Point it at a model ​

Create a folder for nocturn and put a .env file into it. Write the address without /v1; nocturn adds it.

ini
OPENAI_BASE_URL=https://llm.home.example
OPENAI_API_KEY=your-key-here
OPENAI_MODEL=your-model-id

# Unlocks the vault for tokens and passwords. Keep it safe: there is no recovery.
NOCTURN_MASTER_PASSPHRASE=a-long-passphrase

2. Run the daemon ​

sh
docker run -d --name nocturn --restart unless-stopped \
  -p 8080:8080 \
  -v nocturn-data:/data/nocturn-data \
  --env-file .env \
  ghcr.io/efuturetoday/nocturn:latest
sh
# from https://github.com/efuturetoday/nocturn/releases, the newest release titled v…
tar -xzf nocturn_0.4.0_linux_amd64.tar.gz
./nocturn version     # nocturn v0.4.0
./nocturn serve       # data lands in ./nocturn-data/

The container image is published from the release after 0.4.0 on; until then, build it from a clone with docker build -t ghcr.io/efuturetoday/nocturn:latest .. On macOS, a downloaded binary may need xattr -d com.apple.quarantine nocturn first. For a lasting setup with Compose, updates and backups, see Docker.

3. Get the pairing code ​

While nothing is paired, the daemon logs a six-digit code at start. It is valid for five minutes.

sh
docker logs nocturn 2>&1 | grep '"code"'   # … "code":"482913" …
docker exec nocturn nocturn pair           # a fresh code at any time
sh
# among the first lines of ./nocturn serve:
# INF nothing paired yet — enter this code in the app or the web UI … code=482913 validFor=5m0s
./nocturn pair                             # a fresh code, from a second terminal

4. Pair the app ​

Install the app: on iPhone from the TestFlight public beta, on Android from the newest APK.

Open it. Under On this network you see nocturn @ and your computer's name. Tap Connect and type the six digits. You land on Home, with Ask nocturn at the bottom.

Home in the app: the front panel with fuel prices, the temperature and departures, and Ask nocturn at the bottom.Home in the app: the front panel with fuel prices, the temperature and departures, and Ask nocturn at the bottom.
Home, here with the demo's widgets.

Not listed?

Tap Enter address and type the computer's IP address and port 8080. A container on Docker's default network is never listed: multicast does not leave it (why).

5. Ask for something that reaches out ​

Type this and send it:

text
What is the title of the page at https://example.com?

The model wants to fetch the page, so the turn stops and a sheet slides up: Read from example.com?, with the tool http_read, the target example.com, and Remember set to Once.

6. Approve it ​

Hold Hold to allow until the bar fills, about a second and a half. The sheet closes, the call appears in the chat, and the answer follows: the title is "Example Domain".

You chose Once, so the next request to example.com asks again. That is the idea: nocturn works on its own, and asks you before it reaches out or changes something.

Next steps ​

nocturn is open source. Example hosts and people on these pages are made up.