SimplaixSimplaix Gateway

Quick Start

Get Simplaix Gateway running locally with npm in minutes.

Get the Gateway running locally in under a minute using the @simplaix/simplaix-gateway npm package.

The server installed with npm should not be used in production. See full installation instructions here.

Prerequisites

  • Node.js 18+

Install

npm install -g @simplaix/simplaix-gateway

Start the server

gateway init
gateway start

gateway init creates a .env file with auto-generated secrets. gateway start starts the Gateway on http://localhost:7521.

Then create your first admin user:

gateway admin create --email admin@example.com --password changeme

All Commands

gateway init

Scaffolds a .env file with auto-generated JWT_SECRET, CREDENTIAL_ENCRYPTION_KEY, and a SQLite DATABASE_URL. Use --force to overwrite an existing .env.

gateway init --force

gateway start

Starts the Gateway server. Defaults to SQLite at ./gateway.db on port 7521.

FlagDescription
-p, --port <number>Port to listen on
--db <url>Database URL — overrides DATABASE_URL in .env
--tunnelStart a Cloudflare quick tunnel and print the public URL
--dashboardStart the built-in Next.js dashboard UI + Python agent
--dashboard-path <path>Path to dashboard directory (default: ./gateway-app)
# Custom port and PostgreSQL
gateway start --port 8080 --db postgres://user:pass@localhost/gateway

# With public tunnel + dashboard
gateway start --tunnel --dashboard

When --tunnel and --dashboard are used together, the Gateway starts first, waits for the tunnel URL, then passes it to the dashboard.


gateway status

Shows the current config and verifies the database connection — DB mode, path/URL, whether secrets are set, and user count.

gateway status

gateway admin create

Creates an admin user in the database.

gateway admin create --email admin@example.com --password secret --name "Alice"
FlagRequiredDescription
-e, --email <email>YesEmail address
-p, --password <password>YesPassword
-n, --name <name>NoDisplay name

gateway admin list

Lists all admin users.

gateway admin list

Next Steps

On this page