Installing Ronne AI Marketplace
Running an instance with Docker or Node, as a service, a domain with HTTPS, the first-run setup and root.
Describes Ronne AI Marketplace 0.7.0.
With Docker
You need Docker with Compose 2.23.1 or later. On macOS or Linux, the install script does the rest, in a terminal.
curl -fsSL https://www.ronne.ai/marketplace/install.sh | shThe address redirects to the script in the latest release on GitHub, which also works directly:
https://github.com/ronneai/ronne-marketplace/releases/latest/download/install.shIt does this:
- Checks that Docker is running.
- Asks whether Ronne runs on this computer or on a server with a domain (then the domain, and an optional email for certificate notices).
- Checks the ports: on this computer it takes the next free pair after 7650 and 7651 if they're busy.
- Writes
compose.yamland.envto aronne-marketplacefolder in your home folder and starts Ronne. - Prints the setup code and opens the setup in the browser with the code filled in. On a server with a domain, it prints the address and the code.
It installs the release it comes from and never uses sudo. Run it again to upgrade: it keeps your answers, and asks before moving to a newer version.
On this computer, Ronne answers only on this computer (127.0.0.1), not to your network. To reach it from other devices, after the setup:
- Put
RONNE_PORT=0.0.0.0:7650andPUBLIC_URLwith this computer's address (http://192.168.1.20:7650, say) in that.env(the script keeps both). - Run
docker compose up -dthere.
By hand instead, you need one file: compose.yaml from the repository. It pulls the image ronneai/marketplace from Docker Hub, so no clone is needed. SQLite needs no server; for PostgreSQL or MySQL, a profile starts one next to Ronne.
mkdir ronne && cd ronne
curl -fsSLO https://raw.githubusercontent.com/ronneai/ronne-marketplace/main/compose.yaml
docker compose up -d # then open http://localhost:7650
docker compose --profile postgres up -d # or --profile mysql, with RONNE_DB_PASSWORD setThen open the address and follow the setup, with the setup code from docker compose logs web | grep setup_code or docker compose exec web pnpm run setup-code. Your data (the SQLite file, stored items and the settings) lives in the ronne-data volume, mounted at /app/data; back it up with docker compose exec web pnpm run backup (Backups).
A small proxy, Caddy, runs next to Ronne and is the only way in: it serves HTTP on port 7650 and HTTPS on 7651, ports nothing common uses. Ronne itself listens on 3000 inside, which isn't published.
Settings go in a .env file next to compose.yaml; after changing it, run docker compose up -d again. RONNE_PORT=3000 keeps the address of an install from before the proxy.
A domain and HTTPS
Give Ronne a domain and the proxy gets and renews its HTTPS certificate from Let's Encrypt, and sends http:// to https://. First point the domain's DNS (A, and AAAA for IPv6) at the server, and open ports 80 and 443 in its firewall. Then, in .env:
RONNE_DOMAIN=ronne.example.com
RONNE_PORT=80
RONNE_HTTPS_PORT=443
[email protected] # optional: expiry noticesThe first visit to https://ronne.example.com takes a few seconds while the certificate is issued. PUBLIC_URL follows the domain, unless you set it.
From then on the setup is on the internet, but it asks for the setup code, which only someone with access to the server has (the install script prints it). There's no race to finish it first.
| Setting | Default | What it does |
|---|---|---|
RONNE_PORT | 7650 | The HTTP port on the host. 80 with a domain. |
RONNE_HTTPS_PORT | 7651 | The HTTPS port on the host (TCP, and UDP for HTTP/3). 443 with a domain. |
RONNE_DOMAIN | empty | The name to serve over HTTPS. Empty: HTTP only, on any name. |
RONNE_TLS | auto | With a domain: auto (Let's Encrypt), files (your own certificate) or internal (the proxy's own test CA). |
RONNE_ACME_EMAIL | empty | Where the certificate authority sends expiry notices. |
RONNE_TRUSTED_PROXIES | empty | Which addresses may set X-Forwarded-For: your own proxy's address, such as 10.0.0.5. Only behind your own proxy; not private_ranges once the scanner container is added. |
RONNE_UPDATE_CHECK | on | off (or 0, false) stops the daily check for a newer version (an instance with no internet access). |
PUBLIC_URL | https://RONNE_DOMAIN, or http://localhost:RONNE_PORT | The address people open. Set it when the defaults are wrong. |
- Your own certificate (a private network, or one from your IT team):
RONNE_TLS=files, withcert.pem(the full chain) andkey.pemin acertsfolder next tocompose.yaml. Create the folder before the firstdocker compose up: on Linux, Docker creates a missing one owned by root, and then you needsudoto write to it. After replacing them, rundocker compose up -d --force-recreate proxy.RONNE_TLS=internalissues a test certificate instead; browsers warn until its CA is trusted, andrmkneedsNODE_EXTRA_CA_CERTS. - Behind your own proxy (nginx, Apache, Traefik, a load balancer): leave
RONNE_DOMAINempty, point it athttp://127.0.0.1:7650, and setRONNE_PORT=127.0.0.1:7650,PUBLIC_URLto its https address, andRONNE_TRUSTED_PROXIESto its address (such as10.0.0.5), so the audit log and sign-in limits see the client's address from itsX-Forwarded-For(it must append to it). Name the proxy rather thanprivate_rangesif you add the scanner container: every private range includes the scanners' addresses too. Its request body limit needs to be at least 28 MB, for drafts sent with a token; nginx's default is 1 MB (client_max_body_size 28m;). - Ports 80 or 443 already in use ("port is already allocated"): another web server runs on the host. Use it as your own proxy, as above.
- No certificate: check that the DNS points at the server, that 80 and 443 are open, and that
RONNE_PORTandRONNE_HTTPS_PORTare 80 and 443.docker compose logs proxysays why. - Keep the certificates: they live in the
caddy-datavolume. Never rundocker compose down -v, which deletes it with your data; Let's Encrypt limits how often a domain can ask for new ones.
With apt or dnf
On Debian 12, Ubuntu 22.04, Fedora, RHEL 9 and newer (glibc 2.34 or later), Ronne installs as a package with Node.js inside, no Docker and no Node.js needed.
Installing it makes Ronne a service, started at boot and restarted if it stops. Download the .deb or .rpm for your processor (amd64 or arm64) from the latest release on GitHub, then:
sudo apt install ./rmk-server_X.Y.Z-1_amd64.deb # or _arm64.deb
sudo dnf install ./rmk-server-X.Y.Z-1.x86_64.rpm # or .aarch64.rpmThen open http://localhost:7650 and follow the setup, with the setup code from sudo rmk-server setup-code. Without Docker, the install script does this for you: it offers the package, checks it against the release's checksums.txt, asks before running sudo, and prints the setup code.
- Where things are: the program in
/opt/rmk-server(and/usr/bin/rmk-server), the data in/var/lib/rmk-server, the settings in/etc/rmk-server/env, the log injournalctl -u rmk-server. It's managed with the commands of As a service, including--domainfor HTTPS. - Upgrading: install the new package the same way. The service restarts on it with the options it had, and migrations run on start.
- Removing:
sudo apt remove rmk-server(ordnf remove) stops and removes the service and keeps the data and settings;apt purgeanddnf removeprint the command that deletes them. - Without systemd (a container): the package installs, and says how to start Ronne by hand.
With Node.js
With Node.js 22.12 or later, one command downloads and starts Ronne, with no clone, no Docker and no build. Its command is rmk-server.
npx @ronneai/marketplace # then open http://localhost:7650
npm install --global @ronneai/marketplace # or keep it installed, then: rmk-serverThen follow the setup; on a terminal, the first start prints the setup code and opens the setup with it filled in (rmk-server setup-code prints it again). rmk-server setup runs the setup in the terminal instead (--yes for scripts), rmk-server migrate applies migrations, and rmk-server reset-root-password resets root's password.
- Network: it listens on
127.0.0.1:7650, this machine only.--host 0.0.0.0(orHOST) makes it reachable from the network, and--port(orPORT) changes the port. A busy port stops it rather than picking another, since the address is saved in the settings. - Data (settings, the SQLite database, stored items) lives in
RONNE_DATA_DIR, or by default in~/Library/Application Support/RonneAI Marketplaceon macOS,~/.local/share/rmk-serveron Linux (or underXDG_DATA_HOME),%LOCALAPPDATA%\RonneAI\Marketplaceon Windows. - Upgrading:
npx @ronneai/marketplace@latest, ornpm install --global @ronneai/marketplaceagain. Migrations run on start.
Working on Ronne itself? From a clone, with pnpm: pnpm install, then pnpm build && pnpm start (or pnpm dev) on http://localhost:3000. The settings go to apps/web/.env and a SQLite database to apps/web/data/ by default.
As a service
On macOS and Linux, rmk-server can run as a service: in the background, started at boot and restarted if it stops (systemd on Linux, launchd on macOS).
Install Node.js for the whole machine first: the service runs under its own account, which can't read a Node.js in your home folder (nvm). If sudo rmk-server isn't found, keep your PATH: sudo env "PATH=$PATH" rmk-server service install.
npm install --global @ronneai/marketplace
sudo rmk-server service install # prints the setup code: open http://localhost:7650/setup and enter it| Command | Does |
|---|---|
rmk-server service status | Installed or not, running or not, the version, address, account, folders and proxy. The only one without sudo. |
sudo rmk-server service stop | start | restart | Stops, starts or restarts it. Restart after upgrading with npm. |
sudo rmk-server service logs | Follows its log. |
sudo rmk-server service uninstall | Removes the service and the accounts it made. The data and settings stay, and installing again uses them; --delete-data deletes them too, after you type the data folder's name. |
sudo rmk-server setup | The setup in the terminal, for the service's data (migrate and reset-root-password too). |
sudo rmk-server setup-code | Prints the setup code the web setup asks for, until the instance is set up. |
- Where things are on Linux: data in
/var/lib/rmk-server, settings in/etc/rmk-server/env, the log injournalctl -u rmk-server, run by thermk-serveraccount. On macOS: data in/usr/local/var/rmk-server(with Homebrew,/opt/homebrew/var/rmk-server), settings in the same prefix'setc/rmk-server/env, the log in/Library/Logs/rmk-server/server.log, run by_rmkserver, or by you with--user. macOS may show a notification about a new background item: that's the service. - Options:
--port(7650) and--host(127.0.0.1, this machine only;0.0.0.0opens it to the network over plain HTTP, so put it behind HTTPS). Running install again with other options updates the service and keeps the data. - A domain with HTTPS:
sudo rmk-server service install --domain ronne.example.comadds a second service,rmk-server-proxy, running Caddy on ports 80 and 443 with the same settings as Docker's proxy. It needs Caddy 2.7 or later on PATH (Debian's and Ubuntu's own package is too old: use Caddy's repository, orbrew install caddy), and stops if another web server holds 80 or 443.--tls internaluses Caddy's own authority;--tls filesreadscert.pemandkey.pemfrom/etc/rmk-server-proxy/certs(on macOS, the prefix'setc/rmk-server-proxy/certs; copies, not links; copy them again after each renewal and restart);--emailgets expiry notices. - Without systemd (a container, WSL 1, another init system): there's no service to install. Run
rmk-server start --no-openunder your own supervisor, or use Docker.
Windows
On Windows, Ronne runs two ways. In a terminal, with Node.js 22.12 or later, in PowerShell:
npx @ronneai/marketplaceIt runs while the terminal is open, with no service: nothing starts it at boot, and rmk-server service refuses on Windows. It's a way to try Ronne or run it for yourself, not a production setup.
The data lives in %LOCALAPPDATA%\RonneAI\Marketplace, where 0.3.x kept it, so an instance started with npx on 0.3.x upgrades in place. The other commands, such as npx @ronneai/marketplace reset-root-password, run on the same data.
A Windows service from 0.3.x is removed in a terminal opened as administrator with npx @ronneai/[email protected] service uninstall.
As a server that starts at boot, run it in WSL 2 or a Linux virtual machine and follow the Linux steps there: the install script with Docker (Docker Desktop's WSL integration, or Docker Engine in Ubuntu), the .deb package, or npm with sudo rmk-server service install.
wsl --install # in PowerShell as administrator: WSL 2 with Ubuntu; restart when it asks
wsl --install -d Ubuntu # when WSL is there with no Linux distribution (wsl -l -v lists none)The service needs systemd: if systemctl says it isn't running, add systemd=true under [boot] in /etc/wsl.conf and run wsl --shutdown. Windows reaches a server in WSL at http://localhost:7650.
rmk and the MCP server run on Windows itself, where your AI tools are: npm install --global @ronneai/rmk @ronneai/mcp in PowerShell (Getting rmk).
The setup
Until the instance is set up, every page opens the setup, and the API answers 503 setup_required. The setup asks for:
- The setup code: a one-time code the server makes when it starts before setup, so only whoever started it can set it up. It's in the server's log (the
server.setup_codeline), the install script andrmk-serverprint it, and on this computer the install script opens the page with it filled in. Case, spaces and dashes don't matter. The right code always works. After 30 wrong codes in ten minutes, or 10 from one address where the server knows each visitor's address (withTRUST_PROXY, which Docker and a service with a domain set), wrong codes get a different answer and are no longer logged one by one. - The database. SQLite (the default: a file, nothing else to install), MySQL or MariaDB, or PostgreSQL, with the host, port, name, user and password of an existing, empty database. Test connection connects, checks the server version and, on MySQL, the
utf8mb4character set, and checks that the user can create, write, read and drop tables (through a probe table it removes again). A problem is explained in plain words, with the driver's message. - The public address: where people open Ronne AI Marketplace. When it comes from the environment (as
compose.yamlsetsPUBLIC_URL), it's shown read-only, since the environment wins over the settings file. - The root account: email, display name and a password of 12 to 128 characters, typed twice.
- Install: the settings are written, the migrations applied and the root account created, each shown as it happens. A failure returns to the question it's about; Retry resumes from the failed step. Then Sign in opens the sign-in page with the root email filled in. Nothing needs a restart.
A setup that was interrupted after the settings were written resumes at Install on the next visit, keeping the database, and still asks for the code. Running the setup again never creates a root when one exists: more roots are added from Users.
To see the code again, on the server:
| Installed with | Command |
|---|---|
| Docker | docker compose exec web pnpm run setup-code |
| Node.js (rmk-server) | rmk-server setup-code |
| The service or a package | sudo rmk-server setup-code |
| A clone | pnpm run setup-code |
The command makes a new code if there's none, and refuses once the instance is set up: the code is deleted when root is created. The setup in the terminal (setup) doesn't ask for it.
Root accounts
The setup creates the first root account. A root can do everything a moderator can, in every workspace, plus:
- create and manage users;
- create workspaces and scopes;
- manage every workspace's members;
- change the instance's settings;
- read the audit log.
Nobody signs up: a root creates every other account.
There can be several roots. In Users, any root can make another account root (when creating it, or with Change role) and change anyone's role, roots included.
Roots manage each other: one can disable another or reset their password. Nobody changes their own account there; you change your password in Account, and another root does the rest.
The instance always keeps at least one active root: a change that would leave none is refused.
A forgotten root password can be reset by another root in Users. If there's no other root, reset it on the machine that runs the instance, with the command that fits how it's installed:
rmk-server reset-root-passwordfor the npm package or an apt or dnf package;docker compose exec web pnpm run reset-root-passwordwith Docker;pnpm run reset-root-passwordin a clone.
The sign-in page's Forgot? note names the one for your instance. With several roots, it asks which one, or takes --email with --yes.
The command:
- sets a new password;
- signs that root out everywhere;
- revokes its access tokens;
- turns off its two-factor sign-in (for a lost phone, and says so);
- re-enables the account if it was disabled.
So the server stays the last way in, even when two-factor is required of root. reset-two-factor --email EMAIL, on the same machine, turns off any account's two-factor alone.