Self-hosted shared memory for AI agents, with a clear data boundary.
Landing page · 한국어 · Installation · Agent connection and memory · Data boundaries · Development
Luthn gives multiple AI agents a shared, reusable project memory without making raw private data part of the model's default context.
- Run it in infrastructure you manage with Docker and PostgreSQL.
- Classify and redact intake before exposing agent-safe summaries and context.
- Review sensitive-access requests and external-publication approvals in the local operator console.
- Audit metadata about storage, sharing, retrieval, decisions, and failures without turning the audit trail into a content store.
On macOS, Linux, and Windows, a Codex or Claude Code Stop hook submits a bounded capsule of the final assistant response after a turn. Luthn redacts and classifies that capsule before anything becomes agent-visible. MCP provides safe reads and explicit shared-memory writes.
Lightweight auto-recall fetches one small context pack when a new task or material topic begins. It is enabled by default when an agent is connected and reuses that context during the task instead of querying on every turn. Optional non-sensitive project, task, and topic keys scope and rank recall; recent safe projections receive a bounded ranking bonus.
completed turn -> bounded capsule -> classify and store safe context
new task -> auto-recall or MCP -> reuse relevant context
See Agent connection and memory for setup, the one-time hook Trust step, privacy guarantees, and recall limits.
Codex and Claude Code use the same connection lifecycle. The first command configures a host and the second verifies its state:
luthn connect codex
luthn connection status codex
luthn connect claude
luthn connection status claudeCodex and Claude Code can be connected to the same Luthn installation at the same time. They share agent-safe memory while their hooks, MCP registrations, recall instructions, and connection state remain independently managed. See Multiple agent connections for coexistence, name-conflict, disconnect, and uninstall behavior.
Each connection command installs an agent-specific Luthn-owned Stop hook,
registers the Docker-backed luthn MCP server, and adds marked auto-recall
instructions to Codex AGENTS.md or Claude Code CLAUDE.md. On Windows, the
PowerShell Stop hook completes its bounded
upload inside the hook process with a 10-second timeout so Codex cannot terminate
a detached uploader; failures remain fail-open. macOS and Linux keep the
asynchronous helper. Auto-recall is enabled by default and requests at most 3
items, about 600 tokens, with a 200 ms fail-open deadline and a 10-minute cache.
After the first connection or a managed hook update, restart Codex and Trust
Stop > luthn.agent-connector.v1 from /hooks once.
Give Codex or another coding agent this prompt:
Install and configure Luthn locally by following the instructions here:
https://raw.githubusercontent.com/JakobSung/Luthn/refs/heads/main/docs/installation.md
For requirements, manual installation, Windows setup, lifecycle commands, and agent connections, see the detailed installation guide.
Raw customer records, private messages, credentials, and unredacted operational data stay behind the private boundary by default. Agents normally receive only policy-approved safe projections. A separate requester-bound approval can reveal the encrypted original title and summary for a limited time and read count; credentials and keys are never revealed. External publication remains a separate, explicit approval path.
Read Data boundaries for classification examples, provider-transfer implications, agent visibility, and publication rules.
The local operator console is the authority for sensitive-data decisions in both personal Local mode and the opt-in central OSS Hub mode. A request is reviewed with bounded purpose, session, expiry, and safe reference metadata; the operator must inspect the detail and provide an explicit reason before approving or denying it. Legacy requests can return only a server-validated redacted summary. Protected-memory requests can return the encrypted original title and summary only to the requester holding the one-time capability, for a bounded duration (60 minutes by default) and 1–3 reads (one by default). Credentials, access keys, and private keys are always blocked, and the console never loads the protected value.
Sensitive-access approval and external-publication approval are separate
decisions. The console uses Host API contracts, never direct database access,
and the public runtime keeps outbound transport disabled by default. Personal
On macOS and Linux, SingleOwner installs use the installed Host Helper to authorize
one explicit, bounded server-side browser session on the loopback console. luthn console remains the local recovery path and is the current Windows path. Browser
JavaScript never receives the service or decision credential.
Audit data is metadata-only. Use it to reconstruct a decision timeline, trace classification or provider failures, review configuration changes, investigate ingress/processing outcomes, and verify retention cleanup. Cursor pagination, bounded filters, and metadata-only export support operations; audit records are not a backup, a prompt/transcript store, or a raw-data recovery path. See the API audit and approval contracts and the operations retention model.
- Installation, recovery, and lifecycle
- Agent connection, hook, MCP, and recall
- Simultaneous Codex and Claude Code connections
- Data boundaries
- Operations and recovery
- Container releases
- API
- Architecture
- Local development
- Licensing
The self-host runtime is AGPL-3.0-only; SDKs, HTTP connectors, and public plugin templates are Apache-2.0. See Licensing for the package boundary and CONTRIBUTING.md before proposing changes.