Mendloop Docs Request access

Install Mendloop

Run Mendloop on your own machine with Postgres and Redis.

A self-hosted install runs the same code as Mendloop Cloud. It needs only Postgres 16 with pgvector and Redis 7. Object storage is optional; reports and source maps go to local disk by default. Nothing leaves your network unless you choose it, and no telemetry is sent unless you opt in.

Note:

Self-hosting needs access to the Mendloop repository. To ask about running Mendloop yourself, request access.

What you need#

  • A machine with Docker, git and make. Docker runs Postgres and Redis for you; you can also point Mendloop at your own.
  • For a production server, see Sizing. The smallest supported profile is 2 vCPU and 4 GB.

Try it on one machine#

TerminalShell
git clone https://github.com/mendloop/mendloop && cd mendloop
make setup     # writes .env with fresh keys, starts Postgres and Redis, installs dependencies, runs migrations
make seed      # optional: the demo workspace "Acme"
make dev       # API on http://localhost:8000, web app on http://localhost:3000
make doctor    # checks configuration and connectivity, without printing secrets

make setup copies .env.example to .env and generates MENDLOOP_SECRET_KEY and MENDLOOP_MASTER_KEY.

Danger:

Back up the master key. MENDLOOP_MASTER_KEY wraps every organization's key. Losing it makes every encrypted value unreadable: integration tokens, model keys, member emails.

Run it on a server#

For a real install, follow Deploy on one small server. One script installs Docker, tunes the host, writes .env.production with fresh keys, builds the images, starts Postgres, Redis, the three Mendloop processes, the web app and Caddy for HTTPS, runs the migrations and asks for the first Super Admin.

First run#

On an empty database, the web app opens first-run setup. The account you create there becomes the Super Admin, with the first organization and a default project. Once any user exists, setup is closed. To create or promote a Super Admin later, run mendloop create-admin on the server.

The processes#

Process Command Does
API mendloop serve The REST API, sign-in, live updates and Slack callbacks. On a small install it also runs ingest and starts the worker as a child process.
Ingest mendloop ingest SDK events, Sentry envelopes and webhooks. Run it separately to scale it.
Worker mendloop worker The event stream, workflows, root-cause analysis and scheduled jobs.

All three come from the same Docker image. Other useful commands: mendloop migrate, mendloop doctor, mendloop create-admin, mendloop sourcemaps upload, mendloop slack manifest and mendloop mcp serve.

Check it's healthy#

URL Answers
/healthz The process is alive
/readyz Postgres, Redis, the migrations and storage are all right (503 when they aren't)
/api/v1/docs The interactive API docs, from your server's own OpenAPI spec

Next#