Your license
Writing, checking, formatting and building a model never need a license, and neither does kq validate in any format. Seeing the diagram needs you to be signed in to Kanoniq, on the free plan or a paid seat, two exports and checking the policy sets you write need a paid seat, and the portal the Portal package. This page says which, and how signing in works.
What needs what
Each plan grants the features ticked in its column, and a package adds its features to every paid seat of the organization holding it:
Plans
Packages
Without what a feature needs, it says why and does nothing; where a paid seat would turn it on, it links to what a paid seat adds. Your model and every free feature work the same whatever the state of your seat.
Signing in
Run Kanoniq: Sign In in VS Code, or kq login in a terminal, with the licensing package installed beside kq (Installing). Either shows a short code and the Customer Hub page, which VS Code opens for you and kq login asks you to open; sign in there and confirm the code. Use the email your organization assigned your seat to; with no seat assigned to it, you are signed in on the free plan.
The machine then holds a lease: a small signed file that lasts 7 days on a paid seat, renewed about once a day while you use Kanoniq, and 14 days on the free plan, renewed every 2. It is kept in your configuration directory, in licenses/, and VS Code and kq share it, so a machine counts once. You can be signed in on 3 devices at once; signing in on a fourth signs out the one used longest ago. A dev container, WSL or Codespaces counts as a device of its own. Kanoniq: Sign Out and kq logout sign a machine out, and the Customer Hub's Devices page lists yours and signs any of them out.
Your configuration directory is ~/.config/kanoniq/ on Linux (or $XDG_CONFIG_HOME/kanoniq/), ~/Library/Application Support/Kanoniq/ on macOS, %APPDATA%\Kanoniq\ on Windows.
When your seat moves or ends
Your organization's admin assigns seats in the Customer Hub. When they move yours to someone else, or take it back, your next renewal is refused: within about a day if you are online, and within 7 days at most. VS Code says so once in a notification and shows it in red in the status bar; kq says so when a paid feature is refused. Sign in again when a new seat is yours.
If Kanoniq can't reach its license service, you keep working until the lease ends. In its last 2 days the status bar says when the service was last reached. Once your seat's paid year ends, renewals continue for 14 days with a warning, then stop until the seat is renewed.
Offline licenses
For a network that cannot reach Kanoniq, an Enterprise contract can include offline licenses: a signed kanoniq.license file for a named person, valid for the contract's term. Enter it with Kanoniq: Enter License in VS Code, which keeps it in VS Code's secret storage, or put it where kq looks: each file named with --license <file>, the KANONIQ_LICENSE environment variable, or a file ending in .license in your configuration directory. Don't commit one to a repository.
In CI
A pipeline can't sign in. Your organization's admin downloads a CI license from the Customer Hub's list of licenses; keep it as a secret in KANONIQ_LICENSE. It runs only in kq, never in VS Code, and lasts until your organization's latest seat ends. With more than one CI license, kq counts the one issued last.
# GitHub Actions
- run: kq svg --out landscape.svg models/my-model
env:
KANONIQ_LICENSE: ${{ secrets.KANONIQ_LICENSE }}
A portal
kq portal:build needs the Portal package, so build the site on a machine signed in to a seat of an organization holding it, or in a pipeline whose CI license lists it. It asks Kanoniq for a license for the repository, by the id in its kanoniq.repository.json, and builds it into the site, so the people you share the site with see its views without signing in. The license lasts until your organization's Portal package ends; build the site again after it renews.
What kq license shows
kq license shows the machine's lease, and each license file kq finds with its state; see kq license.
On the command line
kq svg, kq png and kq portal:build need a Kanoniq license, and so does checking your own policy sets; nothing else does, kq validate in every format included. kq looks for one only when you run one of them or kq license, or when a model you validate, build or audit has a policy set of its own: in each file you name with --license <file>, in the KANONIQ_LICENSE environment variable, and in your configuration directory. The places, how several licenses count together, and what happens when one runs out are in Your license.
Policy sets
Checking the policy sets you write needs a Kanoniq license for a paid plan: every set in your model, default-model and default-architecture included, and a baseline kq materialize wrote out. A baseline named by preset, exemptions, no-policy and the checks on a baseline's policies are free. Writing policies, and checking that they make sense, is free too.
Without a license, the sets that need one are skipped. Nothing fails: each run says once which sets it did not check, with a link to what a paid seat adds, kq on standard error and VS Code as one warning on the model's .g.kq, whose code links Your license. The viewer's Information pane says the same under a context's findings. In CI, --require-license makes a skipped set fail the run with exit 3 instead. Where kq finds a license is in Your license.
© 2026 Extenza Works. All rights reserved.