Installation Quickstart
This guide shows you two ways to get started with MolnOS quickly: running it locally on your machine, or deploying it to free cloud services for a demo accessible from anywhere.
Run MolnOS Locally
Section titled “Run MolnOS Locally”The fastest way to try MolnOS is to run it on your local machine.
Prerequisites
Section titled “Prerequisites”- Node.js 24 or later (download)
- Basic comfort with command-line interfaces
- 10 minutes of your time
All of the below assumes Linux or MacOS or that you use equivalent tooling as expressed in the steps.
Step 1: Install MolnOS
Section titled “Step 1: Install MolnOS”Choose your installation method. The npm method is the quickest way to get started, while the CLI installer provides additional CLI tooling for managing MolnOS.
Since version 1.0.3, you can install MolnOS Core directly via npm:
Global installation:
npm install -g molnosThen run it with:
molnosLocal installation:
npm install molnosThen run it with:
npx molnosInstall the MolnOS CLI:
curl -sSL https://releases.molnos.cloud/install.sh | bashInstall the MolnOS Core using the CLI tool:
molnos installStep 2: Configure MolnOS
Section titled “Step 2: Configure MolnOS”Create a configuration file manually (as per below) or generate a scaffold using:
molnos initEdit molnos.config.json with your email settings. For local testing, you can use a service like Mailpit or your own SMTP server:
{ "$schema": "https://schemas.molnos.cloud/schema-config-v1.json", "version": "1", "email": { "emailSubject": "Sign In To MolnOS", "password": "your-smtp-password", "host": "localhost", "port": 1025, "secure": false }, "auth": { "jwtSecret": "your-secret-key-change-this", "consoleUrl": "http://localhost:8000" }, "server": { "allowedDomains": ["*"] }, "molnos": { "dataPath": "data", "initialUser": { "userName": "User", } }}Step 3: Download and Configure the Console
Section titled “Step 3: Download and Configure the Console”Download the MolnOS Console from releases.molnos.cloud and extract it.
Open config.json in a text editor and verify the MolnOS Core (API) endpoint configuration:
{ "api": { "baseUrl": "http://localhost:3000" }}Note: The default configuration automatically uses http://localhost:3000 when accessing the app via localhost, which matches MolnOS’s default port.
Step 4: Start MolnOS Core and Console
Section titled “Step 4: Start MolnOS Core and Console”Start the MolnOS Core:
molnos startIn a separate terminal, serve the MolnOS Console using any static file server:
# Navigate inside of the console directorycd path/to/molnos-console
# Simple example using a basic Node.js package called http-servernpx http-server -o -p 8000 --proxy http://localhost:8000?You should receive an email asking you to join your MolnOS organization. MolnOS automatically invites the initial user’s email when there is no existing data.
Step 5: Sign In
Section titled “Step 5: Sign In”- Click the join button in the email you have received (the one you set as
INITIAL_USER_EMAIL) - MolnOS will process your join request and you’ll be able to sign in
- Sign in with your email in the Console
- Check your inbox for a magic link from MolnOS
- Click the link to complete sign-in
- You’re in! Start exploring MolnOS’s features.
Deploy to the Cloud
Section titled “Deploy to the Cloud”Get MolnOS running using free cloud services so you can try it from anywhere without local setup. Perfect for quick demos and evaluations.
Prerequisites
Section titled “Prerequisites”- Basic comfort with command-line interfaces
- A DigitalOcean account ($200 free credit)
- A Netlify account (free forever plan)
- 5 minutes of your time
Step 1: Deploy the Console
Section titled “Step 1: Deploy the Console”-
Download the MolnOS Console from releases.molnos.cloud
-
Create a redirects file for single-page app routing:
- Create a new file named
_redirects(no file extension) in the root folder - Add this single line:
/* /index.html 200 - Create a new file named
-
Deploy to Netlify:
- Log into Netlify
- Click “Add new site” → “Deploy manually”
- Drag and drop your entire MolnOS folder into the upload area
- Wait ~30 seconds for deployment to complete
-
Copy your site URL from Netlify (you will get a randomized name, which you can configure; it looks like
https://something-random-here.netlify.app)
Step 2: Deploy the MolnOS Core
Section titled “Step 2: Deploy the MolnOS Core”-
Log into DigitalOcean and navigate to App Platform
-
Click “Create App”
-
Select “Container Image” and choose GitHub Container Registry
- Repository:
molnoscloud/molnos-core - Image tag:
latest - Click Next
- Repository:
-
Configure your app:
- Instance size: Select the smallest available ($5/month)
- Region: Choose the closest datacenter to you
- Network: Under HTTP Port, enter
3000
-
Add environment variables under “App-Level Environment Variables”:
CONSOLE_URL=https://your-netlify-url.com/appALLOWED_DOMAINS=https://your-netlify-url.comINITIAL_USER_NAME=My OrganizationEMAIL_HOST=smtp.provider.comEMAIL_PASSWORD=your-email-passwordEMAIL_PORT=465 # ExampleEMAIL_SECURE=true # If needed -
Review and create your app. Wait a minute or so for deployment to complete.
-
Copy your API URL from the app overview page (looks like
https://molnos-core-xxxxx.ondigitalocean.app) -
You should receive an email asking you to join your MolnOS organization. MolnOS automatically invites the initial user’s email when there is no existing data. For now, refrain from clicking the join button, as we need to finish configuring MolnOS.
Step 3: Reference the Core in the Console
Section titled “Step 3: Reference the Core in the Console”-
Update the Core’s endpoint:
- Open
config.jsonin a text editor:
{"api": {"baseUrl": "http://localhost:3000"}}- Replace
https://molnos-core-xxxxx.ondigitalocean.appwith your DigitalOcean API URL from Step 2
- Open
-
Redeploy to Netlify by dragging and dropping your entire MolnOS folder into the upload area. Redeployment is very fast, since only a single file is changed.
Step 4: Sign In
Section titled “Step 4: Sign In”- Click the join button in the email you have received (the one you set as
INITIAL_USER_EMAIL) - MolnOS will process your join request and you’ll be able to sign in
- Sign in with your email, now that you are part of the organization
- Check your inbox for a magic link from MolnOS
- Click the link to complete sign-in
- You’re in! Start exploring MolnOS’s features.
CLI Commands
Section titled “CLI Commands”The MolnOS CLI provides several commands for managing your installation:
# Install the MolnOS Core (API)molnos install
# Check for and install updatesmolnos upgrade
# Create a config file templatemolnos init
# Start the MolnOS Core servermolnos start
# Validate your MolnOS license keymolnos license
# Activate your MolnOS license keymolnos activate # Implicit: picks "molnos.licenseKey" value from local molnos.config.jsonmolnos activate <key>. # Explicit
# Deactivate your MolnOS license keymolnos deactivate # Implicit: picks "molnos.licenseKey" value from local molnos.config.jsonmolnos deactivate <key> # Explicit
# Read the MolnOS documentationmolnos docs
# Read the MolnOS software agreementmolnos legal
# Remove MolnOS from your systemmolnos uninstallUpdating MolnOS
Section titled “Updating MolnOS”To update to the latest version:
molnos upgradeThis checks for updates and installs them automatically. Your configuration and data are preserved.
Data Storage
Section titled “Data Storage”MolnOS stores all data locally on your host:
- Installation:
~/.molnos/(Core/API binary and version info) - Configuration:
molnos.config.json(in your working directory) - Data: In the MolnOS folder and the data path (
data, by default)
What’s Next?
Section titled “What’s Next?”Now that MolnOS is running, here’s what to explore:
- Read about the various features of MolnOS, such as Applications
- Want to tinker with the configuration?
- Curious? Read the architecture overview
- Issues? Find your answers on the troubleshooting page