npm start
Build, then start
Section titled “Build, then start”npm run build # builds apps/web, then apps/servernpm start # node --env-file-if-exists=.env --no-warnings apps/server/dist/server.mjsnpm 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.
What happens at start-up
Section titled “What happens at start-up”- The server connects to the database and runs its migrations.
- It loads the installed modules.
- It resumes runs that were mid-flight when it last stopped. Runs waiting at a gate keep waiting; runs that were working continue.
- It listens on port 3000, or
PORT.
Another port
Section titled “Another port”PORT=3100 npm startRunning without real models
Section titled “Running without real models”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.
Check it is up
Section titled “Check it is up”curl http://localhost:3000/api/healthIt answers {"ok":true,"modules":<count>}. The health endpoint needs no sign-in.
Troubleshooting
Section titled “Troubleshooting”| 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 |