Skip to content
Cognolo

Cognolo is in early access, and its hosted service isn’t open yet. This guide describes how the dashboard and the runtime are built to work. Some parts, such as the GitHub App and the code reader, have so far been tried only on sample code. Ask about early access

Guide › Setting up › Install in your app

Install the package

Adds Cognolo’s package to your app with one command. You can do it yourself by following the steps exactly.

What it’s for
Adds Cognolo’s package to your app, so the rest of the steps have something to work with. A “package” is ready-made code your app can use, like an app you install on a phone.
Who does it
You can, by following the steps below exactly. Or your developer, in a minute.
You’ll know it worked when
Your app’s package.json file lists @cognolo/runtime.

Doing it yourself

  1. Open a terminal. A terminal is a window where you type commands. On Windows, open the Start menu, type PowerShell and press Enter. On a Mac, press ⌘ + Space, type Terminal and press Enter.
  2. Go to your app’s folder. Type cd (with a space after it), then drag your app’s folder from your files onto the terminal window, and press Enter. Your app’s folder is the one with a file called package.json in it.
  3. Type the install command exactly as below, then press Enter.
  4. Wait until it finishes. Lines of text scroll past; that’s normal. It’s done when you can type again. A few lines saying “warn” are usually fine; a line saying ERR! is not (see below).
  5. Check it worked. Open package.json in any text editor and look for @cognolo/runtime. If it’s there, this step is done.
npm install @cognolo/runtime @anthropic-ai/sdk zod

If your app’s folder has a file called pnpm-lock.yaml, use pnpm add @cognolo/runtime @anthropic-ai/sdk zod instead. If it has yarn.lock, use yarn add @cognolo/runtime @anthropic-ai/sdk zod.

Asking someone else to do it

Copy this and send it to your developer, or paste it into an AI coding assistant working in your app:

Please add Cognolo to our app: run `npm install @cognolo/runtime @anthropic-ai/sdk zod` in the app’s folder (or the pnpm or yarn version). It needs Node.js 20 or newer and zod 4. The details are in Cognolo’s guide, “Install the package”.

For your developer

Cognolo comes as one package, @cognolo/runtime, used by your app’s server and by its pages. It works with two others your app may already have: Anthropic’s SDK (@anthropic-ai/sdk), which talks to the model, and zod, which checks every tool’s input.

Before you start

  • Node.js 20 or newer.
  • A Next.js app using the app router: the install writes its files for that.
  • React 18 or 19 for the assistant’s panel, which a Next.js app already has.

Run it

  1. Open a terminal in your app’s folder, the one with package.json in it.
  2. Run the command for the package manager your app uses (below). If you’re not sure, look for package-lock.json (npm), pnpm-lock.yaml (pnpm) or yarn.lock (yarn).
  3. Check it worked: package.json now lists @cognolo/runtime, @anthropic-ai/sdk and zod under dependencies.
npm install @cognolo/runtime @anthropic-ai/sdk zod

# or, with pnpm
pnpm add @cognolo/runtime @anthropic-ai/sdk zod

# or, with yarn
yarn add @cognolo/runtime @anthropic-ai/sdk zod

If something goes wrong

A warning about zod
Cognolo needs zod 4. If your app uses zod 3, upgrading may need changes in your own code, so ask your developer before you do.
A warning about @anthropic-ai/sdk
Cognolo needs version 1.6 or newer.
“Unsupported engine” or a Node.js error
Update Node.js to version 20 or newer.

Keep the package up to date

Update @cognolo/runtime now and then. A newer package reports more, such as which tool crashed and on which commit. It still never sends what was asked or what the error said, unless you turn that on in your app. See Update Cognolo in your app.

Next

Add the files.