Installing the server
Install the Memex server
Memex is a single program, memex. One command downloads it, verifies it and starts an assistant in your terminal that sets up the service. Ten minutes later you have an instance, an administrator account and an address to give to your AI assistants.
Prerequisites
- A Linux machine, x86_64 or arm64 (aarch64). Debian and Ubuntu are supported first; any Linux with systemd should work.
- Root access, directly or through
sudo. curl(orwget),tarandsha256sum, which most systems already have.- A decision on how the instance will be reached: a domain name, a Cloudflare tunnel, or an IP address and port. Access modes compares them. For a domain, have access to its DNS settings.
Run the installer
curl -fsSL https://raw.githubusercontent.com/mlafraise/memex/main/install.sh | shThe option is -fsSL with a capital L. With a lowercase l the command prints nothing and installs nothing; see Troubleshooting.
- The script fetches the programIt downloads the binary of the latest release for your processor, checks its SHA-256, and installs it as
/usr/local/bin/memex. It usessudowhen it is not run as root. - The assistant startsIt asks for the language first (English or French), then "How will people reach this instance?" with three answers: IP address and port, domain name, or tunnel.
- It shows its planBefore changing anything, the assistant lists exactly what it will do ("Here is what will be done:") and asks "Proceed?".
- It installsIt creates a
memexsystem user, the data directory/var/lib/memex, the configuration/etc/memex/config.tomland a systemd service, then starts the server. - It prints the admin key and the setup linkThe summary shows the address of the instance, a single-use admin key and a link of the form
https://brain.example.com/setup?key=…. - Create the administrator accountOpen the link in a browser and create your account. The key is destroyed when it is used. Everything else is configured in the app.
You can read install.sh before running it: it only fetches the binary and starts the assistant.
Check that it worked
sudo memex status
systemctl status memexmemex statusshows the version, the state of the service, the address, the data, updates and semantic search.- Opening the address in a browser shows the sign-in page.
- The server log is in the journal:
journalctl -u memex -f.
If the setup link was lost before an account was created, sudo memex admin-key prints a fresh one. See Recovering administrator access.
Next steps
- Connect an AI assistant to
https://<your-instance>/mcp. - Set up an e-mail channel so that invitations and password resets are sent by e-mail.
- Enable semantic search if you want search by meaning.
- Schedule backups to another machine.
The complete reference is install.md in the repository.