Skip to content

npm start

Terminal window
npm run build # builds apps/web, then apps/server
npm start # node --env-file-if-exists=.env --no-warnings apps/server/dist/server.mjs

npm run build builds the dashboard (apps/web) and the server (apps/server). You need to build again after you install or change a module, because modules are bundled with the server. npm start fails if the server has not been built.

The server serves both the API and the dashboard:

Path What
/ and the dashboard routes (/inbox, /runs, /modules, /connectors, /artifacts, /settings) The dashboard
/api/* The JSON HTTP API
/login, /auth/* Sign-in (hosted mode only)
/connectors/<provider>/callback OAuth return from Slack, Google or an MCP server

Stop it with Ctrl + C.

  1. The server connects to the database and runs its migrations.
  2. It loads the installed modules.
  3. It resumes runs that were mid-flight when it last stopped. Runs waiting at a gate keep waiting; runs that were working continue.
  4. It listens on port 3000, or PORT.
Terminal window
PORT=3100 npm start

For trying the dashboard without keys, use a module’s knetik dev, which uses a scripted model, search and images and mock connectors. See The knetik CLI.

Terminal window
curl http://localhost:3000/api/health

It answers {"ok":true,"modules":<count>}. The health endpoint needs no sign-in.

Symptom Likely cause
The server refuses to start and names the base URL, allowlist or sign-in method KNETIK_MODE=local is not set, so the server runs in hosted mode and needs them. See Local mode.
A 403 that mentions “no sign-in” You reached a local-mode server from another machine or hostname. See Local mode.
A model call fails mid-run Run check:env
The page is blank or stale after a module change Rebuild with npm run build and restart