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

Settings and keys

The keys and settings your app needs, where to make them, and where to put them on your host.

What it’s for
Gives your app the keys and addresses it needs to talk to Cognolo and to the AI model, without putting them in the code.
Who does it
You make the key on the Setup page. You or your developer put the settings where your app is hosted.
You’ll know it worked when
Your host shows the settings saved, for each environment (Dev, and later QA and Production).

Doing it yourself

  1. Make a key. On your app’s Setup page, under the environment (start with Dev), make a key. Copy it straight away: Cognolo shows it only once.
  2. Open your host’s settings for environment variables. On Vercel: your project, then Settings, then Environment Variables. On Render: your service, then Environment. On Netlify: Site configuration, then Environment variables. Elsewhere, look for “environment variables” in the project’s settings.
  3. Add each setting from the table below: its name exactly as written, and its value.
  4. Save, then repeat for each environment you use, each with its own key.

A key is like a password for your app. Never email it, put it in a chat, or save it in your app’s code. If one leaks, make a new one on Setup.

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’s settings to each environment where our app is hosted: ANTHROPIC_API_KEY, COGNOLO_KEY (I’ll send each environment’s key separately and safely), COGNOLO_URL, COGNOLO_PUBLIC_KEY and COGNOLO_ENV. Details are in Cognolo’s guide, “Settings and keys”.

For your developer

Put these in each environment, in its own settings or an environment file such as .env.local that is in .gitignore. Never in the repository.

ANTHROPIC_API_KEY
Required. The model key that pays for the assistant (an Anthropic API key). Without it the assistant says it isn’t set up yet.
COGNOLO_KEY
This environment’s key, made on Setup. A key made for Dev doesn’t work in Production.
COGNOLO_URL
The address of Cognolo that your app talks to: https://api.cognolo.com.
COGNOLO_PUBLIC_KEY
Cognolo’s public key, so your app can tell its rules really came from Cognolo. It isn’t a secret. For now your Cognolo contact gives it to you; showing it on Setup is coming.
COGNOLO_ENV
Which environment this is, for example dev, qa or production. It must match the environment the key was made for.
COGNOLO_COMMIT
Optional. The commit that was deployed, if your host doesn’t send it (see below).

Without the four Cognolo settings the assistant still works, with its built-in rules only: nothing from the dashboard reaches it, and Setup shows no calls.

Keys

  • Each environment has its own key. A key made for Dev doesn’t work in Production.
  • Keep keys out of the repository. Put them in an environment file, such as .env.local, and make sure that file is in .gitignore.
  • Cognolo never shows a key again after you’ve copied it. Lost one? Make a new one.

Choosing the model

On the Setup page, pick whose model key (an Anthropic API key) pays for the assistant. Mine keeps the bill with you. Cognolo’s is planned: each call billed to you at the AI company’s price plus 25%. Today only your own key works. The model itself is chosen in your app’s code (without a choice it is claude-opus-5-5); Setup shows the model each environment reports using. Choosing the model from Setup is planned.

Next

Deploy and check.