Quickstart
This gets Knetik running locally, for just you, with real models through OpenRouter. No Docker, no sign-in, no database server.
Before you start
Section titled “Before you start”- Node 22.19 or newer. Knetik’s packages ship TypeScript that Node runs directly.
- An OpenRouter API key, for real model calls. Models cost money per call.
- A checkout of the Knetik repository with at least one module installed. The repository’s
knetik.modules.jsonlists what is installed.
Run it
Section titled “Run it”-
Install dependencies from the repository root.
Terminal window npm install -
Create your settings file.
Terminal window cp .env.example .envOpen
.envand set at leastOPENROUTER_API_KEYandKNETIK_DEFAULT_MODEL. The file is gitignored. See The .env file. -
Check the settings before you start anything.
Terminal window npm run check:envIt confirms the model ids exist and the key works. See check:env.
-
Build the web app and the server.
Terminal window npm run build -
Start Knetik.
Terminal window npm start -
Open http://localhost:3000. You land on the Overview.
Start your first run
Section titled “Start your first run”Go to Modules, pick a module and open its Start tab. Fill in the form and press Start run. The run page shows the stages, and a gate appears when the module needs you. See Run detail and gates.
Installing a module
Section titled “Installing a module”Modules live in their own repositories and are installed from a pinned commit:
SHA=$(git -C ../hello-module rev-parse HEAD)node packages/cli/src/bin.ts add ../hello-module@$SHAnpm run buildadd shows the module’s connectors and permissions and asks you to confirm. After installing, rebuild: modules are bundled with the server. See The knetik CLI.
Where to go next
Section titled “Where to go next”- Writing your own module: Module authoring.
- Every setting: Environment variables.
- Putting it on a server: Hosting.