Documentation menu

Installing the server

Access modes: how people reach your instance

The first question of the installer is "How will people reach this instance?". There are three answers: with the IP address and a port, with a domain name, or through a tunnel. The choice decides whether the connection is encrypted, whether a port must be open, and whether AI assistants on the internet can connect.

The three modes compared

The three access modes: what sits between the people and the memex process.Three rows. IP address and port: machines of the local network reach memex directly in plain HTTP on port 8787. Domain name: the internet reaches nginx or Apache over HTTPS on ports 80 and 443, which forwards to memex on 127.0.0.1:8787; when neither is installed, Memex serves HTTPS itself. Tunnel: the internet reaches Cloudflare, which terminates HTTPS; cloudflared, started by Memex, holds an outbound connection to Cloudflare and forwards to memex locally, so no port is open.plain HTTP, port 8787HTTPSHTTP, localoutbound connectionLocal networkbrowser, local AI clientsmemex0.0.0.0:8787Internetpeople, AI assistantsnginx or Apacheports 80/443, certificatememex127.0.0.1:8787Internetpeople, AI assistantsCloudflareterminates HTTPScloudflaredstarted by Memexmemex127.0.0.1:8787IP address and portDomain nameTunnel
The three access modes: what sits between the people and the memex process.
IP address and portDomain nameTunnel
Installer wordingWith the IP address and a port (plain HTTP, simplest)With a domain name (HTTPS)Through a tunnel (no open port, works behind a home router)
--modeipdomaintunnel-quick or tunnel-named
Addresshttp://<address>:8787https://brain.example.comQuick: a random https://….trycloudflare.com. Permanent: your own hostname.
EncryptedNoYes, once the certificate is issuedYes
NeedsNothingA domain, a DNS record, ports 80 and 443 reachableOutbound internet access; a free Cloudflare account for a permanent tunnel
Reachable from the internetOnly if you expose the port, which is unsafe without encryptionYesYes
Suited to AI assistantsAssistants on the same network onlyYesPermanent: yes. Quick: the address changes at every restart.

Domain name

The lasting choice for a server with a public IP address. The installer looks at the machine and adapts: if nginx or Apache is installed it adds its own site behind it; if nothing listens on ports 80 and 443 Memex serves the domain itself with automatic Let’s Encrypt certificates; if another program holds the ports it listens locally and tells you what to forward.

Tunnel

For a machine without a public IP address or behind a home router: Memex starts cloudflared, which connects out to Cloudflare, and people reach the instance through Cloudflare. No port is opened. A quick tunnel needs no account and is meant for trying Memex; a permanent tunnel gives a stable address on your domain. See Cloudflare tunnel.

IP address and port

Plain HTTP on a port, 8787 by default. The simplest mode and a good first try on a home or office network or behind a VPN. Passwords and notes travel unencrypted, so it is not for use across the internet. See Local network.

Changing mode later

Run sudo memex install again, or choose Reinstall or change the access in the memex menu. The configuration is rewritten after confirmation, the data is kept and the service is restarted. The access mode, the listening address, the domain and the tunnel are decided there and are read-only in memex config.

When the address of the instance changes, links already sent stop working and connected AI assistants must be reconnected with the new address.