Skip to content

The InCentru Client

The Client is a local page to set up this machine for any AI tool and to see what AI tools worked with, with the real values filled in. Run incentru on its own to open it. It has these screens:

  • Start: three steps (add a system, choose what AI sees, connect your AI tool), this machine’s state, and the demo: Start the demo runs the sample systems while the Client runs (and again when it starts), shows the questions to ask and what each system really receives; Stop and Remove take it away.
  • Connections: each connection’s last test, its settings, its encrypted secrets (shown as set, never as a value), and what an AI can do with it: reads, and changes that ask first. Testing reports counts from the target’s description (“entities 3 · fields 12”), never records. Adding a connection tests it before anything is saved.
  • What AI sees: the masking level, plain fields and exceptions per field, with a live preview of an invented record next to what the AI would get. The preview runs on the node, with the same masking rules as everything else; secrets are always left out. Under Free text, the record’s note is shown four ways (Placeholder, Summary, Names hidden, Real), and choosing one sets it for every system. Below it, Local model sets the model on this machine that writes summaries: saving tries it on an invented text and shows that text next to the summary the AI would get.
  • AI tools: the MCP configuration for each tool, side by side, and an “Add to ” button that does what incentru setup <tool> --write does, for every project or for one project folder, or runs the tool’s own add command (claude mcp add, code --add-mcp). It can also put the incentru instructions guide in the tool’s rules file (~/.claude/CLAUDE.md, ~/.codex/AGENTS.md, ~/.gemini/GEMINI.md, or the project’s AGENTS.md, CLAUDE.md or GEMINI.md). Today’s activity per tool.
  • Activity: every request AI tools made in the last day, week or month (tool, connection, action, whether it changed something, how many values were hidden; never the values), and what the locks refused.
  • AI sessions: what AI tools received as placeholders, with the real values behind them, shown only to the person at this machine (see Reveals below). A free text that went with a summary is shown as the original text next to the summary the AI got, with its placeholders.
  • This machine: the version, how incentru runs here, whether incentru up runs, a “Check for updates” button (it reads the latest release’s signed manifest, only when clicked; on Linux an Update button installs it, elsewhere it shows how to update), running the Client at sign-in, the system service (installing it needs an administrator, so the Client shows the command), run history limits, and the locks: each one in force, who set it, and your own locks.
  • InCentru Cloud: optional; check that this machine can reach InCentru Cloud, join an organisation with a setup key, choose which connections to bring, Stay connected (runs incentru up in the background for your user), pin the administrators’ keys, recover the org key, and leave the organisation.

It is not InCentru Cloud and runs no actions. Nothing else starts it (up, the service and the Helm chart never do).

The AI model gets placeholders and never a value. The person at the machine can still see what the AI tool found or proposes, with the real values, in the Client.

Each incentru mcp process is one AI session. Every call whose input or answer holds a placeholder is kept on this machine: the call as the AI tool sent it, the answer it got (with placeholders), and the real values behind exactly those placeholders. Each line is encrypted (AES-GCM) with the machine’s local key (local.key), bound to its session, and written to reveal/<session id>/ in the state directory (files 0600, directories 0700). Nothing is kept for a call without placeholders.

  • Links. A result that hid values carries a second text part with a link to that call in the Client, such as http://127.0.0.1:7437/#sessions/xhnyje4d/1, and the AI tool is told to offer it to the person. A dry run of a change says the person can check the change with the real values before approving it. The link holds only a session id and a call number: it means nothing on another machine and opens nothing without a Client session.
  • show_user. A read-only tool, listed only while reveals are on. It takes text (up to 32 KiB, with placeholders) and an optional title, keeps the text for the Client and returns only a link. An AI tool uses it to put a plan such as “Set [name 1]’s manager to [name 2].” in front of the person with the real names.
  • The AI sessions screen lists kept sessions (AI tool, started, last call, calls) with a keep-for control (Off, 1 hour, 1 day, 1 week) and Clear all. A session shows each call, newest first: the tool, the connection, badges (read, change, dry run, failed, shown), the change written out with the real values (“Change to check” for a dry run), the answer, and the texts shown with show_user. “Read a text from the AI tool” fills in any pasted text that holds placeholders with that session’s values. Each session can be refreshed or cleared.
  • Keep time. 24 hours by default. incentru settings reveal --keep-hours N sets it (0 to 720; 0 switches reveals off and deletes what is kept), incentru settings reveal --clear deletes everything kept, and incentru settings prints a reveals: line (kept 24 hours or off). Expired files are deleted when incentru mcp starts and by the Client.
  • Record. Every reveal is written to activity.log as an entry for the tool “incentru Client”, with "reveal":"session" (a session was opened) or "reveal":"text" (a pasted text was filled in) and "revealed": N, the number of distinct values shown, never the values. These entries do not count as AI requests in the Client’s figures for today.
  • Lock. The no_reveal lock (see Locks) switches reveals off for the machine’s owner.

The Client shows values only from what AI tools received as placeholders; it does not read connections’ data itself.

incentru mcp keeps a log of what AI tools ask, activity.log in the state directory: the tool’s name, the connection and action, whether it was a change, and how many values were hidden. It holds names and counts only, never inputs, results or values, and moves to activity.log.1 at 1 MiB. The Client’s counts come from it. Each line is numbered and holds the SHA-256 of the line before it; see Checking the records.

Terminal window
incentru # opens the Client, starting it in the background if needed
incentru client --install # runs it in the background for you, from now on and at sign-in
incentru client --uninstall # stops and removes it, and signs every browser out
incentru client # runs it in this terminal, until Ctrl-C
incentru client --no-browser --port 8765

The install script and incentru setup <tool> --write set the Client up to run in the background for your user: a systemd user service on Linux (systemctl --user status incentru-client), a launch node on macOS, and a sign-in entry on Windows. Where there is no such service manager, incentru starts the Client when it is needed, as do the AI sessions’ links, and it keeps running until the machine restarts. incentru client --background is the command the service runs: no browser and no link printed. The Client never runs as root, and incentru up never starts it.

It listens on 127.0.0.1:7437 by default; --port N chooses another and --port 0 a free one. If a Client already runs for the same state directory, incentru client opens that one instead. While it runs it records its port and a launch key in client.json in the state directory (readable by you only), so the links AI tools hand out point at it and incentru can ask it for a new link. The browser keeps its session in localStorage, so a link opened in another tab is signed in, and the Client keeps the sessions (as SHA-256 hashes, in client-sessions.json) across restarts, updates and reboots. A session ends after 30 days without use; incentru client --uninstall ends them all. A link opened without a session is remembered and opened once a one-time link has been used.

Its protections:

  • It listens on 127.0.0.1 only; there is no option to change that. Real values reach the browser only with a session.
  • The link carries a one-time token in its fragment, which never reaches the server’s logs or a Referer. The page trades it for a session once; the link then stops working, and an unused one expires after 10 minutes. Run incentru again for a new link. Only a process that can read client.json gets one.
  • Every request must name 127.0.0.1:<port> or localhost:<port> as its Host, so a DNS-rebinding page cannot reach it.
  • No cross-origin access: no CORS headers, requests from other origins are refused, and the API takes JSON with the session in an Authorization header only. A strict Content-Security-Policy applies.

Secrets typed into it are encrypted on the node as connection add encrypts them, and never shown again. On a remote machine, forward the port over SSH and open the link locally:

Terminal window
ssh -L 7437:127.0.0.1:7437 server # then, on the server: incentru (or incentru client --no-browser)

Run it as the user who owns the state directory (with sudo -u incentru for the service’s), or pass --state-dir. Joining an organisation enrols the node; restart incentru up (or sudo systemctl restart incentru) to connect. On an enrolled node, InCentru Cloud’s settings take the place of the local ones while the node runs.

Each line of activity.log and lock-refusals.jsonl carries seq, its entry number counted from the record’s first entry (it carries on in the new file when the record moves to .1), and prev, the SHA-256 of the previous line’s exact bytes. A line that is changed, removed or put in no longer fits the line after it.

Terminal window
incentru activity check
activity intact: entries 313–5234 (1–312 rotated out)
last entry: 2026-11-27 10:02 UTC, tool-a, hr find_person
head activity:5234:9f2c…
lock-refusals no entries

When an entry does not fit, the command names it and the entry before it, by time, tool and connection, and exits 1. --json prints the same as JSON. The Client’s Activity screen says whether the log is intact.

On its own, the check cannot see a change to the last entry, the newest entries removed, the older file removed (it looks like entries that rotated out), or the whole record written again with new links. A head kept somewhere else covers those: keep the head line the command prints (in a ticket, an email, another machine), and later run

Terminal window
incentru activity check --head activity:5234:9f2c…

It says whether the record still holds that entry unchanged, and exits 1 when it does not. A node enrolled with InCentru Cloud reports each record’s head when it connects, when the record grows (at most once a minute) and at least once an hour, so the organisation holds heads the node alone cannot take back. Only entry numbers and hashes are sent, never an entry.