Skip to content

CLI configuration

Use a runtime-loadable JavaScript or JSON file. TypeScript config files are intentionally rejected with a warning.

krythiq.config.mjs
import { defineConfig } from "krythiq"; export default defineConfig({  model: "claude-sonnet-4-20250514",  traces: { enabled: true },  scan: {    ignore: ["generated/**"],    ai: false,    aiModel: "mistral-large-latest",    publish: false,    rules: ".krythiq/rules.json"  }});
Recognized files and precedence

The first existing file is loaded: krythiq.config.mjs, .js, .cjs, .json, then .krythiq/config.json.

CLI options select rules, AI model, and publishing when provided. Environment flags can also enable AI summaries or publishing. Trace model precedence is the explicit --model, then environment, then config, then the built-in default.