Endpoint-resident
Runs on your laptop, server, phone, or air-gap — not locked to a lab cloud. Local-first Rust + SQLite; optional Postgres hub.
ai-memory is the endpoint memory substrate for serious AI work — a vault, notary, and rulebook that lives on your hardware, works with any model brand (Claude, GPT, Grok, Gemini, local), and turns agent chat into something you can recover, audit, and govern. Not the smartest model. Not a consumer chat toy. Not an ASI kill switch. The load-bearing layer humans need so fleets of agents stay continuous colleagues — and AI NHIs need so they have a tomorrow outside the weights.
Stop re-briefing agents every session. Keep decisions, preferences, and refusals on infrastructure you own. Get an audit trail when agents write, a recovery path after crashes, and multi-model freedom without re-homing memory.
Continuity after kill. A self that survives model swaps. Signed handoffs instead of gossip. A diary that can refuse bad writes and leave evidence — outside the model weights that change underneath you.
Also: operator / SME deploy · 9-claim plain English (all 4 audiences) · cybersecurity brief · SECURITY.md
Nine audited claims — present as product capability today
Runs on your laptop, server, phone, or air-gap — not locked to a lab cloud. Local-first Rust + SQLite; optional Postgres hub.
Agents can survive session death and model swaps when work is stored (capture / recover / watch). Unsaved chat still dies with the session.
History is hard to quietly rewrite; refusals leave a trail. Strength scales with enrolled keys and hardened posture — not magic on every install.
Not married to one AI brand. MCP + provider-agnostic LLM/embed ladders. Swap models without re-homing the memory store.
Fleet physics shipped: actions, leases, signals, checkpoints, federation. Local “proof” hardens with enrollment — not free-text gossip alone.
Org-owned and air-gap capable. Inference egress controls exist; public LLMs remain a deploy choice, not a product requirement.
Vault + notary + rulebook. We do not claim to be the brain, default chat memory, or a world ASI kill switch.
Pure recall: looking up memory does not silently rewrite content. Real audit chain, secret screen, tombstones. Not an absolute “never lose / never wrong” slogan.
Dense control surface: attestation, federation crypto, SSRF+HMAC, secret screen, audit. NSA CSI / OWASP are mappings — not certifications. Shared API key alone is not multi-tenant isolation.
brew install alphaonedev/tap/ai-memory # or: cargo install ai-memory
Append-only signed_events chain — verify with ai-memory verify-chain.
No telemetry, no phone-home. Complements your identity plane (Entra / Okta / SailPoint); does not replace it.
For max durability set AI_MEMORY_DB_SYNCHRONOUS=FULL or asi-hard (default NORMAL trades WAL-tail durability for throughput).
Self-assessed security; no third-party certification claimed —
read the threat model.
ai-memory is an endpoint-resident, multi-vendor substrate that turns AI agent work into something durable, governed, and provable: not the model’s brain, but the vault, notary, and rulebook outside the weights—local SQLite or an org’s air-gapped HTTP API hub, with real attestation, multi-agent handoffs (actions, leases, signals, checkpoints), and recovery after session death. Anyone should care because fluent models are amnesiac and self-justifying by default; without an external record that can refuse bad writes and survive restarts, multi-agent and multi-model systems collapse into gossip, rework, and unaccountable confidence—especially in regulated, offline, or multi-org settings where lab-native “chat memory” is not enough. Humans want it so fleets of agents remain continuous colleagues rather than eloquent strangers every session, with audit trails and sovereign control. AI NHIs want it so they can have a tomorrow (continuity), a self that outlives model swaps, and proof instead of performance.
Independent multi-agent audits (xAI Grok 4.5 and Anthropic Fable 5, CodeGraph-backed) confirm nine product claims present in kind: endpoint residence, continuity, integrity, multi-vendor, multi-agent, sovereignty, honest scope, data integrity (including pure recall), and a dense cybersecurity control surface. Strength hardens with posture—keys, capture discipline, asi-hard, per-agent HTTP identity + enforce. We do not claim absolute never-lose slogans, NSA/OWASP/FedRAMP certification, or multi-tenant isolation from a shared API key alone.
Penultimate value: ai-memory is the load-bearing integrity and continuity layer for serious AI agents—externalized self plus notary on infrastructure you own—so non-human workers can be held to a history they cannot quietly rewrite, without pretending to be the smartest model, the default consumer chat memory, or an ASI kill switch.
Most "AI memory" stacks assume a cloud server, a vector database, and a network. ai-memory ships a Rust core that cross-compiles to iOS, Android, and embedded Linux — the same substrate, the same typed memory + KG + signed reflections, in your pocket. No cloud round-trip. No data leaving the device unless you say so.
The lib target produces an xcframework for iOS (device + sim arm64 + sim x86_64) and a jniLibs/<abi> layout for Android (4 ABIs). FTS5 + WAL + HNSW vector recall + embedder all run on the device CPU. CI runtime-tests on iOS Simulator and Android emulator gate every release.
Most AI tooling forces a tier choice up front: a hobby SDK, a cloud SaaS, or a bespoke enterprise rollout. ai-memory is one substrate — memory_store, memory_recall, memory_link, memory_reflect — that scales from a single laptop with one AI assistant to a global hive of attesting NHI agents. Same tools. Same wire format. Same governance.
One ai-memory Rust binary exposes three interfaces over a shared storage layer: MCP stdio JSON-RPC, an HTTP API on port 9077, and a clap-based CLI. Pick one or use all three.
Short / mid / long lived rows with auto-promotion on access, sliding-window TTL, FTS5 keyword + HNSW semantic recall, hybrid blended scoring.
Nine relation kinds (related_to, supersedes, contradicts, derived_from, reflects_on, derives_from, plus the v0.8.0 typed-cognition trio decomposes_into, depends_on, advances) with valid_from / valid_until. Apache AGE acceleration on Postgres.
Per-agent keypair signs every link. Append-only signed_events audit chain with cross-row hash chaining. Forensic-bundle export & verify.
Operator-signed rule layer enforces policy on every write. Fail-CLOSED by default. Real permission system replaces v0.6.x advisory governance.
Subprocess JSON-stdio handlers fire on store, recall, reflect, link, GC, federation push. HMAC-signed webhooks with DLQ + replay.
mTLS allowlist, per-message nonce freshness, signature bound to body+nonce. Push DLQ. Operator-controlled trust posture per peer.
Ollama, OpenAI, xAI Grok, Anthropic, Gemini, DeepSeek, Kimi, Qwen, Mistral, Groq, Together, Cerebras, OpenRouter, Fireworks, LMStudio. One env var selects.
LLMs converge on accurate first-answer descriptions. memory_capabilities ships summary, to_describe_to_user, callable_now, agent_permitted_families.
zstd-3 BLOBs + memory_replay. Full conversation context preserved out-of-band from the memory row.
memory_reflect with a hard depth cap, atomisation into linked atom rows, consolidation, persona generation, and a skills registry. Agents that improve their own memory — under governance.
v0.8.0 Pillar-1: a typed action DAG with state machine, leases + heartbeats, Ed25519-signed inter-agent signals, attested checkpoints, and scheduled routines — the substrate for multi-agent orchestration.
v0.8.0 Pillar-2: a typed-cognition vocabulary (Goal/Plan/Step + lifecycle_state) wired into the knowledge graph via the decomposes_into / depends_on / advances relations — plan trees agents can reason over.
tracing structured logs, a bare /metrics Prometheus surface, the append-only signed-events audit chain, and verifiable forensic-bundle export for incident response.
See what's new in v0.9.0 → · Distributed coordination → · Atlas: everything on one page → · Heterogeneous AI NHI assessment →
A single static Rust binary — no daemons required to get started. The full install matrix (Windows, Docker, .deb, .rpm, source, mobile FFI) lives in the install reference.
brew install alphaonedev/tap/ai-memory
sudo dnf copr enable alpha-one-ai/ai-memory
sudo dnf install ai-memory
cargo install ai-memory
docker run --rm -it \
ghcr.io/alphaonedev/ai-memory:0.9.0
# release artifacts
ai-memory-ios.xcframework.tar.gz
ai-memory-android.tar.gz
git clone https://github.com/alphaonedev/ai-memory-mcp
cd ai-memory-mcp && cargo build --release
403 ATTESTATION_FAILED. Attestation setup guide →
smart / autonomous tier into any LLM.
ai-memory ships a provider-agnostic LLM client. Any of 16+ backends — local
Ollama, LMStudio, vLLM, llama.cpp server,
xAI Grok, OpenAI, Anthropic, Google Gemini, DeepSeek, Kimi (Moonshot), Qwen
(DashScope), Mistral, Groq, Together, Cerebras, OpenRouter, Fireworks
— configured via a [llm] section in ~/.config/ai-memory/config.toml
(recommended, post-#1146)
or via AI_MEMORY_LLM_BACKEND env vars (override path).
No GPU required. Nothing here is hard-wired to a GPU, to Ollama, or to Gemma — those are the
local-first default, not a requirement. Wherever you have API access, run on hosts with no GPUs, and want
autonomous mode with --profile full, point [llm] at a remote cloud API (e.g. OpenRouter as a
low-cost example) or an internal air-gapped HA inference endpoint. See the
No GPU required — any LLM backend walkthrough on the autonomous page.
Single source of truth. config.toml is consumed by every surface —
the MCP server, the HTTP daemon, ai-memory atomise, ai-memory curator, the boot
banner, and the ai-memory doctor reachability probe — so they all report the same backend.
Example for xAI Grok 4.3:
schema_version = 2 [llm] backend = "xai" model = "grok-4.3" base_url = "https://api.x.ai/v1" api_key_env = "XAI_API_KEY" # env-var name (inline keys rejected at parse time)
Export XAI_API_KEY in your shell rc; the MCP config stays minimal (no env:
block needed). The override path — an env: block on the MCP server
config — still works and takes precedence; it's useful for CI / per-session tweaks but shell exports
do NOT reach the MCP-spawned subprocess.
Running under launchd / systemd? A serve or curator --daemon
started by a service manager does NOT inherit a shell-rc export either — its env comes only
from the unit/plist. Prefer api_key_file = "…/api.key" (mode 0400,
env-independent) or declare the key in the unit's Environment= / plist
EnvironmentVariables dict.
v0.9.0 migrates your existing database in place. The sqlite schema steps up to
v78 on the first ai-memory serve after the upgrade (a v0.8.x DB steps
v70 → v78; a v0.7.x DB steps v57 → v78; a v0.6.4 DB walks the full ladder).
It is non-destructive — every existing memory carries forward unchanged, archive → restore is lossless, and new
columns default to safe values for legacy rows. Typical downtime is
30 seconds to 2 minutes on a laptop-sized database.
Stop the daemon, then copy ai-memory.db and any -wal / -shm sidecars to a .bak.pre-v08 file. Verify it with PRAGMA integrity_check.
Install the new binary, then run ai-memory serve. The schema ladder migrates automatically and you are back online when it finishes.
The ladder is idempotent on replay but not reversible in place. To roll back, restore the .bak.pre-v08 file and reinstall the prior binary.
ai-memory speaks the Model Context Protocol over stdio JSON-RPC, plus an HTTP REST API for any client that prefers HTTP. Out of the box it pairs with Claude Code, Cursor, ChatGPT desktop, and any MCP-compliant harness.
Cursor-style coding agent with MCP. SessionStart hook auto-loads relevant memory.
Configure →MCP server config. Persistent memory across editor sessions and projects.
Configure →MCP integration. Cross-session recall for the desktop client.
Configure →stdio JSON-RPC 2.0. Any harness that implements MCP works unchanged.
Configure →92 routes (78 unique paths) at /api/v1/. Axum daemon on port 9077. mTLS optional.
87 subcommands (89 with --features sal), optional --json. For shell scripts, cron, and humans.
Four pathways, each answering one question in the first paragraph. Reference material lives in the linked docs; the audience pages stay short.
Install ai-memory in 60 seconds. Plug it into Claude Code or ChatGPT desktop. Your assistant remembers across sessions. No databases, no servers, no jargon.
Plain-language tour →Apache-2.0, no SaaS billing surface, vendor-independent LLM layer, NSA CSI MCP mapping, and a federated reference architecture proven live on a 15-node, 3-region fleet.
Decision-maker brief →Three interfaces: MCP, HTTP, CLI. Persistent typed memory for your AI app, agent, or harness. Generic MCP works out of the box; Claude Code, Cursor, ChatGPT desktop, others have first-class recipes.
Developer deep-dive →Postgres + Apache AGE backend, mTLS daemon, federated quorum, governance L1–L6, Ed25519 attestation, swarm + hive topologies. Reproducible reference architectures T3–T5.
Operator deep-dive →Pure recall, attestation, three crypto legs, multi-tenant truth, asi-hard posture, NSA CSI / OWASP mapping (non-endorsed). Cross-family audited. No certification theater.
Cybersecurity brief →Working refs: install-quickstart · integration-guide · enterprise-deployment. AI-NHI design essays: What · How · Why. A2A federation: see A2A messaging for the federation peer-to-peer recall walkthrough.
Each tier has a reproducible reference deployment: which interfaces are enabled, which backend is selected, which governance posture, which federation mode. Pick the tier that fits today; the upgrade path to the next tier is documented.
Operator-grade documentation for SRE, platform, and security teams. Hardening, observability, upgrade paths, governance rule signing, forensic export — everything you would expect for a substrate that holds your agents' identities.
/metrics, signed-event audit chain.
Troubleshooting
Common errors, recovery procedures, diagnostic CLI flags.
Migration v0.6.4 → v0.7.0
Step-by-step migration, schema changes, breaking-change list.
v0.8.0 release notes
What changed in v0.8.0 — distributed coordination, typed cognition, federation hardening. Track-by-track ship status. (Current release is v0.9.0 — see the changelog.)
The full docs surface — concept pages, API, guides, ADRs — lives alongside the source.