Problem
Running multiple coding agents (Claude Code, Codex CLI, and Antigravity) across the same repository leaves architectural decisions and bugfixes trapped in isolated histories. Existing plugin-based memory systems also drain LLM quotas by re-running distillation on every tool call or silently falling back to coding subscriptions on API errors.
0x1-ai-memory unifies all clients against one local SQLite store in a single Rust binary, with deterministic per-turn distillation and strict cost caps.
Approach & Architecture
- Single binary, zero sidecars. One Rust executable (
0x1-memory) hosts the background daemon (axum), Streamable HTTP and stdio MCP server (5 tools under ~550 tokens), hook CLI shims (<5 ms), SQLite WAL + FTS5 +sqlite-vec(fastembedONNX), and the embedded React Web UI (rust-embed). - Hybrid per-turn anti-drain capture. Lifecycle hooks record raw events locally at 0 LLM tokens after deterministic secret scrubbing. Stateless distillation runs once per completed turn (
Stop, idle timeout, orPreCompact). - Zero silent fallback and privacy boundaries. Daily token and USD caps gate every distillation or embedding request in
usage_ledger. Per-projectprivacy_mode(full,local_only,paused) keeps sensitive repositories strictly on device.
Quick start
Start the local daemon via npm (downloads and SHA-256 verifies the prebuilt native Rust binary into ~/.0x1-memory/bin/) and open http://127.0.0.1:10101.
npx 0x1-ai-memory
MIT licensed. Supports macOS, Linux, and Windows, plus any universal MCP client over Streamable HTTP or 0x1-memory mcp-stdio.


