Where nomi runs
The same machine, containers, another machine of yours, SSH tunnels, several machines, and reading from elsewhere. Everything beyond one machine is opt-in; runs stay on the machines you run, and nothing is sent anywhere else.
It doesn’t have to be one machine
nomi and the agents it records can be on one machine, in containers, or on several machines of yours, all sending to one nomi that you run yourself. With no extra settings they talk over 127.0.0.1 only; everything beyond that is something you switch on.
| Your agent runs | It reaches nomi at | What you set |
|---|---|---|
| On nomi’s machine | http://127.0.0.1:PORT |
nothing extra (A) |
| In a container on nomi’s machine | http://host.docker.internal:PORT |
one nomi configure line and the insecure-http setting (B) |
| On another machine, through an SSH tunnel | http://127.0.0.1:PORT |
NOMI_REMOTE=1 on the agent (D) |
| On another machine, over https | https://NAME[:PORT] |
your own TLS proxy in front of nomi, and one nomi configure line (C) |
Several agents on several machines can send to the same nomi (E), and you can read it from another machine over SSH (F). Not supported: serverless and edge functions, someone else’s CI runners, and sandboxes with no outgoing connections.
Let your coding agent set it up
The attach-nomi skill does this setup. It reads your repository for where the agent runs (a Dockerfile, a Compose file, deployment configuration), asks you for the address the agent uses to reach nomi, and after your yes:
- writes the settings below where your application reads its environment, never the token itself;
- runs the connection check and reports what it found;
- runs the
nomi configureline when nomi is on the same machine.
For anything on another machine (starting a tunnel, copying the token file) it gives you the lines to run. It doesn’t run or deploy your agent, and the proxy and its certificate stay yours.
Which to choose
Prefer the same machine. Next, an SSH tunnel: it needs no change to nomi, keeps the receiver on 127.0.0.1, and encrypts the write token. A public address is an option only with your own TLS proxy in front; the proxy should allow TLS only, the five POST routes only, and limit connections per client (the operating guide has the checklist, and docs/examples/proxy/ in the repository has a Caddyfile and an nginx.conf). Never turn on -receiver-listen-beyond-loopback when a tunnel, a proxy on the same machine or host.docker.internal will do.
The agent’s settings
The same variables in every case; only the values change. With the SDKs’ default prefix NOMI:
NOMI_ENABLED=1.NOMI_ENDPOINT:http://127.0.0.1:PORTon the same machine or through a tunnel;https://NAME[:PORT]through a TLS proxy;http://NAME:PORTonly with the insecure setting.NOMI_TOKEN_FILE: the path of a private (0600) copy of the home’swrite-token. The SDK reads the file; don’t put the token in the environment or a.envfile.NOMI_ALLOW_INSECURE_HTTP=1: only for plain http to a host that isn’t numeric loopback. The client then printsnomi: the write token is sent unencrypted to http://HOST:PORT (insecure http allowed).NOMI_REMOTE=1: when nomi is on another machine behind a loopback endpoint (an SSH tunnel), for the remote delivery timing. It changes timing only, prints nothing and needs no insecure setting. https and plain http elsewhere get the remote timing without it, so setting it there changes nothing.- For a private CA:
SSL_CERT_FILEin Python, a file holding the system’s roots and your CA (Python reads it in place of the system bundle);NODE_EXTRA_CA_CERTSin Node, your CA alone (added to the built-in roots);OTEL_EXPORTER_OTLP_CERTIFICATEfor a framework’s own Python OTLP exporter (Pydantic AI, Google ADK).
Certificates and host names are always checked over https; there is no setting to switch that off. The proxy, its certificate and its CA are yours: nomi and the attach skill never configure, generate, install or work around them, and never switch certificate checking off.
To get the token file to another machine, copy it over SSH into a private file (after umask 077, ssh nomi-host cat .nomi/write-token > ~/.config/nomi/write-token), or mount it read-only into a container. Rotating the write token means copying it again.
Check the connection
On the agent’s machine, in the agent’s own environment, run the SDK’s connection check before the agent:
python -m nomi.check # Python SDK
npx nomi-check # TypeScript SDK, from the agent's folder
It reads the same settings the agent does and prints whether nomi was reached, whether the token was accepted and whether the certificate was trusted. It stores nothing and never prints the token. Exit code 0 means an event would be accepted. --prefix MYAGENT_NOMI reads the settings under another prefix. Through a proxy, the proxy must forward /inspector/v1/check; otherwise the check reports 404.
A. Same machine
nomi init
nomi configure -mode sdk -source my-agent -receiver-listen 127.0.0.1:4320
nomi start
# the agent
NOMI_ENABLED=1 NOMI_ENDPOINT=http://127.0.0.1:4320 NOMI_TOKEN_FILE=$HOME/.nomi/write-token
B. Containers
B1. Agent in a container, nomi on the host. The receiver stays on the host’s 127.0.0.1; on Docker Desktop, host.docker.internal reaches it.
nomi configure -mode sdk -source my-agent -receiver-listen 127.0.0.1:4320 \
-receiver-accept-host host.docker.internal:4320
docker run --rm \
-e NOMI_ENABLED=1 \
-e NOMI_ENDPOINT=http://host.docker.internal:4320 \
-e NOMI_ALLOW_INSECURE_HTTP=1 \
-e NOMI_TOKEN_FILE=/run/nomi/write-token \
-v "$HOME/.nomi/write-token:/run/nomi/write-token:ro" \
my-agent-image
B2. nomi in a container beside the agent, on a user-defined Docker network, with no host port published (nomi-image is an image of your own holding nomi and nomi-receiver):
docker network create nomi-net
docker run --rm -v /srv/nomi-home:/home/nomi nomi-image init -home /home/nomi
docker run --rm -v /srv/nomi-home:/home/nomi nomi-image configure -home /home/nomi \
-mode sdk -source my-agent \
-receiver-listen 0.0.0.0:4320 -receiver-listen-beyond-loopback \
-receiver-accept-host nomi:4320
docker run -d --name nomi --network nomi-net --network-alias nomi \
-v /srv/nomi-home:/home/nomi nomi-image start -home /home/nomi
The agent sends to http://nomi:4320 with the insecure setting.
Docker Desktop only: on Linux Docker, host.docker.internal doesn’t reach the host’s 127.0.0.1, so B1 isn’t expected to work there. Every container on the machine can reach a B1 receiver, and the write token is the only check.
C. Another machine, over https through your own proxy
The receiver stays on 127.0.0.1 on nomi’s machine; your TLS proxy on the same machine passes requests in.
nomi configure -mode sdk -source my-agent -receiver-listen 127.0.0.1:4320 \
-receiver-accept-host nomi.example.internal:4443
# the agent
NOMI_ENABLED=1
NOMI_ENDPOINT=https://nomi.example.internal:4443
NOMI_TOKEN_FILE=$HOME/.config/nomi/write-token
SSL_CERT_FILE=/path/system-roots-plus-ca.pem # Python, a private CA only
NODE_EXTRA_CA_CERTS=/path/ca.pem # Node, a private CA only
-receiver-accept-host names the Host your proxy sends; a proxy that sends 127.0.0.1:4320 needs none.
D. SSH tunnel, in either direction
The receiver stays on 127.0.0.1:4320 on nomi’s machine, and the agent sends to http://127.0.0.1:4320 on its own. ssh encrypts it between the machines, so no insecure setting is needed.
ssh -N -L 4320:127.0.0.1:4320 nomi-host # from the agent's machine
ssh -N -R 4320:127.0.0.1:4320 agent-host # or from nomi's machine
# the agent, in both
NOMI_ENABLED=1 NOMI_ENDPOINT=http://127.0.0.1:4320 NOMI_TOKEN_FILE=$HOME/.config/nomi/write-token NOMI_REMOTE=1
NOMI_REMOTE=1 (remote=True in Python, remote: true in TypeScript) tells the SDK that nomi is on another machine behind this address, so it allows for the slower link. Without it, the end of each run is lost over anything slower than a few tens of milliseconds, and nomi says so.
Use the same port number on both ends. If the agent’s end must be another port, say 5320, add -receiver-accept-host 127.0.0.1:5320 to nomi’s configure. Run ssh under something that restarts it: if the tunnel drops, events are held and retried within the SDK’s bounds, then counted as lost.
E. Several agents on several machines
Each machine sends as in C or D, to one home, with a copy of the same write token. Runs stay apart.
Two machines running the same producer, project and agent show as one row, so give each machine its own producer name if you need them apart. Anyone with the write token can send runs as any agent.
F. Reading nomi from another machine
The viewer, API and MCP server stay on 127.0.0.1 of nomi’s machine. From another machine:
ssh -N -L 8765:127.0.0.1:8765 nomi-host # the viewer: the SAME port number
NOMI_TOKEN="$(ssh nomi-host cat /home/me/.nomi/token)" nomi browser -url http://127.0.0.1:8765
ssh nomi-host nomi mcp -home /home/me/.nomi # the MCP server
ssh nomi-host nomi runs -home /home/me/.nomi # the CLI
A forward to another local port gets 403 host_rejected. Use 127.0.0.1, not localhost.