# FAQ: licence and plans

### What plans are there, and how many lines does each allow?

Free allows 500,000 lines. Free with code sharing on has no line limit. There is also a 30-day Pro trial. `niro plan` shows yours. See [Licence and plans](https://help.niroai.dev/cli/licence-and-plans/).

### What counts as a line?

Every line of every file Niro reads, blank lines and comments included. Two copies of one repository (branches, worktrees) count once, by the larger. Different repositories add up. A folder inside another indexed folder counts once.

### "Not built: this machine already holds N lines of code, over the M line limit."

This computer is at or over your plan's line limit, and this folder would add new lines. A page in the console opens to help you choose. The choices are also listed under the next questions.

### "No room left under the limit, so a new folder will not be indexed. Folders already indexed still rebuild."

You are at your limit. Folders you already index keep updating. A new folder is refused until you free room or change plan.

### "Not indexing: this machine already holds N lines ..." with a list ending "removing it frees nothing"

The engine lists your folders and how many lines each counts for. "Same repository: removing it frees nothing" marks a second copy of a repository you already count. Removing it does not lower your total.

### How do I get past the limit?

`niro plan` lists three ways:

- **Turn on "Share redacted code"** in the console (Settings, Privacy). On the Free plan this removes the limit.

- **Ask for a Pro free trial** at `console.niroai.dev/request?plan=pro`.

- **Stop indexing a folder** with `niro plan remove <folder>`.

### What does "no line limit while you share" mean, and what is shared?

Code sharing is the "Share redacted code" switch on your account. With it on, the Free plan has no line limit, and the background watcher sends the files Niro indexes, masked, by itself: the whole set the first time, then only changed files. Keep a folder out with `niro share exclude <folder>`. You can also send one folder at once with `niro audit-push-repo`.

### Is code sharing the same as the coverage audit?

No. The coverage audit sends small masked snippets on every plan, whether sharing is on or off. See [Coverage audit](https://help.niroai.dev/cli/coverage-audit-and-consent/).

### "Could not read your plan from Niro. Check your connection, then run niro plan again."

Niro's service could not be reached, or did not answer. Check your connection.

### "Niro will not license the local engine: <reason>"

Niro's service refused the licence, so the engine stopped. The reason follows the message. If it is about your account, write to [help@niro.ai](mailto:help@niro.ai).

### "Could not renew the local engine's licence ... It keeps working offline for up to a day."

The licence service could not be reached. Niro keeps working for up to a day, and renews when it can.

### "Working on an expired licence: N hours of offline allowance left"

The licence has run out and could not be renewed. The engine keeps working for the hours shown. Reconnect before they run out.

### "Not indexing: ..." followed by "Reason given: ..."

The engine refused to build because its licence was missing or not valid. The reasons are:

- **No licence reached the engine.** It was started some other way than by `niro`.

- **The service refused it.**

- **It has run out.**

- **It does not match this engine, or its signature or key is not one the engine trusts.**

- **It is damaged or incomplete.**

Run the command again through `niro` (for example `niro build`). If it persists, run `niro upgrade`.

### "The Niro CLI has not handed this engine its licence yet."

The engine has just started and is waiting for its licence. Ask again in a few seconds. If it keeps saying this, the engine was not started by `niro`: connect your agent with `niro mcp install`.

### Typing `niro-local build` or `niro-local ask` is refused.

The engine runs only with the licence `niro` hands it. Use `niro build` and `niro ask`.

### Does the Pro trial have a line limit?

The Pro trial lasts 30 days. `niro plan` shows its limit, if it has one.

### I am over the limit. Will my folders and branches still update?

Yes. Folders already indexed keep rebuilding, and so do new branches and worktrees of them. Only a new folder is refused.

### A page opened in my browser by itself, at ".../limit".

That is the console's page for choosing what to do at the limit. `niro start` and `niro init` open it when a folder would take you over.