check:env
npm run check:envIt reads the same .env that npm start reads and checks it. Nothing is started and nothing is changed.
What it checks
Section titled “What it checks”- Your Node version is 22.19 or newer.
.envexists and every line can be read.KNETIK_DEFAULT_MODELis set, andOPENROUTER_API_KEYis set when any model, image or search setting uses OpenRouter.KNETIK_AI_SEARCHisopenrouterorbrave, and has the key it needs (OPENROUTER_API_KEYorBRAVE_API_KEY).- Model ids are real. They are checked against the model library’s own catalog:
KNETIK_DEFAULT_MODEL,KNETIK_AI_CHAT_MODEL,KNETIK_AI_SEARCH_MODELandKNETIK_AI_IMAGE. A typo fails here instead of in the middle of a run. KNETIK_MODULE_CONFIGis valid JSON.KNETIK_STUB_MODEL=1is not set, since it forces the scripted model.- Your OpenRouter key works: one call to OpenRouter reads the key’s status (and, when the key has a limit, the credit left).
It prints a note when KNETIK_MODE=local is not set.
| Flag | Effect |
|---|---|
--no-key-check |
Skip the one network call to OpenRouter |
Output
Section titled “Output”On success it prints a summary: mode, the agent model, the code-call model, images, search, images per run, and a masked key (the first and last few characters only). It also reminds you to build first if apps/server/dist/server.mjs does not exist.
Your .env looks good. mode local agents openrouter/anthropic/claude-sonnet-5.5 code calls openrouter/anthropic/claude-sonnet-5.5 (same) images off (modules that draw images will say so) search openrouter (web results are billed by OpenRouter on top of the model) images/run 4 at most key sk-or-…xyzOn failure it lists what to fix and exits with a non-zero status.