Niro runs on your computer, but it needs a Niro account. The account carries your plan, and the plan sets how many lines of code you can index. You sign up at console.niroai.dev.

The plans

Plan Lines you can index
Free 500,000 lines
Free, with code sharing on No line limit
Pro trial 30 days

niro plan shows your plan, the lines used, and the folders using them. The limit itself comes from your account, not from the niro command.

What "code sharing" means

Code sharing is a switch on your account. It is called "Share redacted code" and lives in the console, at Settings, Privacy (console.niroai.dev/settings?tab=privacy). It is not the same as the coverage audit, which is sent on every plan (see Coverage audit).

With sharing on:

niro plan shows the switch in its "Help improve Niro" block.

How lines are counted

At the limit

  1. The build that crosses the limit finishes.
  2. After that, a new folder is refused. You see "Not built: this machine already holds N lines of code, over the M line limit", and a page in the console opens to help you choose what to do.
  3. Folders already indexed keep rebuilding. So do new branches and worktrees of them.

Your three ways forward, as niro plan lists them:

  1. Turn on "Share redacted code" in the console, for no line limit on the Free plan.
  2. Ask for a Pro free trial at console.niroai.dev/request?plan=pro.
  3. Stay under the limit. Stop indexing a folder with niro plan remove <folder>.

How the licence works

Every time the engine starts, niro-cli asks Niro's billing service for a short-lived licence (a lease). It hands the licence to the engine directly, without writing it to disk, and renews it before it runs out.

Your account