# License

TKTail shows which license is in use at all times - in the **license badge** on the right of
the toolbar, just before the search box, and in short at the end of the status bar.

| Badge | What it means |
|---|---|
| `FREE · NON-COMMERCIAL` | TKTail Free: free forever for personal, educational and other **non-commercial** use |
| `TRIAL · 18 DAYS` | A Pro trial: commercial evaluation and testing are permitted while it is valid; it turns amber in its last three days |
| `PRO PERSONAL · <name>` | A paid personal license: commercial use by the named person |
| `PRO BUSINESS · <organization>` | A paid business seat: commercial use for the organization |
| `INVALID LICENSE · FREE` | The stored license could not be verified (changed or damaged); TKTail Free applies |
| `DEVELOPER · <name>` | A Developer license, for developing and testing TKTail itself: every feature is available. It is not a paid license and is shown in the neutral text colour, never like one |

The text always names the license - the colour (amber, blue, green, red) only repeats it. In a
narrow window the badge shortens (`FREE`, `TRIAL · 18D`, `PRO PERSONAL`).

*Screenshot: The license badge and the status bar: Free, Trial, Pro Personal (dark theme)*

*Screenshot: The same in the light theme*

Final legal wording of the license terms is subject to the EULA; **Help > About TKTail >
View License Terms...** shows the current draft for your edition.

Some features need a Trial or Pro license - for example [linked windows](https://tktail.dev/help/windows/) and
[Metrics](https://tktail.dev/help/metrics/). Without one they stay visible, marked *(Pro)*, and explain what they need
when chosen. [AI integration (MCP)](https://tktail.dev/help/mcp/) for what is open in TKTail works in every edition, and so does following
[rotating dated log files](https://tktail.dev/help/rotating-dated-logs/) - keeping their previous files open beside the LIVE one needs a Trial or
Pro license.

The editions and what each includes: [tktail.dev/pricing](https://tktail.dev/pricing/). Buying a license and managing
a subscription happen in TKTail's account portal, linked from [tktail.dev/account](https://tktail.dev/account/) once it
is open - TKTail itself never contacts it; the license you receive works offline.

## Details

Click the badge (or **Help > License...**) for **About / License**: edition, licensed to,
e-mail, organization, usage rights, trial or update dates, license ID, the license's own
description and a summary of its terms.

*Screenshot: About / License with a Pro Personal license*

Hover the badge for a short summary; right-click it for **License Details**, **Enter / Change
License Code**, **Import License File**, **Copy License Information**, **Open License
Folder**, **Reload License** and **Show License Owner in Application Chrome**.

**Copy License Information** copies what support needs (product, version, edition, license
ID, owner, usage, dates) - never the license code itself.

## Entering a license code

You receive a license code by e-mail (a long line starting with `TKT1.`) or as a license file
(`.tktlic`).

1. **Help > Enter License Code...** (or right-click the badge).
2. Paste the code into the box - line breaks added by your e-mail program do not matter - or
   click **Paste from Clipboard**, or **Import License File...**.
3. TKTail checks the code after a moment (or click **Validate**). A valid code shows its
   details - edition, your name, e-mail, organization, usage, license ID, dates, description.
   Check that it is yours.
4. Click **Activate License**. The dialog confirms *License activated successfully* and the
   badge changes at once - no restart.

*Screenshot: Enter License Code with a verified Pro Personal license*

- Checking a code works **offline**: the code carries a digital signature that TKTail verifies
  on your computer. Nothing is sent anywhere.
- A code that was changed, damaged, is for another product or has expired is refused with a
  short reason (*Invalid license code: ...*). **Copy Diagnostics** copies the technical
  result for support (never the code).
- Changing a license (**Change License Code...**): your current license stays active until the
  new code has been verified and saved. If anything goes wrong, nothing changes.
- The clipboard is read only when you paste or click **Paste from Clipboard**.
- If a license file beside TKTail.exe is in use (see below), activating installs the new
  license but says that the one beside TKTail.exe stays in use - it takes precedence.

## Trial and updates

- When a trial ends, TKTail continues as **TKTail Free** (non-commercial use). Your settings,
  alert rules, formats and history stay as they are; About shows when the trial ended.
- A paid license is **perpetual**. It includes updates for its update period; when that period
  ends the badge turns amber and the details say *Updates ended &lt;date&gt; - this license does not
  expire*: the versions released until then stay licensed.

## Privacy

- The e-mail address is never shown in the toolbar or the status bar - only in the tooltip and
  in About.
- Hide the owner's name (for screenshots or screen sharing): right-click the badge > **Show
  License Owner in Application Chrome**. The badge then shows only `PRO PERSONAL` /
  `PRO BUSINESS`.
- The license code is never written to TKTail's logs.

## Command line

```
tktail license status
tktail license info
type license.tktlic | tktail license activate --stdin
tktail license import license.tktlic
tktail license status --license-file test.license   (which license a file would give)
```

The code is deliberately **not** accepted as a command-line argument - other programs and your
shell history could read it there. Pipe it (`--stdin`) or import the file. See
[Command line](https://tktail.dev/help/command-line/) and docs/CLI.md.

## Where the license is kept

The license is a small file, **`TKTail.license`** - the signed code itself. Editing it makes the
license invalid. TKTail looks for it in this order and uses the first valid one:

1. a file given with **`--license-file <path>`** when TKTail is started (for testing an edition:
   only that file counts);
2. **`TKTail.license` beside `TKTail.exe`** - e.g. a portable copy or a test installation that
   should have its own license;
3. **`TKTail.license` in your TKTail data folder** - `%LOCALAPPDATA%\TKTail\`, the folder you chose
   in Settings > Files & Storage, or in portable mode `data\` beside TKTail.exe
   ([Where TKTail stores data](https://tktail.dev/help/data-and-privacy/)). This is where **Enter License Code** and **Import
   License File** put it.

**Help > License...** shows which file is in use (*Source*), a file that was not valid and why
(*Ignored*), and an installed license that is not in use because another one takes precedence.
**Help > Open License Folder** shows the license file in File Explorer; **Help > Reload
License** reads the files again (TKTail also notices a changed file when you switch back to it).

Moving to another computer: copy `TKTail.license` there and import it (Help > Import License
File...) or place it in one of the folders above - it is verified again there. TKTail keeps no
license data in the Registry.

---

The HTML page: https://tktail.dev/help/license/
