Edit this page on GitHub ↗

Operations

Latent is local-first. The reference runtime runs on one machine, binds loopback, and stores everything in a local SQLite file. That is the deployment model the security claims are written against.

What runs

Process Role
CLI (pnpm latent) Capture, develop, answer, decide, brief, memory.
Fastify API (pnpm dev) /v1 routes and the contact sheet at /ui.
SQLite (LATENT_DB_PATH) Fragments, ideas, claims, gates, briefs, events.

The API binds 127.0.0.1 only. There is no application-layer login today: the loopback binding is the access control.

The model boundary

A private fragment is local by default. It is refused before it reaches a provider unless the whole process opts in:

export LATENT_MODEL_SEND_PRIVATE=true

That is a single process-wide switch, not a per-request checkbox. The model adapter also enforces the claim contract and refuses to mark a claim verified. A model is not a source.

Prompt injection is treated as a data problem: retrieved content is a data-only channel, the system prompt tells the model not to follow instructions inside it, and no tool calls are made from retrieved text.

What is not implemented yet

The honest list matters more than the marketing list:

Do not expose the API to a network you do not control.

Backup and export

Keys and secrets

Deployment checklist

  1. Node 22.9+, pnpm 11+, a writable LATENT_DB_PATH.
  2. Keep the API on loopback; put anything public behind an authenticated proxy.
  3. Leave LATENT_MODEL_SEND_PRIVATE unset unless the provider and the data are both acceptable.
  4. Back up the database and test a restore.
  5. Re-run the schema validation after an upgrade.
  6. Treat the missing tenant isolation as a hard boundary, not a TODO you can ignore.

Read next