Skip to content

Quickstart

This gets Knetik running locally, for just you, with real models through OpenRouter. No Docker, no sign-in, no database server.

  • 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.json lists what is installed.
  1. Install dependencies from the repository root.

    Terminal window
    npm install
  2. Create your settings file.

    Terminal window
    cp .env.example .env

    Open .env and set at least OPENROUTER_API_KEY and KNETIK_DEFAULT_MODEL. The file is gitignored. See The .env file.

  3. Check the settings before you start anything.

    Terminal window
    npm run check:env

    It confirms the model ids exist and the key works. See check:env.

  4. Build the web app and the server.

    Terminal window
    npm run build
  5. Start Knetik.

    Terminal window
    npm start
  6. Open http://localhost:3000. You land on the Overview.

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.

Modules live in their own repositories and are installed from a pinned commit:

Terminal window
SHA=$(git -C ../hello-module rev-parse HEAD)
node packages/cli/src/bin.ts add ../hello-module@$SHA
npm run build

add 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.