Local mode
Local mode is Knetik for just you, on your machine. You turn it on with one line in .env:
KNETIK_MODE=localWhat it gives you
Section titled “What it gives you”| Concern | In local mode |
|---|---|
| Sign-in | None. The dashboard treats you as a synthetic admin called “Local operator”. |
| Database | A SQLite file (knetik.db), through Node’s built-in node:sqlite. No Docker and no database server. |
| Data on disk | Under .knetik/local/ in the directory you start from: knetik.db (the database), flue.db (the agent framework’s store) and artifacts/. |
| Artifacts | Stored as files on disk. |
| Port | 3000, or PORT. |
Set KNETIK_DATA_DIR to move the whole folder. KNETIK_FLUE_DB and KNETIK_ARTIFACTS_DIR move the agent store and the artifact files separately.
It only answers on this machine
Section titled “It only answers on this machine”Because there is no sign-in, the server refuses requests that do not come from your machine. A request must arrive from a loopback address, and its Host header must be localhost, 127.0.0.1, [::1] or a *.localhost name. Anything else gets a 403 explaining this. The Host check also stops a web page on another site from reaching your server by DNS rebinding.
What is off in local mode
Section titled “What is off in local mode”- Connectors are off. Connections need sign-in to exist, so the Connectors page reads “connectors need sign-in to be enabled”. Modules that mark a connector optional skip it; modules that require one block at that stage. To use Slack, Google or MCP, run a hosted deployment, or use
knetik dev, which mocks connectors. - One person. There are no users, roles or allowlist to manage.
Local mode and knetik dev
Section titled “Local mode and knetik dev”They look alike but are different tools.
Local mode (npm start) |
knetik dev |
|
|---|---|---|
| Purpose | Run Knetik for real, for yourself | Develop one module |
| Model | Real, from your .env |
A scripted model from the module’s fixtures/dev-model.ts |
| Connectors | Off | Mocks from fixtures/dev-connectors.ts |
| Reload | No | Hot reload when the module changes |
See The knetik CLI.
Other modes
Section titled “Other modes”Without KNETIK_MODE=local, the server expects a base URL and a sign-in method (and KNETIK_DATA_DIR on a persistent volume), and refuses to start otherwise (it fails closed). See Hosting.