CLI
| Command | What it does |
|---|---|
latet version |
Print the Latet version. |
latet serve |
Run the gateway in the foreground. |
latet start |
Start the background daemon (no-op when it is already running). |
latet stop |
Stop the background daemon. |
latet status |
Show whether the local daemon runs, or whether the connected server accepts this computer’s token. |
latet env |
Print the environment variables that route a client through Latet. |
latet dashboard |
Open the dashboard here or on the connected server: what reached the model, and how it was masked. |
latet claude |
Run Claude Code through Latet, for this session only (plugin + verify-only gateway); arguments pass through. |
latet codex |
Run the Codex CLI through Latet, for this session only; arguments pass through. |
latet opencode |
Run OpenCode through Latet, for this session only (API-key providers); arguments pass through. |
latet gemini |
Run Gemini CLI through Latet, for this session only (an API key or Vertex AI); arguments pass through. |
latet copilot |
Run GitHub Copilot CLI through Latet, for this session only (a provider of your own); arguments pass through. |
latet run |
Run a script or tool with OPENAI_BASE_URL, ANTHROPIC_BASE_URL and GOOGLE_GEMINI_BASE_URL pointing at Latet. |
latet reload |
Apply the configuration file to the running daemon, without a restart. |
latet doctor |
Check the daemon, the plugin bridge, masking and the agent integrations. |
latet global-uninstall |
Take Latet out of your agents for good: what latet global-install did, undone. |
latet upgrade |
Install the latest release of Latet from GitHub, with local name detection and the text in images. |
latet global-install |
Route your agents through Latet for good: every session, in the terminal and in the IDE. |
latet backup |
Save your installation in one file, encrypted with a passphrase: to move it to another machine. |
latet restore |
Restore a backup here: your settings, and the vault with its key when it holds them. |
latet connect |
Connect this computer to a Latet server: your agents’ requests are masked there, in your own space. |
latet disconnect |
Disconnect this computer from its Latet server: its token is revoked and forgotten, and your agents come back to the Latet of this computer. |
latet leak |
Find the secrets in your coding agents’ saved sessions, and say which may have reached a model provider. |
latet reserve-port |
Reserve Latet’s port on Windows, so that Hyper-V, WSL and Docker cannot take it when Windows starts. |
latet tutorial |
See Latet at work in your browser, on a sandbox of its own with invented data. |
latet agents status |
Show which agents are installed and whether they go through Latet. |
latet agents apply |
Route the agents through Latet (backed up, revertible with agents revert). |
latet agents revert |
Undo what agents apply changed (byte for byte when the files were not edited since). |
latet agents print |
How to point each agent at this Latet by hand: for the container image, which cannot edit your agents’ files. The bridge token is never printed: agents merge writes it into the file. |
latet agents merge |
Read an agent’s settings file on stdin, write it on stdout with Latet in (or, with --remove, out). For the container: the bridge token goes into the file without being shown. |
latet service install |
Start Latet automatically at login (no administrator rights needed). |
latet service uninstall |
Stop starting Latet at login. |
latet ner install |
Download the local name and address model (once; it then works offline). |
latet ner status |
Show whether local name detection is available and in use. |
latet ner remove |
Delete the downloaded model. |
latet identity send |
Send this computer’s detected identity to its existing personal server space. An agent cannot run it. |
latet identity show |
The identity Latet masks: your user names, host name and git author. |
latet identity set |
Tell Latet whose identity to mask (in the container it cannot see it), then apply it. |
latet llm status |
Show the reviewer’s settings and whether its server answers (with the sample text). |
latet llm prompt |
Print what the reviewer is told: Latet’s own instructions, then your guidance, if any. |
latet llm guidance |
Show or set your guidance to the local reviewer, added after Latet’s own instructions. |
latet llm key |
Save the API key of the reviewer’s server, or forget it (--remove). |
latet llm trust |
Trust the certificate of the reviewer’s server on another machine of yours (self-signed). |
latet llm test |
Review a text as Latet would before sending it: what the reviewer finds beyond the detectors. |
latet ocr install |
Download the text recognition models (once; they then work offline). |
latet ocr status |
Show whether the text in images is read and masked. |
latet ocr remove |
Delete the downloaded models. |
latet project init |
Write a latet.yaml to start from, at the root of the project’s repository. |
latet project show |
What applies in a project: its latet.yaml, your own settings for it, and what is ignored. |
latet project check |
Check a project’s latet.yaml, recognizers included (for CI, too). |
latet project off |
Turn Latet off in a project: its agents’ requests are refused there, never sent unmasked; start an agent without Latet to reach its provider directly (in your own settings only). |
latet project on |
Turn Latet on again in a project. |
latet repositories |
The repositories Latet remembers, each with its state; forget one that stays unreadable. |
latet repositories forget |
Take a repository out of the list, the daemon’s memory too: no change is weighed in it until a conversation reaches it again. It lowers protection: run it yourself, in a terminal of your own. |
latet rules test |
Check recognizers: each example, with the reason when it fails, and what they find in ordinary code. |
latet rules add |
Add recognizers to config.yaml (or update those with the same name), then apply them. |
latet rules list |
The recognizers in config.yaml (or one project’s), and whether each one is active. |
latet rules remove |
Remove a recognizer from config.yaml (or one project’s settings), then apply the change. |
latet rules suggest |
Find code-like values that no rule covers, grouped by shape (AA-999999), on this machine. |
latet rules export |
Write your rules to a file, for a colleague: terms, recognizers, policies and the rest. |
latet rules import |
Add a colleague’s rules to yours: what adds protection applies at once. |
latet config path |
Print where config.yaml is (LATET_CONFIG names another). |
latet config schema |
Print the JSON Schema of config.yaml (editors and agents can check a file with it). |
latet config validate |
Check a configuration file: its keys and values, and every recognizer. |
latet config get |
Print a setting of config.yaml (or every one), with its default when not set. |
latet config set |
Change a setting of config.yaml and apply it. |
latet config add |
Add an item to a list of config.yaml (terms, pii, allow_values…) and apply it. |
latet config remove |
Take an item out of a list of config.yaml and apply it (taking protection away waits for the user). |
latet server |
Latet on a server: one Latet for the computers and programs of a team or a company. |
latet server init |
Prepare a Latet server: its master key, the database’s tables, and the first administration token. |
latet server migrate |
Bring the database’s tables to this version of Latet (one machine at a time: the others wait for it). |
latet server run |
Run the Latet server in the foreground: one instance, or several with --workers. The container’s command, and the services’. |
latet server ready |
Whether this machine’s instance answers ready (PostgreSQL and Valkey answer it): exit 0, else 1. |
latet server certificate |
Show a certificate’s fingerprint and expiry, or make a self-signed one for a first try. |
latet server status |
The server’s status, vault limits, log chain and edition checks. |
latet server service install |
Show and install a systemd unit or a Windows service for the machine’s Latet. |
latet server people add |
Add a person and show their one-time code, to be given to them alone. |
latet server people list |
Everyone: enabled or not, computers connected, last seen and tampered token rows. |
latet server people disable |
Disable a person: every token of theirs stops on every instance within seconds; their space is kept. |
latet server people enable |
Enable a person again: their tokens and their space work again. |
latet server people remove |
Remove a person: their tokens stop, and their space (vault, history, settings) is deleted, once you agree. |
latet server people code |
A new one-time code: whoever uses it can connect as this person and open their dashboard; recorded. |
latet server people tokens |
A person’s computers; --revoke or --revoke-all stops their tokens. |
latet server people link |
Link a person to the identity provider by their user name there: their first sign-in finds their account. |
latet server people unlink |
Take the sign-in a person’s account names off it, once the provider’s issuer changed. |
latet server keys add |
Make an API key, shown once or written privately with --out. |
latet server keys list |
Every API key: enabled or not, when it was last used, and its vault limit if it has one of its own. |
latet server keys tokens |
An API key’s tokens: each one’s name, what it may do, whether it serves the key’s agents (has an address), and when it was last used; --revoke stops one. |
latet server keys add-token |
Give an API key another token with the permissions you choose, shown once or written privately with --out. |
latet server keys rotate |
Rotate one of an API key’s tokens: its old secret and addresses stop on every instance within seconds. |
latet server keys limit |
Set how many values an API key’s vault may hold, or give it the server’s limit again. |
latet server keys forget |
Forget values of an API key’s vault: each taken out of it on every instance within seconds, once you agree. |
latet server keys disable |
Disable an API key: its addresses stop on every instance within seconds; its space is kept. |
latet server keys enable |
Enable an API key again. |
latet server keys remove |
Remove an API key: it stops, and its space is deleted, once you agree. |
latet server config |
The settings the server shares: destinations, the reviewer, text recognition, history, retention (--key: an API key’s own settings and rules, the keys of latet config). |
latet server config get |
Print a shared setting (or every one). |
latet server config set |
Change a shared setting: every space applies it at once. |
latet server config reset |
Replace an unreadable shared settings row with defaults; never reset settings that open. |
latet server config add |
Add an item to a list of the shared settings (--key: of an API key’s): every space has it at once. |
latet server config remove |
Take an item out of a list of the shared settings (--key: of an API key’s). |
latet server rules |
An API key’s own recognizers and rules (--key). With the Enterprise Edition, rules for everyone are the company’s policy (latet server policy set). |
latet server rules add |
Add an API key’s recognizers (or update those with the same name), checked here first as latet rules test does. Their examples are not checked against a vault: invent them. |
latet server rules list |
An API key’s recognizers, and whether each one loads. |
latet server rules remove |
Remove an API key’s recognizer. |
latet server rules import |
Add a rules file to an API key’s settings: what adds protection; with --all, what lowers it too. |
latet server rules export |
Write an API key’s rules to a file (--key; the terms are values in clear), to share them by hand (latet rules import, or Import in the dashboard). |
latet server admin-token issue |
Issue an administration token once; --out keeps its secret out of a script’s log. |
latet server admin-token list |
Every token: this marks the one in use; tampered rows open nothing; never a secret. |
latet server admin-token revoke |
Revoke a token; revoking this or the last one asks and explains the way back. |
latet server log |
The administration log: who did what, when, on what, from where (never a value); verify checks its chain. |
latet server log verify |
Walk the log’s chain and print its head for a copy kept elsewhere; with Latet Enterprise, say each SIEM gap marker that is not Latet’s, waiting on the server or in a SIEM’s copy, and those too old to be checked. |
latet server groups list |
Show the groups, where each comes from, the roles given to it and who is in it. |
latet server groups add |
Add a group, made by hand. |
latet server groups rename |
Rename a group made by hand (one from the identity provider is renamed there). |
latet server groups remove |
Remove a group: its members keep their accounts; the roles given to it and its control of API keys go. |
latet server groups join |
Put a person in a group, by hand. |
latet server groups leave |
Take a person out of a group they were put in by hand. |
latet server roles list |
Show who has each role: the people and the groups it is given to. |
latet server roles grant |
Give a role to a person or a group. The first administrator is made this way. |
latet server roles revoke |
Take a role back from a person or a group. |
latet server controllers list |
Show each API key and the people and groups who control it. |
latet server controllers add |
Give the control of an API key to a person or a group: they work in its space from their dashboard. |
latet server controllers remove |
Take the control of an API key back. |
latet server sign-in show |
Show single sign-on’s settings, whether the client secret is saved, and SCIM’s address and tokens. |
latet server sign-in set |
Set up single sign-on from a YAML file (its sso section, or the section’s keys at the top), or change the settings in use with the options alone (refused, nothing changed, when someone changed them meanwhile: run it again). |
latet server sign-in off |
Turn single sign-on off: people open the dashboard with latet dashboard only. |
latet server sign-in test |
Check that the provider answers: its discovery document and its keys. A real sign-in checks the secret. |
latet server sign-in secret |
Save the client secret the provider gave Latet, or forget it (--remove). |
latet server sign-in scim-token |
Make a token for your identity provider’s SCIM provisioning, or remove one (--remove ID). |
latet server approvals show |
Who decides now, on a change that lowers protection and on the Live Reviewer’s texts. |
latet server approvals set |
Change who decides. Each change is kept in the server’s administration log; what waits keeps its route. |
latet server reports export |
Export a report of the server’s event log: requests, stopped ones and values masked, a row a day for each group, kind, name, project and agent. Counts only; people as reports.people says, API keys by name. Recorded in the administration log. |
latet server reports settings |
Show, or change, how people appear in reports and in the events sent to the SIEM, and how long the event log keeps its counts. In several countries a tool that can follow each employee’s work needs an agreement first: see Reports and SIEM in the documentation. |
latet server siem show |
The SIEM outputs, and how each is doing. |
latet server siem set |
Set the SIEM outputs from a file. A secret is never written there: latet server siem secret sets it. |
latet server siem test |
Send a test event to each SIEM output, or to the one named, and say whether it arrived. |
latet server siem skip |
Pass the refused entry or held run at a SIEM output’s queue. Administration-log entries stand behind a gap marker, recorded as siem.skipped with its range; refused non-admin events are dropped and counted. Read the receiver’s own log first: these entries never reach it. Refused while another instance sends to the output. |
latet server siem secret |
Set the secret of a SIEM output (its token or key), asked for and hidden: kept sealed in the server’s database, never in the settings, never shown again. |
latet server terms status |
What each source gave and when it last synced, and how many terms the server keeps. Never a term. |
latet server terms run |
Sync now: every source, or the one named, on whichever instance of the server holds the sync’s turn. Waits a minute at most for it to end, and says what each source gave. |
latet server terms gone |
The terms no longer in their source, still masked until they are removed. It shows the terms themselves: run it yourself, never through an agent. |
latet server terms remove |
Stop masking terms no longer in their source, for everyone the server serves: this lowers protection, they leave in clear from now on. A term its source still gives is never removed. |
latet server terms secret |
Set a source’s secret (a token, a password, a client secret), asked for and hidden, never taken as an argument: kept sealed on the server for where the source goes and what it reads, never shown again. |
latet server terms sources show |
The sources, as latet server terms sources set takes them (YAML): the company’s addresses, directories, filters and excluded values, so run it yourself, never through an agent. A source names its secret, never holds it. |
latet server terms sources set |
Use the sources the file lists, in place of those before. A source taken out leaves its terms “no longer in the source”: still masked until someone removes them. A secret is never written there: latet server terms secret. |
latet server license show |
Show the server’s license: who it is for, the users bought and in use (people and API keys), the dates. |
latet server license install |
Check a license file on the server and keep it in its database: every instance takes it at once. |
latet server license remove |
Remove the server’s license: the Enterprise features stop for everyone on it. |
latet server policy set |
Make FILE this server’s policy: every person and API key, on every instance, is raised to it at once. |
latet server policy show |
This server’s policy: when and by whom it was set, what it sets, whose exceptions count, and whether it is in force. Its text holds values (the company’s terms): only --file writes it, to a file only you can read. |
latet server policy remove |
Remove this server’s policy: every person and API key may then go below what it set (a change that lowers protection still waits for their approval). It asks first. |
latet policy check |
Check a policy file before it is set on a server with latet server policy set: what it locks, what it leaves to each person, whose exceptions count, and what in it is not read. |
latet version
Section titled “latet version”Print the Latet version.
latet serve
Section titled “latet serve”Run the gateway in the foreground.
| Option | Default | Description |
|---|---|---|
--port INT |
Local port to listen on (127.0.0.1 only). | |
--capture PATH |
Write raw exchanges (credentials redacted) to this local directory. | |
--log-level TEXT |
info |
The log’s level: debug, info, warning or error. |
--host TEXT |
The address to listen on: 127.0.0.1, or 0.0.0.0 in the container image. |
latet start
Section titled “latet start”Start the background daemon (no-op when it is already running).
| Option | Default | Description |
|---|---|---|
--wait, --no-wait |
on | Wait until the daemon answers. |
latet stop
Section titled “latet stop”Stop the background daemon.
latet status
Section titled “latet status”Show whether the local daemon runs, or whether the connected server accepts this computer’s token.
latet env
Section titled “latet env”Print the environment variables that route a client through Latet.
| Option | Default | Description |
|---|---|---|
--shell TEXT |
powershell, bash or cmd (default: this system’s usual shell). | |
--agent TEXT |
generic |
generic or claude. |
--key-file PATH |
Read an API key for generic clients from this file. | |
--server TEXT |
The API key’s server (otherwise LATET_SERVER_URL or connection). |
latet dashboard
Section titled “latet dashboard”Open the dashboard here or on the connected server: what reached the model, and how it was masked.
On a computer connected to a server an agent cannot run it: the sign-in link opens every original masked for you and your settings, from wherever the server is reached.
| Option | Default | Description |
|---|---|---|
--print-url |
off | Print the login link instead of opening it. |
latet claude
Section titled “latet claude”Run Claude Code through Latet, for this session only (plugin + verify-only gateway); arguments pass through.
Every other argument is passed to the command as is.
latet codex
Section titled “latet codex”Run the Codex CLI through Latet, for this session only; arguments pass through.
Every other argument is passed to the command as is.
latet opencode
Section titled “latet opencode”Run OpenCode through Latet, for this session only (API-key providers); arguments pass through.
Every other argument is passed to the command as is.
latet gemini
Section titled “latet gemini”Run Gemini CLI through Latet, for this session only (an API key or Vertex AI); arguments pass through.
Every other argument is passed to the command as is.
latet copilot
Section titled “latet copilot”Run GitHub Copilot CLI through Latet, for this session only (a provider of your own); arguments pass through.
Every other argument is passed to the command as is.
latet run
Section titled “latet run”Run a script or tool with OPENAI_BASE_URL, ANTHROPIC_BASE_URL and GOOGLE_GEMINI_BASE_URL pointing at Latet.
For programs that read those variables, such as the OpenAI, Anthropic and Google GenAI SDKs: their
requests go through Latet. Any other program runs as usual. latet run claude, codex, opencode,
gemini or copilot is latet claude, latet codex, latet opencode, latet gemini or latet copilot.
Every other argument is passed to the command as is.
latet reload
Section titled “latet reload”Apply the configuration file to the running daemon, without a restart.
latet doctor
Section titled “latet doctor”Check the daemon, the plugin bridge, masking and the agent integrations.
latet global-uninstall
Section titled “latet global-uninstall”Take Latet out of your agents for good: what latet global-install did, undone.
Every agent’s settings go back as they were, byte for byte; Latet no longer starts at login;
the daemon stops. Your rules stay in config.yaml, for latet claude and the others.
latet upgrade
Section titled “latet upgrade”Install the latest release of Latet from GitHub, with local name detection and the text in images.
First it copies what a new version may migrate, your vault, history and settings, into a folder of Latet’s
data folder (backups/before-<version>-<time>; the three newest copies are kept): a copy that cannot be
made stops the upgrade with nothing changed. Then it stops the daemon and starts it again after. On Windows,
which replaces no file of a program that runs, it installs the release in a window of its own once the
command has ended. Where name detection and the text in images cannot be installed, a Latet that has
neither is installed without them; one that has them is left as it was. The other extras this Latet was
installed with stay (a server’s server), as uv’s record of that install names them. A Latet uv installed
in folders other than the ones it installs in now (a server’s, with UV_TOOL_DIR) is left as it is: the
command stops before anything changes and says the command to run instead.
With --to it installs that release instead; an older one only when you run it yourself, never an agent.
Going back to a version a copy was taken under, it offers to put that copy back, and says how many values
the vault has learnt since, which would be lost. At the version installed it takes no copy.
| Option | Default | Description |
|---|---|---|
--to TEXT |
Install this release (0.9.9) instead of the latest. |
latet global-install
Section titled “latet global-install”Route your agents through Latet for good: every session, in the terminal and in the IDE.
It shows everything it would change, then asks once: the agents it routes (their settings backed
up first), Latet started at login, the profile and the countries, what is masked as your
identity, Claude Code’s auto mode reviewer, and the port. latet global-uninstall takes it all
away. The options choose otherwise than the defaults, such as --agents claude --no-autostart.
Run by an agent or a script, it needs --yes, once the user agreed: without a terminal of yours it
changes nothing.
| Option | Default | Description |
|---|---|---|
--yes, -y |
off | Apply it without asking (an agent or a script, once the user agreed). |
--profile TEXT |
balanced, max or secrets. | |
--identity, --no-identity |
asks | Mask this machine’s user names, host name and git author. |
--agents TEXT |
The agents to route: claude, codex, opencode (comma-separated), or none. Not given: every installed one. | |
--ner, --no-ner |
asks | Download the local name and address model (needs the ner extra). |
--ocr, --no-ocr |
asks | Download the text recognition models for images (needs the ocr extra). |
--auto-mode-review TEXT |
Claude Code’s auto mode reviewer: block, allow-identity, or the details to let through (user_name, paths, host_name, git_author; user_name=surrogate gives it a fake user name). | |
--autostart, --no-autostart |
asks | Start Latet when you log in (default: yes). |
--dashboard, --no-dashboard |
asks | Open the dashboard at the end. |
--port TEXT |
The daemon’s port, or auto: keep it, or move to a free one if it cannot be used. | |
--id-regions TEXT |
Countries whose ID and tax numbers to recognise, comma-separated (such as IT,DE,US); the default adds this machine’s country. |
latet backup
Section titled “latet backup”Save your installation in one file, encrypted with a passphrase: to move it to another machine.
In it: your settings (config.yaml) and the local reviewer’s trusted certificates. With --vault,
the vault and its root key too: the other machine then makes the same fakes, remembers the values
found so far, and keeps restoring conversations started here. With --history, the dashboard’s
history. Never the reviewer’s API key, the bridge token or your agents’ settings: each machine
has its own. Restore it with latet restore FILE; without the passphrase nobody can read it,
you included. The passphrase is asked twice, or read from standard input.
| Argument | Description | |
|---|---|---|
FILE |
required | Where to write it, such as latet-backup.latet. |
| Option | Default | Description |
|---|---|---|
--vault |
off | Also the vault and its root key: the same fakes there, and conversations still restored. |
--history |
off | Also the dashboard’s history (needs --vault). |
latet restore
Section titled “latet restore”Restore a backup here: your settings, and the vault with its key when it holds them.
It reads and checks the whole file first, shows what it holds and what in its settings lowers
protection compared with yours, and asks you. Kept from this machine: its port, its identity
(added to the backup’s), and nothing of capture_dir or api_key_file. With a vault, the daemon
is stopped and started again around it; this machine’s own vault and key, if it has values, are
replaced only with --replace, after saving them in a backup of their own with the same
passphrase. What it moves aside stays in a dated folder next to the vault.
| Argument | Description | |
|---|---|---|
FILE |
optional | A file of latet backup. |
| Option | Default | Description |
|---|---|---|
--replace |
off | Replace this machine’s own vault and key (saved first, same passphrase). |
--paths TEXT |
OLD=NEW: project folders under OLD are under NEW here (repeat it). | |
--abort |
off | Undo a restore that was cut off. |
latet connect
Section titled “latet connect”Connect this computer to a Latet server: your agents’ requests are masked there, in your own space.
It shows what changes and asks first, at your own terminal; an agent cannot run it. The code an administrator gave
you works once, within 24 hours: it is asked for, hidden, or read from standard input with --code -. This
computer gets a personal token, which your agents use, and a computer key, which only Latet’s own commands use for
your dashboard and identity, both kept in its credential store (or a private file); the server gets this
computer’s identity (user name, host name, git author) to mask it. From then on latet claude, latet codex,
latet opencode, latet run and what latet agents apply set up go to the server, and your settings are there,
in your dashboard (latet dashboard). latet disconnect undoes it.
| Argument | Description | |
|---|---|---|
URL |
required | The server’s address, such as https://latet.acme.lan. |
| Option | Default | Description |
|---|---|---|
--fingerprint TEXT |
The fingerprint of the server’s self-signed certificate (sha256:… or AB:CD:…), as your administrator read it on the server’s machine. | |
--code TEXT |
The one-time code an administrator gave you: --code - reads it from standard input; not given, it is asked for, hidden. Written here, other users of this computer can read it while the command runs. |
|
--yes, -y |
off | Connect without asking, where no terminal is there (a script of yours). |
latet disconnect
Section titled “latet disconnect”Disconnect this computer from its Latet server: its token is revoked and forgotten, and your agents come back to the Latet of this computer.
It shows what changes back and asks first, at your own terminal; an agent cannot run it. A server that does not answer is forgotten here all the same, and it says how an administrator revokes this computer’s token there. It leaves no copy of the token or of your space’s address in what Latet wrote: a file it cannot clean is named, and the computer stays connected until it can, so that it can be run again.
| Option | Default | Description |
|---|---|---|
--yes, -y |
off | Disconnect without asking, where no terminal is there (a script of yours). |
latet leak
Section titled “latet leak”Find the secrets in your coding agents’ saved sessions, and say which may have reached a model provider.
Reads the sessions Claude Code, Codex, OpenCode and the other agents saved on this computer with Latet’s own detectors. It reads and prints; it changes nothing and never shows a value. Exits 0 when nothing is found, 1 when something is, 2 when nothing could be read.
| Option | Default | Description |
|---|---|---|
--agent TEXT |
Read this agent’s sessions only (repeat for more). | |
--since TEXT |
Read records from this date on (2026-10-01). | |
--personal |
off | Also count personal data, by type. |
--path PATH |
Also read this file or folder of JSON or JSON lines (repeat for more). | |
--json |
off | Print records instead of text. |
--all |
off | List every secret of each list, not the first 20 (--json lists them all). |
latet reserve-port
Section titled “latet reserve-port”Reserve Latet’s port on Windows, so that Hyper-V, WSL and Docker cannot take it when Windows starts.
Windows reserves blocks of ports each time it starts, and Latet’s port can be among them: Latet
then cannot start until the next restart. This reserves the port for Latet, with one
administrator’s confirmation. Where Windows holds the port already, Latet moves to a free one and
reserves that one, and your agents move with it. It asks once before it changes anything.
latet reserve-port --remove takes Latet’s reservations away.
| Option | Default | Description |
|---|---|---|
--yes, -y |
off | Do it without asking: for a script, once you said yes. |
--offer |
off | Ask only where Windows holds the port or may take it; else say nothing. |
--remove |
off | Take away the ports Latet reserved. |
latet tutorial
Section titled “latet tutorial”See Latet at work in your browser, on a sandbox of its own with invented data.
A pretend agent talks to a pretend model through the real Latet, and the dashboard shows what it did, chapter
by chapter. Nothing leaves your computer. Your own settings, vault and history are never touched: the sandbox is
a temporary folder on a port of its own, deleted when you press Ctrl+C or end it in the page. The one file
written outside it is tutorial.json in your data folder: the ids of the chapters you finished.
| Argument | Description | |
|---|---|---|
CHAPTER |
optional | The chapter to open first, such as basics (--list shows them). |
| Option | Default | Description |
|---|---|---|
--keep |
off | Keep the sandbox’s folder when it ends, and say where it is. |
--list |
off | Print the chapters and which you finished, then stop. |
--print-url |
off | Print the sign-in link instead of opening it in the browser. |
latet agents status
Section titled “latet agents status”Show which agents are installed and whether they go through Latet.
latet agents apply
Section titled “latet agents apply”Route the agents through Latet (backed up, revertible with agents revert).
| Argument | Description | |
|---|---|---|
NAMES… |
optional | claude, codex, opencode (default: all installed). |
| Option | Default | Description |
|---|---|---|
--keep-classifier-context, --no-keep-classifier-context |
off | Claude Code: keep auto mode’s server-side review (sends paths and OS user). |
latet agents revert
Section titled “latet agents revert”Undo what agents apply changed (byte for byte when the files were not edited since).
| Argument | Description | |
|---|---|---|
NAMES… |
optional | claude, codex, opencode (default: all). |
latet agents print
Section titled “latet agents print”How to point each agent at this Latet by hand: for the container image, which cannot edit
your agents’ files. The bridge token is never printed: agents merge writes it into the file.
| Option | Default | Description |
|---|---|---|
--agent TEXT |
all |
claude, codex, opencode or all. |
--shell TEXT |
sh |
The shell on your computer: sh (macOS, Linux) or powershell. |
--codex-login TEXT |
chatgpt |
How Codex signs in: chatgpt or api-key. |
--json |
off | Print the same as JSON. |
latet agents merge
Section titled “latet agents merge”Read an agent’s settings file on stdin, write it on stdout with Latet in (or, with --remove,
out). For the container: the bridge token goes into the file without being shown.
| Argument | Description | |
|---|---|---|
AGENT |
required | claude, codex or opencode. |
| Option | Default | Description |
|---|---|---|
--remove |
off | Take the Latet settings out instead. |
--codex-login TEXT |
chatgpt |
How Codex signs in: chatgpt or api-key. |
latet service install
Section titled “latet service install”Start Latet automatically at login (no administrator rights needed).
latet service uninstall
Section titled “latet service uninstall”Stop starting Latet at login.
latet ner install
Section titled “latet ner install”Download the local name and address model (once; it then works offline).
| Option | Default | Description |
|---|---|---|
--yes, -y |
off | Do not ask before downloading. |
latet ner status
Section titled “latet ner status”Show whether local name detection is available and in use.
latet ner remove
Section titled “latet ner remove”Delete the downloaded model.
latet identity send
Section titled “latet identity send”Send this computer’s detected identity to its existing personal server space. An agent cannot run it.
latet identity show
Section titled “latet identity show”The identity Latet masks: your user names, host name and git author.
latet identity set
Section titled “latet identity set”Tell Latet whose identity to mask (in the container it cannot see it), then apply it.
| Option | Default | Description |
|---|---|---|
--user-name TEXT |
Your user name; repeat for the user folder. | |
--host-name TEXT |
Your computer’s host name. | |
--full-name TEXT |
Your name, as in your git author. | |
--email TEXT |
Your email, as in your git author; repeatable. |
latet llm status
Section titled “latet llm status”Show the reviewer’s settings and whether its server answers (with the sample text).
latet llm prompt
Section titled “latet llm prompt”Print what the reviewer is told: Latet’s own instructions, then your guidance, if any.
Latet’s part is fixed, the text its benchmark measures. Yours follows it: llm_review.guidance,
then a project’s own review_guidance (see latet llm guidance).
| Option | Default | Description |
|---|---|---|
--project PATH |
For the project in this folder (your own settings for it). |
latet llm guidance
Section titled “latet llm guidance”Show or set your guidance to the local reviewer, added after Latet’s own instructions.
Say what else is confidential in your work, or what to leave alone: “Ward and department names
are confidential”, “PRJ- followed by digits is an internal project”. It applies to the texts
reviewed from then on, and is sent to the reviewer’s server with each review: describe kinds of
values, and keep the confidential values themselves in terms. With --project, it is for that
project only, after the global one. Changed by an agent, it waits for the user’s approval.
| Argument | Description | |
|---|---|---|
TEXT |
optional | The new guidance (-: standard input). None: print the one set. |
| Option | Default | Description |
|---|---|---|
--file PATH |
Read the new guidance from this file. | |
--clear |
off | Remove it. |
--project PATH |
For the project in this folder (your own settings for it). | |
--wait |
off | When the change waits for the user’s approval, wait for the answer. |
latet llm key
Section titled “latet llm key”Save the API key of the reviewer’s server, or forget it (--remove).
The key is asked without showing it, or read from standard input, and kept in the operating
system’s credential store, never in config.yaml. A key in the variable api_key_env names, or in
api_key_file, comes first. The running daemon uses the new key at once.
| Option | Default | Description |
|---|---|---|
--remove |
off | Forget the saved key. |
latet llm trust
Section titled “latet llm trust”Trust the certificate of the reviewer’s server on another machine of yours (self-signed).
It shows the certificate’s SHA-256 fingerprint: compare it with the one on the server, for example
openssl x509 -noout -fingerprint -sha256 -in cert.pem there. Once trusted, only that certificate
is accepted, checked before any text is sent.
| Argument | Description | |
|---|---|---|
URL |
optional | The server’s https:// address (default: llm_review.url). |
| Option | Default | Description |
|---|---|---|
--fingerprint TEXT |
The fingerprint you expect (sha256:…): trusted without asking when it matches. | |
--remove |
off | Trust no certificate of its own any more. |
latet llm test
Section titled “latet llm test”Review a text as Latet would before sending it: what the reviewer finds beyond the detectors.
It runs on this machine only, and prints categories and where they are (line:column), never the
values themselves. With --project, with that project’s rules and guidance.
| Argument | Description | |
|---|---|---|
FILE |
optional | The text to review (-: standard input). |
| Option | Default | Description |
|---|---|---|
--kind TEXT |
tool_result |
Read it as user_text, tool_result, attachment or system. |
--project PATH |
For the project in this folder (your own settings for it). |
latet ocr install
Section titled “latet ocr install”Download the text recognition models (once; they then work offline).
| Option | Default | Description |
|---|---|---|
--yes, -y |
off | Do not ask before downloading. |
latet ocr status
Section titled “latet ocr status”Show whether the text in images is read and masked.
latet ocr remove
Section titled “latet ocr remove”Delete the downloaded models.
latet project init
Section titled “latet project init”Write a latet.yaml to start from, at the root of the project’s repository.
It can only add protection to each person’s own settings; your own settings for the project (values never to mask, Latet off) go in your config.yaml instead.
| Argument | Description | |
|---|---|---|
FOLDER |
optional | The project’s folder, or any folder in it; the current one if not given. |
| Option | Default | Description |
|---|---|---|
--suggest |
off | Also draft recognizers for the formats no rule covers there. |
latet project show
Section titled “latet project show”What applies in a project: its latet.yaml, your own settings for it, and what is ignored.
| Argument | Description | |
|---|---|---|
FOLDER |
optional | The project’s folder, or any folder in it; the current one if not given. |
| Option | Default | Description |
|---|---|---|
--json |
off | Print it as JSON. |
latet project check
Section titled “latet project check”Check a project’s latet.yaml, recognizers included (for CI, too).
Exit code 0 when all is well, 1 when something in it is ignored or an example fails, 2 for an error or when there is no file.
| Argument | Description | |
|---|---|---|
FOLDER |
optional | The project’s folder, or any folder in it; the current one if not given. |
latet project off
Section titled “latet project off”Turn Latet off in a project: its agents’ requests are refused there, never sent unmasked; start an agent without Latet to reach its provider directly (in your own settings only).
| Argument | Description | |
|---|---|---|
FOLDER |
optional | The project’s folder, or any folder in it; the current one if not given. |
latet project on
Section titled “latet project on”Turn Latet on again in a project.
| Argument | Description | |
|---|---|---|
FOLDER |
optional | The project’s folder, or any folder in it; the current one if not given. |
latet repositories
Section titled “latet repositories”The repositories Latet remembers, each with its state; forget one that stays unreadable.
latet repositories forget
Section titled “latet repositories forget”Take a repository out of the list, the daemon’s memory too: no change is weighed in it until a conversation reaches it again. It lowers protection: run it yourself, in a terminal of your own.
| Argument | Description | |
|---|---|---|
FOLDER |
required | The folder, as latet repositories shows it. |
latet rules test
Section titled “latet rules test”Check recognizers: each example, with the reason when it fails, and what they find in ordinary code.
Exit code 0 when all is well, 1 when an example fails, 2 when a recognizer cannot load.
| Argument | Description | |
|---|---|---|
FILE |
optional | A YAML file with recognizers (- for stdin); config.yaml if not given. |
| Option | Default | Description |
|---|---|---|
--json |
off | Print the report as JSON. |
--corpus PATH |
Also count matches in your own files (counts and shapes only). |
latet rules add
Section titled “latet rules add”Add recognizers to config.yaml (or update those with the same name), then apply them.
They are checked first, as rules test does. Examples must be invented: an example whose value
Latet has seen for real (it is in the vault) is refused. With --project or --repo they go to
one project’s settings instead.
| Argument | Description | |
|---|---|---|
FILE |
required | A YAML file with one or more recognizers (- for stdin). |
| Option | Default | Description |
|---|---|---|
--project PATH |
In your own settings for the project in this folder instead. | |
--repo PATH |
In the latet.yaml of the project in this folder instead (shared through its repository). |
latet rules list
Section titled “latet rules list”The recognizers in config.yaml (or one project’s), and whether each one is active.
| Option | Default | Description |
|---|---|---|
--json |
off | Print the list as JSON. |
--project PATH |
In your own settings for the project in this folder instead. | |
--repo PATH |
In the latet.yaml of the project in this folder instead (shared through its repository). |
latet rules remove
Section titled “latet rules remove”Remove a recognizer from config.yaml (or one project’s settings), then apply the change.
| Argument | Description | |
|---|---|---|
NAME |
required | The recognizer’s name. |
| Option | Default | Description |
|---|---|---|
--project PATH |
In your own settings for the project in this folder instead. | |
--repo PATH |
In the latet.yaml of the project in this folder instead (shared through its repository). |
latet rules suggest
Section titled “latet rules suggest”Find code-like values that no rule covers, grouped by shape (AA-999999), on this machine.
Never prints a value: shapes, counts, files, likely check digits and the labels next to them. Nothing leaves this machine.
| Argument | Description | |
|---|---|---|
FOLDER |
required | The folder to look through (a git repository: its files only). |
| Option | Default | Description |
|---|---|---|
--yaml |
off | Print draft recognizers, with examples invented from the shapes. |
--json |
off | Print the report as JSON. |
--show-values |
off | Also show three values of each shape: at a terminal, never in an agent. |
--limit INT |
20 |
How many shapes to show. |
latet rules export
Section titled “latet rules export”Write your rules to a file, for a colleague: terms, recognizers, policies and the rest.
In it: the terms, recognizers, policies and field rules, the personal-data types and countries,
the exceptions (values never to mask…) and the local reviewer’s guidance. Never this machine’s
identity, port, paths or servers. With --project, your own settings for the project in that
folder instead: its shared rules travel in its latet.yaml. The terms are values in clear:
send the file the way you would send them.
| Argument | Description | |
|---|---|---|
FILE |
optional | Where to write them (none or -: standard output). |
| Option | Default | Description |
|---|---|---|
--project PATH |
Your own settings for the project in this folder instead. |
latet rules import
Section titled “latet rules import”Add a colleague’s rules to yours: what adds protection applies at once.
New terms, recognizers and field rules are added, and values stricter than yours taken; nothing
of yours is removed or weakened. What would lower protection (the exceptions, a weaker value, the
local reviewer’s guidance) is listed and left out: with --all it is applied too, and waits for
approval like any change that lowers protection. With --project, into your own settings for the
project in that folder.
| Argument | Description | |
|---|---|---|
FILE |
required | A rules file, or a config.yaml or latet.yaml (- for stdin). |
| Option | Default | Description |
|---|---|---|
--project PATH |
Your own settings for the project in this folder instead. | |
--all |
off | Also what lowers protection: it waits for the user’s approval. |
--dry-run |
off | Only say what it would do. |
--wait |
off | When the change waits for the user’s approval, wait for the answer. |
latet config path
Section titled “latet config path”Print where config.yaml is (LATET_CONFIG names another).
latet config schema
Section titled “latet config schema”Print the JSON Schema of config.yaml (editors and agents can check a file with it).
| Option | Default | Description |
|---|---|---|
--project |
off | The schema of a project’s latet.yaml instead. |
latet config validate
Section titled “latet config validate”Check a configuration file: its keys and values, and every recognizer.
Exit code 0 when all is well, 1 when a recognizer’s example fails, 2 for an error.
| Argument | Description | |
|---|---|---|
FILE |
optional | The file to check; config.yaml if not given. |
latet config get
Section titled “latet config get”Print a setting of config.yaml (or every one), with its default when not set.
| Argument | Description | |
|---|---|---|
KEY |
optional | A key, with dots for what is inside (none: every key). |
| Option | Default | Description |
|---|---|---|
--project PATH |
Your own settings for the project in this folder instead. | |
--json |
off | Print it as JSON. |
latet config set
Section titled “latet config set”Change a setting of config.yaml and apply it.
A change that adds protection applies at once. One that lowers it is asked about at your own terminal; run by an agent, it waits for the user’s approval in the dashboard (exit code 3).
| Argument | Description | |
|---|---|---|
KEY |
required | A key of config.yaml, with dots for what is inside: profile, llm_review.enabled. |
VALUE |
optional | The new value, in YAML: max, true, [IT, DE], {enabled: true}. |
| Option | Default | Description |
|---|---|---|
--unset |
off | Back to its default. |
--project PATH |
Your own settings for the project in this folder instead. | |
--wait |
off | When the change waits for the user’s approval, wait for the answer. |
latet config add
Section titled “latet config add”Add an item to a list of config.yaml (terms, pii, allow_values…) and apply it.
| Argument | Description | |
|---|---|---|
KEY |
required | A key of config.yaml, with dots for what is inside: profile, llm_review.enabled. |
VALUE |
required | The item to add, in YAML: IBAN, {value: Falcon, type: PROJECT}. |
| Option | Default | Description |
|---|---|---|
--project PATH |
Your own settings for the project in this folder instead. | |
--wait |
off | When the change waits for the user’s approval, wait for the answer. |
latet config remove
Section titled “latet config remove”Take an item out of a list of config.yaml and apply it (taking protection away waits for the user).
| Argument | Description | |
|---|---|---|
KEY |
required | A key of config.yaml, with dots for what is inside: profile, llm_review.enabled. |
VALUE |
required | The item to take out; for terms and recognizers, its value or name. |
| Option | Default | Description |
|---|---|---|
--project PATH |
Your own settings for the project in this folder instead. | |
--wait |
off | When the change waits for the user’s approval, wait for the answer. |
latet server
Section titled “latet server”Latet on a server: one Latet for the computers and programs of a team or a company.
Its options go before the name of one of its commands: latet server [OPTIONS] COMMAND.
| Option | Default | Description |
|---|---|---|
--server TEXT |
The server’s address (default: LATET_SERVER_URL, or this computer’s). | |
--fingerprint TEXT |
Its self-signed certificate’s fingerprint (default: LATET_SERVER_FINGERPRINT). | |
--admin-token-file PATH |
A file holding an administration token (or the token in LATET_SERVER_ADMIN_TOKEN, bound to LATET_SERVER_URL). |
latet server init
Section titled “latet server init”Prepare a Latet server: its master key, the database’s tables, and the first administration token.
Run it once, on a machine with the server’s settings and its database’s access. The master key is written to the
file master_key_file names when it is not there (in a folder that is yours alone); when nothing names one, a new key
is printed for you to keep. A token issues tokens that end no later than itself: --never here is how a token that
does not expire is made.
| Option | Default | Description |
|---|---|---|
--config PATH |
The server’s settings file (server.yaml); its LATET_SERVER_* variables win over it. | |
--new-admin-token |
off | Issue another administration token, when yours is lost. |
--days INT RANGE |
The token issued lasts this many days (default: admin_token_days). | |
--never |
off | The token issued never expires: keep it apart, used only to issue others. |
latet server migrate
Section titled “latet server migrate”Bring the database’s tables to this version of Latet (one machine at a time: the others wait for it).
| Option | Default | Description |
|---|---|---|
--config PATH |
The server’s settings file (server.yaml); its LATET_SERVER_* variables win over it. | |
--check |
off | Only say whether the tables are this version’s. |
latet server run
Section titled “latet server run”Run the Latet server in the foreground: one instance, or several with --workers. The container’s command, and
the services’.
The workers share the one port, PostgreSQL and Valkey, as instances on several machines do: each has its own memory, connections and metrics port (metrics_port for the first, the next port for each other), and is started again when it ends or goes silent.
| Option | Default | Description |
|---|---|---|
--config PATH |
The server’s settings file (server.yaml); its LATET_SERVER_* variables win over it. | |
--workers INT RANGE |
How many instances to run on this machine, on the one port, each a process of its own (default: workers, 1). More than one needs Linux or the container image. |
latet server ready
Section titled “latet server ready”Whether this machine’s instance answers ready (PostgreSQL and Valkey answer it): exit 0, else 1.
| Option | Default | Description |
|---|---|---|
--config PATH |
The server’s settings file (server.yaml); its LATET_SERVER_* variables win over it. |
latet server certificate
Section titled “latet server certificate”Show a certificate’s fingerprint and expiry, or make a self-signed one for a first try.
--make --url https://latet.acme.lan --out certs makes certs/server.crt and certs/server.key; a file shows that
certificate; --url alone shows the one this computer sees at that address (a machine in between can change it:
read the fingerprint people pin from the certificate’s file on the server’s machine). People connect with
latet connect <address> --fingerprint <its fingerprint>, which asks for their one-time code.
A certificate that is an authority is no server’s own, and is refused: computers given it would trust whatever its
key signs.
| Argument | Description | |
|---|---|---|
FILE |
optional | A certificate (PEM) to show. |
| Option | Default | Description |
|---|---|---|
--make |
off | Make a self-signed certificate, for a first try. |
--url TEXT |
The server’s address: what --make names; alone, the certificate it shows. |
|
--out PATH |
With --make: the folder for server.crt and server.key. |
|
--days INT RANGE |
825 |
With --make: how long it lasts, in days. |
latet server status
Section titled “latet server status”The server’s status, vault limits, log chain and edition checks.
latet server service install
Section titled “latet server service install”Show and install a systemd unit or a Windows service for the machine’s Latet.
Install Latet outside personal home folders, and keep its settings in a trusted machine directory. The service is enabled at boot; you start it when ready.
| Option | Default | Description |
|---|---|---|
--config PATH |
The server’s settings file (server.yaml); its LATET_SERVER_* variables win over it. | |
--yes |
off | Install without a prompt when run by your own script. |
--print |
off | Show the service plan without changing anything. |
latet server people add
Section titled “latet server people add”Add a person and show their one-time code, to be given to them alone.
| Argument | Description | |
|---|---|---|
NAME |
required | The person’s name. |
| Option | Default | Description |
|---|---|---|
--email TEXT |
Their e-mail address. |
latet server people list
Section titled “latet server people list”Everyone: enabled or not, computers connected, last seen and tampered token rows.
latet server people disable
Section titled “latet server people disable”Disable a person: every token of theirs stops on every instance within seconds; their space is kept.
| Argument | Description | |
|---|---|---|
PERSON |
required | The person: their id, name or e-mail address. |
latet server people enable
Section titled “latet server people enable”Enable a person again: their tokens and their space work again.
| Argument | Description | |
|---|---|---|
PERSON |
required | The person: their id, name or e-mail address. |
latet server people remove
Section titled “latet server people remove”Remove a person: their tokens stop, and their space (vault, history, settings) is deleted, once you agree.
| Argument | Description | |
|---|---|---|
PERSON |
required | The person: their id, name or e-mail address. |
| Option | Default | Description |
|---|---|---|
--yes, -y |
off | Confirm in a script; your own terminal still asks. |
latet server people code
Section titled “latet server people code”A new one-time code: whoever uses it can connect as this person and open their dashboard; recorded.
| Argument | Description | |
|---|---|---|
PERSON |
required | The person: their id, name or e-mail address. |
latet server people tokens
Section titled “latet server people tokens”A person’s computers; --revoke or --revoke-all stops their tokens.
| Argument | Description | |
|---|---|---|
PERSON |
required | The person: their id, name or e-mail address. |
| Option | Default | Description |
|---|---|---|
--revoke TEXT |
Revoke this token’s id. | |
--revoke-all |
off | Revoke every token of theirs. |
--yes, -y |
off | Confirm in a script; your own terminal still asks. |
latet server people link
Section titled “latet server people link”Link a person to the identity provider by their user name there: their first sign-in finds their account.
A person added by hand is linked this way (or links their own account from their dashboard). --scim hands them to
SCIM too. With --all, everyone whose account has a user name and names no sign-in (after unlink --all, once the
provider’s issuer changed) is linked again by that user name, SCIM managing whom it managed before; with --all
--scim, SCIM is also handed those it did not manage, but not someone who holds a role, given to them or to a group
made by hand: they are handed over one by one, latet server people link <id> --user-name <name> --scim. Someone
whose user name SCIM changed since a sign-in or an administrator confirmed it is never linked by --all: they are
listed, to link one by one once your provider confirms the user name. Whom a run before linked already, waiting
for their first sign-in, is left out and counted.
| Argument | Description | |
|---|---|---|
PERSON |
optional | The person: their id (u_…), e-mail or user name at the provider. |
| Option | Default | Description |
|---|---|---|
--user-name TEXT |
Their user name at the identity provider. | |
--scim |
off | Hand them to SCIM too: it manages their account. |
--all |
off | Everyone whose account has a user name and names no sign-in, linked again by it, but those whose user name SCIM changed since a sign-in or an administrator confirmed it; with --scim, SCIM is handed those it did not manage but those who hold a role. |
--yes, -y |
off | Confirm in a script; your own terminal still asks. |
latet server people unlink
Section titled “latet server people unlink”Take the sign-in a person’s account names off it, once the provider’s issuer changed.
Their next sign-in brings another one. Until they are linked again (latet server people link, or their own Link
my company account, unless SCIM changed their user name since their last sign-in with it) no sign-in takes their
account.
| Argument | Description | |
|---|---|---|
PERSON |
optional | The person: their id (u_…), e-mail or user name. |
| Option | Default | Description |
|---|---|---|
--all |
off | Everyone whose account names a sign-in: the provider’s issuer changed. |
--yes, -y |
off | Confirm in a script; your own terminal still asks. |
latet server keys add
Section titled “latet server keys add”Make an API key, shown once or written privately with --out.
| Argument | Description | |
|---|---|---|
NAME |
required | What the key is for, such as Billing CI. |
| Option | Default | Description |
|---|---|---|
--out PATH |
Write the key privately; print no secret. |
latet server keys list
Section titled “latet server keys list”Every API key: enabled or not, when it was last used, and its vault limit if it has one of its own.
latet server keys tokens
Section titled “latet server keys tokens”An API key’s tokens: each one’s name, what it may do, whether it serves the key’s agents (has an address), and
when it was last used; --revoke stops one.
| Argument | Description | |
|---|---|---|
KEY |
required | The API key: its id or name. |
| Option | Default | Description |
|---|---|---|
--revoke TEXT |
Revoke this token’s id. | |
--yes, -y |
off | Confirm in a script; your own terminal still asks. |
latet server keys add-token
Section titled “latet server keys add-token”Give an API key another token with the permissions you choose, shown once or written privately with --out.
A token added so calls the applications API alone, where each unmask is in the administration log: it has no
address for models, whatever it may do, and agents use the key’s first token. --forget is given by name alone: the
key’s first token cannot forget. Each token stops on its own: keys tokens lists them, keys tokens --revoke
stops one.
| Argument | Description | |
|---|---|---|
KEY |
required | The API key: its id or name. |
NAME |
required | What the token is for, such as logs. |
| Option | Default | Description |
|---|---|---|
--scan |
off | It may say what a text holds, and change nothing. |
--mask |
off | It may replace what a text holds with fakes (and so scan it). |
--unmask |
off | It may put the real values back in place of the fakes. |
--forget |
off | It may take values out of the key’s vault; no other permission brings it. |
--out PATH |
Write the token privately; print no secret. |
latet server keys rotate
Section titled “latet server keys rotate”Rotate one of an API key’s tokens: its old secret and addresses stop on every instance within seconds.
The token keeps its name and its permissions. A key with several tokens needs --token; a key with one rotates
that one, which this command names to the server after listing it.
| Argument | Description | |
|---|---|---|
KEY |
required | The API key: its id or name. |
| Option | Default | Description |
|---|---|---|
--token TEXT |
The token to rotate: its id, as keys tokens lists it. A key with several needs it. |
|
--yes, -y |
off | Confirm in a script; your own terminal still asks. |
--out PATH |
Write the new key privately; print no secret. |
latet server keys limit
Section titled “latet server keys limit”Set how many values an API key’s vault may hold, or give it the server’s limit again.
A key with no limit of its own has the server’s (vault_limit). A vault that holds the most it may refuses the
call that would add a value (the applications API answers 507) and lets nothing of that call out. A limit below
the values the vault holds is kept, and the vault takes no new value until the limit is raised or values are
forgotten (keys forget). The change reaches every instance within seconds.
| Argument | Description | |
|---|---|---|
KEY |
required | The API key: its id or name. |
LIMIT |
required | How many values its vault may hold (1000 to 100000000), or default for the server’s limit. |
latet server keys forget
Section titled “latet server keys forget”Forget values of an API key’s vault: each taken out of it on every instance within seconds, once you agree.
The values are read one a line from --file, or typed in your terminal, never from the command line. Each is found
exactly as written: another case or another written form is another value of the vault. A value forgotten is gone
with its fake, which restores nothing from then on, and it gets a new fake if it is met again. An address at a
company’s domain keeps the domain as a value of its own: forget it too if it should go. Each call is recorded in
the administration log (key.forgotten) with its counts, never a value. A key’s first forget after an upgrade can
take minutes on a key with much history: each call waits up to five minutes, and running it again is safe.
| Argument | Description | |
|---|---|---|
KEY |
required | The API key: its id or name. |
| Option | Default | Description |
|---|---|---|
--file PATH |
The values to forget, one a line (UTF-8); without it, type them in your terminal. | |
--yes, -y |
off | Confirm in a script; your own terminal still asks. |
latet server keys disable
Section titled “latet server keys disable”Disable an API key: its addresses stop on every instance within seconds; its space is kept.
| Argument | Description | |
|---|---|---|
KEY |
required | The API key: its id or name. |
latet server keys enable
Section titled “latet server keys enable”Enable an API key again.
| Argument | Description | |
|---|---|---|
KEY |
required | The API key: its id or name. |
latet server keys remove
Section titled “latet server keys remove”Remove an API key: it stops, and its space is deleted, once you agree.
| Argument | Description | |
|---|---|---|
KEY |
required | The API key: its id or name. |
| Option | Default | Description |
|---|---|---|
--yes, -y |
off | Confirm in a script; your own terminal still asks. |
latet server config
Section titled “latet server config”The settings the server shares: destinations, the reviewer, text recognition, history, retention (--key: an API key’s own settings and rules, the keys of latet config).
Its options go before the name of one of its commands: latet server config [OPTIONS] COMMAND.
| Option | Default | Description |
|---|---|---|
--key TEXT |
An API key’s own settings (its id or name), on top of the shared ones. |
latet server config get
Section titled “latet server config get”Print a shared setting (or every one).
| Argument | Description | |
|---|---|---|
KEY |
optional | A key, with dots for what is inside (none: every key). |
| Option | Default | Description |
|---|---|---|
--json |
off | Print it as JSON. |
latet server config set
Section titled “latet server config set”Change a shared setting: every space applies it at once.
| Argument | Description | |
|---|---|---|
KEY |
required | A key, with dots for what is inside: history, ocr (--key: profile). |
VALUE |
optional | The new value, in YAML. |
| Option | Default | Description |
|---|---|---|
--unset |
off | Back to its default. |
latet server config reset
Section titled “latet server config reset”Replace an unreadable shared settings row with defaults; never reset settings that open.
| Option | Default | Description |
|---|---|---|
--yes, -y |
off | Confirm in a script; your own terminal still asks. |
latet server config add
Section titled “latet server config add”Add an item to a list of the shared settings (--key: of an API key’s): every space has it at once.
| Argument | Description | |
|---|---|---|
KEY |
required | A list: upstreams (--key: terms, allow_values…). |
VALUE |
required | The item, in YAML: {name: llm, url: 'https://llm.acme.com'}. |
latet server config remove
Section titled “latet server config remove”Take an item out of a list of the shared settings (--key: of an API key’s).
| Argument | Description | |
|---|---|---|
KEY |
required | A list: upstreams (--key: terms, allow_values…). |
VALUE |
required | The item to take out; for terms and recognizers, its value or name. |
latet server rules
Section titled “latet server rules”An API key’s own recognizers and rules (--key). With the Enterprise Edition, rules for everyone are the company’s policy (latet server policy set).
Its options go before the name of one of its commands: latet server rules [OPTIONS] COMMAND.
| Option | Default | Description |
|---|---|---|
--key TEXT |
An API key’s own settings (its id or name), on top of the shared ones. |
latet server rules add
Section titled “latet server rules add”Add an API key’s recognizers (or update those with the same name), checked here first as latet rules test
does. Their examples are not checked against a vault: invent them.
| Argument | Description | |
|---|---|---|
FILE |
required | A YAML file with one or more recognizers. |
latet server rules list
Section titled “latet server rules list”An API key’s recognizers, and whether each one loads.
| Option | Default | Description |
|---|---|---|
--json |
off | Print them as JSON. |
latet server rules remove
Section titled “latet server rules remove”Remove an API key’s recognizer.
| Argument | Description | |
|---|---|---|
NAME |
required | The recognizer’s name. |
latet server rules import
Section titled “latet server rules import”Add a rules file to an API key’s settings: what adds protection; with --all, what lowers it too.
| Argument | Description | |
|---|---|---|
FILE |
required | A rules file (latet rules export), or a config.yaml or latet.yaml. |
| Option | Default | Description |
|---|---|---|
--all |
off | Also what lowers protection. |
--dry-run |
off | Only say what it would do. |
latet server rules export
Section titled “latet server rules export”Write an API key’s rules to a file (--key; the terms are values in clear), to share them by hand (latet rules import, or Import in the dashboard).
| Argument | Description | |
|---|---|---|
FILE |
optional | Where to write them (none: here). |
latet server admin-token issue
Section titled “latet server admin-token issue”Issue an administration token once; --out keeps its secret out of a script’s log.
| Option | Default | Description |
|---|---|---|
--label TEXT |
Whose or what it is for; required with --never. |
|
--days INT RANGE |
Days it lasts; default: server’s admin_token_days. | |
--never |
off | Never expires; can do all an administrator can until revoked. Only a lasting token can issue one. Keep it apart to issue others. Give CI a token with --days. |
--out PATH |
Write a private {url, token} record; print no secret. |
latet server admin-token list
Section titled “latet server admin-token list”Every token: this marks the one in use; tampered rows open nothing; never a secret.
latet server admin-token revoke
Section titled “latet server admin-token revoke”Revoke a token; revoking this or the last one asks and explains the way back.
| Argument | Description | |
|---|---|---|
TOKEN_ID |
required | The administration token id, never its secret. |
| Option | Default | Description |
|---|---|---|
--yes, -y |
off | Confirm in a script; your own terminal still asks. |
latet server log
Section titled “latet server log”The administration log: who did what, when, on what, from where (never a value); verify checks its chain.
| Option | Default | Description |
|---|---|---|
--since TEXT |
From: 7d, 12h, or an ISO date. | |
--until TEXT |
Until: excluded; accepts exact epoch seconds too. | |
--action TEXT |
One action. | |
--actor TEXT |
An identity id or admin: |
|
--cursor TEXT |
Resume cursor, with the same original filters. | |
--limit INT RANGE |
100 |
Maximum entries to read. |
--json |
off | JSON lines, with exact id and ts. |
latet server log verify
Section titled “latet server log verify”Walk the log’s chain and print its head for a copy kept elsewhere; with Latet Enterprise, say each SIEM gap marker that is not Latet’s, waiting on the server or in a SIEM’s copy, and those too old to be checked.
| Option | Default | Description |
|---|---|---|
--siem PATH |
A file of the events your SIEM received, 256 MB at most and never a link: a JSON array, one event a line, or a Splunk or Elastic export. Each gap marker in it is checked against the entries of the log that name Latet’s (Latet Enterprise). |
latet server groups list
Section titled “latet server groups list”Show the groups, where each comes from, the roles given to it and who is in it.
latet server groups add
Section titled “latet server groups add”Add a group, made by hand.
| Argument | Description | |
|---|---|---|
NAME |
required | The group’s name. |
latet server groups rename
Section titled “latet server groups rename”Rename a group made by hand (one from the identity provider is renamed there).
| Argument | Description | |
|---|---|---|
GROUP |
required | The group: its id (g_…) or its name. |
NAME |
required | Its new name. |
latet server groups remove
Section titled “latet server groups remove”Remove a group: its members keep their accounts; the roles given to it and its control of API keys go.
| Argument | Description | |
|---|---|---|
GROUP |
required | The group: its id (g_…) or its name. |
latet server groups join
Section titled “latet server groups join”Put a person in a group, by hand.
| Argument | Description | |
|---|---|---|
GROUP |
required | The group: its id (g_…) or its name. |
PERSON |
required | The person: their id (u_…), e-mail or user name at the provider. |
latet server groups leave
Section titled “latet server groups leave”Take a person out of a group they were put in by hand.
| Argument | Description | |
|---|---|---|
GROUP |
required | The group: its id (g_…) or its name. |
PERSON |
required | The person: their id (u_…), e-mail or user name at the provider. |
latet server roles list
Section titled “latet server roles list”Show who has each role: the people and the groups it is given to.
latet server roles grant
Section titled “latet server roles grant”Give a role to a person or a group. The first administrator is made this way.
| Argument | Description | |
|---|---|---|
SUBJECT |
required | A person (id, e-mail or user name) or a group (id or name). |
ROLE |
required | group-lead, security, auditor or admin. |
latet server roles revoke
Section titled “latet server roles revoke”Take a role back from a person or a group.
| Argument | Description | |
|---|---|---|
SUBJECT |
required | A person (id, e-mail or user name) or a group (id or name). |
ROLE |
required | group-lead, security, auditor or admin. |
latet server controllers list
Section titled “latet server controllers list”Show each API key and the people and groups who control it.
latet server controllers add
Section titled “latet server controllers add”Give the control of an API key to a person or a group: they work in its space from their dashboard.
| Argument | Description | |
|---|---|---|
KEY |
required | The API key: its id (u_…) or its name, as latet server keys list shows. |
SUBJECT |
required | A person (id, e-mail or user name) or a group (id or name). |
latet server controllers remove
Section titled “latet server controllers remove”Take the control of an API key back.
| Argument | Description | |
|---|---|---|
KEY |
required | The API key: its id (u_…) or its name, as latet server keys list shows. |
SUBJECT |
required | A person (id, e-mail or user name) or a group (id or name). |
latet server sign-in show
Section titled “latet server sign-in show”Show single sign-on’s settings, whether the client secret is saved, and SCIM’s address and tokens.
latet server sign-in set
Section titled “latet server sign-in set”Set up single sign-on from a YAML file (its sso section, or the section’s keys at the top), or change the settings in use with the options alone (refused, nothing changed, when someone changed them meanwhile: run it again).
While the dashboard’s changes that apply to everyone take the company sign-in (--company-changes sso, the default),
a session latet dashboard’s one-time code opened reads and changes nothing that applies to everyone. A new issuer
needs the client secret saved again; people who signed in are then unlinked and linked again (latet server people unlink --all, link --all).
| Argument | Description | |
|---|---|---|
FILE |
optional | A YAML file with the sso section (none: the settings in use). |
| Option | Default | Description |
|---|---|---|
--accounts TEXT |
Who gets an account at a first sign-in: scim, group or open. | |
--allowed-domain TEXT |
A Google Workspace domain whose people get in (repeat it). | |
--company-changes TEXT |
Whether the dashboard’s changes that apply to everyone take a session opened with the company sign-in (sso) or any administrator’s session (any-session). |
latet server sign-in off
Section titled “latet server sign-in off”Turn single sign-on off: people open the dashboard with latet dashboard only.
latet server sign-in test
Section titled “latet server sign-in test”Check that the provider answers: its discovery document and its keys. A real sign-in checks the secret.
latet server sign-in secret
Section titled “latet server sign-in secret”Save the client secret the provider gave Latet, or forget it (--remove).
The secret is asked without showing it, or read from standard input; the server keeps it sealed with its master key for the issuer it is saved for, never in the settings.
| Option | Default | Description |
|---|---|---|
--remove |
off | Forget the saved secret. |
latet server sign-in scim-token
Section titled “latet server sign-in scim-token”Make a token for your identity provider’s SCIM provisioning, or remove one (--remove ID).
The token is printed once; the server keeps its keyed hash. It ends as an administration token does (90 days unless
--days or --never says otherwise): make the next one before it ends. A token keeps serving when whoever made it no
longer administers: remove it here.
| Option | Default | Description |
|---|---|---|
--remove TEXT |
A token’s id: SCIM stops taking it. | |
--days INT RANGE |
Days until it ends. | |
--never |
off | A token that never ends. |
latet server approvals show
Section titled “latet server approvals show”Who decides now, on a change that lowers protection and on the Live Reviewer’s texts.
latet server approvals set
Section titled “latet server approvals set”Change who decides. Each change is kept in the server’s administration log; what waits keeps its route.
| Option | Default | Description |
|---|---|---|
--changes CHOICE |
Who decides on a change that lowers protection: self (whoever’s settings they are) or security (the security team). | |
--live-review CHOICE |
Who decides on the Live Reviewer’s texts: self (whoever sends them) or security (the security team, who then see each text). |
latet server reports export
Section titled “latet server reports export”Export a report of the server’s event log: requests, stopped ones and values masked, a row a day for each group,
kind, name, project and agent. Counts only; people as reports.people says, API keys by name. Recorded in the
administration log.
| Option | Default | Description |
|---|---|---|
--from TEXT |
The first day, YYYY-MM-DD (default: 30 days ago). | |
--to TEXT |
The last day, YYYY-MM-DD (default: today). | |
--group TEXT |
One group, by its id (g_…) or its name. | |
--project TEXT |
One project, by its name. | |
--agent TEXT |
One agent: claude-code, codex, opencode, apps… | |
--category TEXT |
One kind of value: EMAIL, IBAN, a term’s type… | |
--format TEXT |
csv |
csv, or json (with the administration log). |
--output, -o PATH |
Write it to a new regular file; existing destinations are refused. |
latet server reports settings
Section titled “latet server reports settings”Show, or change, how people appear in reports and in the events sent to the SIEM, and how long the event log keeps its counts. In several countries a tool that can follow each employee’s work needs an agreement first: see Reports and SIEM in the documentation.
| Option | Default | Description |
|---|---|---|
--people TEXT |
group-only, pseudonymous or named. | |
--retention-days INT |
Days the log keeps its counts. |
latet server siem show
Section titled “latet server siem show”The SIEM outputs, and how each is doing.
latet server siem set
Section titled “latet server siem set”Set the SIEM outputs from a file. A secret is never written there: latet server siem secret sets it.
| Argument | Description | |
|---|---|---|
FILE |
required | A YAML or JSON file: a list of outputs, or siem: and the list. |
latet server siem test
Section titled “latet server siem test”Send a test event to each SIEM output, or to the one named, and say whether it arrived.
| Argument | Description | |
|---|---|---|
NAME |
optional | The output (default: each of them). |
latet server siem skip
Section titled “latet server siem skip”Pass the refused entry or held run at a SIEM output’s queue. Administration-log entries stand behind a gap
marker, recorded as siem.skipped with its range; refused non-admin events are dropped and counted. Read the
receiver’s own log first: these entries never reach it. Refused while another instance sends to the output.
| Argument | Description | |
|---|---|---|
NAME |
required | The output. |
latet server siem secret
Section titled “latet server siem secret”Set the secret of a SIEM output (its token or key), asked for and hidden: kept sealed in the server’s database, never in the settings, never shown again.
| Argument | Description | |
|---|---|---|
NAME |
required | The output. |
| Option | Default | Description |
|---|---|---|
--remove |
off | Remove its secret instead. |
latet server terms status
Section titled “latet server terms status”What each source gave and when it last synced, and how many terms the server keeps. Never a term.
latet server terms run
Section titled “latet server terms run”Sync now: every source, or the one named, on whichever instance of the server holds the sync’s turn. Waits a minute at most for it to end, and says what each source gave.
| Argument | Description | |
|---|---|---|
SOURCE |
optional | Only this source. |
| Option | Default | Description |
|---|---|---|
--no-wait |
off | Ask for it, and do not wait for it to end. |
latet server terms gone
Section titled “latet server terms gone”The terms no longer in their source, still masked until they are removed. It shows the terms themselves: run it yourself, never through an agent.
| Option | Default | Description |
|---|---|---|
--source TEXT |
Only this source’s. |
latet server terms remove
Section titled “latet server terms remove”Stop masking terms no longer in their source, for everyone the server serves: this lowers protection, they leave in clear from now on. A term its source still gives is never removed.
| Argument | Description | |
|---|---|---|
IDS… |
optional | The terms’ ids, as latet server terms gone lists them. |
| Option | Default | Description |
|---|---|---|
--source TEXT |
Every term of this source no longer in it. | |
--all |
off | Every term no longer in its source. |
--unreadable |
off | The terms no master key of this server opens, among those no source gives any more. |
--yes, -y |
off | Remove them without asking. |
latet server terms secret
Section titled “latet server terms secret”Set a source’s secret (a token, a password, a client secret), asked for and hidden, never taken as an argument: kept sealed on the server for where the source goes and what it reads, never shown again.
| Argument | Description | |
|---|---|---|
SOURCE |
required | The source, by its name. |
| Option | Default | Description |
|---|---|---|
--remove |
off | Remove its secret instead. |
--yes, -y |
off | With --remove: remove it without asking. |
latet server terms sources show
Section titled “latet server terms sources show”The sources, as latet server terms sources set takes them (YAML): the company’s addresses, directories,
filters and excluded values, so run it yourself, never through an agent. A source names its secret, never holds
it.
latet server terms sources set
Section titled “latet server terms sources set”Use the sources the file lists, in place of those before. A source taken out leaves its terms “no longer in the
source”: still masked until someone removes them. A secret is never written there: latet server terms secret.
| Argument | Description | |
|---|---|---|
FILE |
required | A YAML file: sources: and the list, as sources show prints it. |
| Option | Default | Description |
|---|---|---|
--yes, -y |
off | Set them without asking when a source with terms is taken out. |
latet server license show
Section titled “latet server license show”Show the server’s license: who it is for, the users bought and in use (people and API keys), the dates.
latet server license install
Section titled “latet server license install”Check a license file on the server and keep it in its database: every instance takes it at once.
| Argument | Description | |
|---|---|---|
FILE |
required | The license file the licensor sent (.json). |
| Option | Default | Description |
|---|---|---|
--yes, -y |
off | Install it without asking when the server’s policy, its synced terms or its central approvals stop with it. |
latet server license remove
Section titled “latet server license remove”Remove the server’s license: the Enterprise features stop for everyone on it.
| Option | Default | Description |
|---|---|---|
--yes, -y |
off | Remove it without asking. |
latet server policy set
Section titled “latet server policy set”Make FILE this server’s policy: every person and API key, on every instance, is raised to it at once.
It is checked here first, as latet policy check does: a file that cannot be read changes nothing, and what in it
is not read (a setting with a mistake is left out whole: one malformed term leaves out every term) is said, and
asked about, before anything is sent. When the server has a policy and FILE locks fewer settings, or lets each
person add exceptions where only the company’s counted, it says so and asks first; so it does when the server’s
policy cannot be read here. It compares which settings are locked and whose exceptions count, not what is in them
(a term added or removed is not asked about). It sets FILE in place of the policy it compared with: when someone
changed the server’s policy meanwhile, the server refuses it, and it reads that policy again, compares again and
asks again. The change is recorded in the server’s administration log, with the settings it locks and never a
value.
| Argument | Description | |
|---|---|---|
FILE |
required | The policy file to set. |
| Option | Default | Description |
|---|---|---|
--yes, -y |
off | Set it without asking when something in it is not read, it locks fewer settings, it lets each person add exceptions again, it replaces a policy that cannot be read here, or the server’s policy was changed while it ran. |
latet server policy show
Section titled “latet server policy show”This server’s policy: when and by whom it was set, what it sets, whose exceptions count, and whether it is in
force. Its text holds values (the company’s terms): only --file writes it, to a file only you can read.
| Option | Default | Description |
|---|---|---|
--json |
off | Print it as JSON, without its text. |
--file PATH |
Write its text to this file, to edit it. |
latet server policy remove
Section titled “latet server policy remove”Remove this server’s policy: every person and API key may then go below what it set (a change that lowers protection still waits for their approval). It asks first.
It removes the policy it read before asking: when someone changed the server’s policy meanwhile, the server refuses the removal, and it reads that policy again and asks again.
| Option | Default | Description |
|---|---|---|
--yes, -y |
off | Remove it without asking (once you agreed), also when the server’s policy was changed while it ran. |
latet policy check
Section titled “latet policy check”Check a policy file before it is set on a server with latet server policy set: what it locks, what it leaves
to each person, whose exceptions count, and what in it is not read.
Exit code 0 when all is well, 1 when something in it is not read, 2 when it cannot be read at all.
| Argument | Description | |
|---|---|---|
FILE |
required | The policy file. |
© 2026 Emanuele Casabona · VAT IT02293040990 · Privacy policy · Legal notice · latet.ai