Skip to content

Admin, Multi-Cortex Orchestrator

Habits Admin is a self-hosted web UI that manages multiple Cortex Server instances on a single server. It handles subdomain routing, service lifecycle, user management, habit installation, and the Mirror P2P service.

What it is

CapabilityDescription
Service managementStart, stop, and monitor Cortex instances per subdomain
Habit libraryBrowse, install, and update habits from the library
User managementCreate accounts and control access
Mirror hostingRun the P2P Mirror signaling server as a managed service
Base hostingOptionally run a Base UI instance as a managed service
Health monitoringReal-time status and dependency checks

Screenshots

Admin Services

Admin Library

How to run Admin

bash
npx habits admin

Admin starts at http://localhost:3000 by default. In production, put it behind a reverse proxy with wildcard subdomain support so each Cortex instance gets its own subdomain.

Architecture

yourdomain.com          → Admin UI
app.yourdomain.com      → Cortex instance (habit: my-app)
crm.yourdomain.com      → Cortex instance (habit: crm-workflow)
mirror.yourdomain.com   → Habit Mirror signaling server
base.yourdomain.com     → Base UI (optional)

System services

Admin has two built-in system services you can enable:

ServiceDescription
Habits BaseVisual editor for building habits
Habit MirrorP2P habit transfer signaling server (Mirror)

When to use Admin

  • You need to host multiple habits for different teams or customers on one server
  • You want a management UI instead of SSH + CLI
  • You're building a SaaS where each customer gets their own Cortex instance
  • You need subdomain-per-service routing

Relation to other tools

ToolRelation
Cortex ServerAdmin orchestrates multiple Cortex instances
BaseAdmin can host a Base instance as a managed service
MirrorAdmin includes Mirror as a system service

Released under the AGPL-3.0 License.