Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

0x1-ai-memory

Latest version: v0.2.2

Overview

Last scanned
25 Nov 2026
Published
25 Nov 2026
npm package Publisher: raihan0x1
0 Stars
0 Forks
5 Versions
Rust Repo language

Scan summary

0x1-ai-memory was last scanned on 25 Nov 2026 at version 0.2.2. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 5 versions, all published on 25 Nov 2026.
  • Findings: No rules fired in version 0.2.2.

Versions

5 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.2.2 LATEST 25 Nov 2026 No rules fired
0.2.1 25 Nov 2026 No rules fired
0.2.0 25 Nov 2026 No rules fired
0.1.2 25 Nov 2026 Not shown
0.0.0-stage 25 Nov 2026 Not shown

No rules fired in 0.2.2

Findings

Findings for v0.2.2. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.2.2; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

0x1-ai-memory

CI License: MIT

Local-first, anti-drain, cross-agent persistent memory engine shipped as a single Rust binary (0x1-memory) with an embedded localhost Web UI.

Built to connect Claude Code, Codex CLI & App, Antigravity, T3 Code, and any MCP client to one unified memory store — without burning coding subscriptions or requiring Python/Node/Bun/Chroma sidecars.

Why 0x1-ai-memory?

Inspired by (and engineered to fix the root causes audited in docs/research/claude-mem-analysis.md):

  • Anti-drain by design (Hybrid Per-Turn): Hooks capture raw events locally at 0 LLM tokens (\<10ms). Stateless distillation runs once per turn (Stop / idle / PreCompact) instead of per-Read/Grep $O(N^2)$ conversation replay.
  • Zero silent fallback: Never dumps traffic onto your Claude/Codex/Antigravity coding subscription when an API fails. Hard daily token & USD caps + transparent usage_ledger.
  • Decoupled Memory Engine: Default to OpenRouter, Gemini, Ollama (local), OpenAI-compatible, or Zero-LLM safe mode ($0). CLI subscription passthrough (claude -p, codex exec, agy -p) is strictly opt-in with OX1_MEMORY_INTERNAL=1 recursion protection.
  • Single Rust binary (~9ms hooks, 0 external runtimes): SQLite WAL + FTS5 (BM25) + sqlite-vec + lazy local ONNX (fastembed) + Streamable HTTP MCP + embedded React Web UI (rust-embed).
  • Ultra-lean recall: ~300–500 token SessionStart briefing + 5 compact MCP tools (memory_search, memory_get, memory_timeline, memory_save, memory_update).
  • Cross-agent out of the box: Unified by normalized Git remote/repo across worktrees and all 4 clients, with per-project privacy controls (full | local_only | paused) and deterministic secret scrubbing.

Quick Start

Instant Try via npx (recommended — downloads native Rust binary, 0 runtime deps)
npx 0x1-ai-memory

Starts the local Daemon in the background (http://127.0.0.1:10101), automatically opens Onboarding (first run) or the dashboard in your browser, and returns your terminal prompt right away. On first run, the thin launcher downloads and SHA-256 verifies the prebuilt Rust binary into ~/.0x1-memory/bin/ so all hooks and the Daemon run natively in Rust (~9ms hooks).

npx 0x1-ai-memory setup    # CLI Setup (auto-detect & connect all clients in terminal)
npx 0x1-ai-memory status   # Daemon health, Auto-Start, connected clients & today's spend
npx 0x1-ai-memory stop     # stop the background Daemon cleanly
npx 0x1-ai-memory logs     # view ~/.0x1-memory/daemon.log
Native Binary Installer (no Node required — macOS Apple Silicon / Linux x64)
curl -fsSL https://raw.githubusercontent.com/raihan0x1/0x1-ai-memory/main/install.sh | sh
0x1-memory
Build from Source
git clone https://github.com/raihan0x1/0x1-ai-memory.git
cd 0x1-ai-memory

# 1. Build embedded Web UI
cd ui && pnpm install && pnpm build && cd ..

# 2. Build single Rust binary
cargo build --release

CLI Commands

Command Description
0x1-memory Default 1-command start: spawns background Daemon on :10101, opens Onboarding (first run) or Live Stream, and returns your shell
0x1-memory start [--port 10101] [--open] Start background Daemon (idempotent if already running)
0x1-memory stop [--port 10101] Stop background Daemon cleanly (closes active SSE streams immediately)
0x1-memory restart [--port 10101] [--open] Restart background Daemon
0x1-memory logs [-n 50] Print recent lines from ~/.0x1-memory/daemon.log
0x1-memory autostart <enable\|disable\|status> Opt-in login Auto-Start (launchd on macOS, systemd --user on Linux)
0x1-memory serve [--port 10101] [--open] [--foreground] Run Daemon in foreground (debugging, launchd, or systemd)
0x1-memory setup [--client all\|claude-code\|codex\|antigravity\|t3-code] [--yes] [--disconnect] CLI Setup: auto-detect & connect clients with diff preview and backups in ~/.0x1-memory/backups/
0x1-memory status Show Daemon health, Auto-Start, connected/mismatched clients, memory totals, and today's usage
0x1-memory hook <claude\|codex\|antigravity> [event] Ultra-fast (\<10ms) lifecycle hook shim (fails open if daemon is stopped)
0x1-memory mcp-stdio Optional stdio JSON-RPC MCP fallback for clients without Streamable HTTP
0x1-memory search <query> Terminal hybrid search

Development & Releases

# Run all local guardrails (shell, asset parity, UI build, fmt, clippy, offline tests)
./scripts/check.sh

# Bump version, verify, tag vX.Y.Z, and push to trigger GitHub Release automatically
./scripts/release.sh            # interactive (current / patch / minor / major / custom)
./scripts/release.sh patch      # or: current | minor | major | 0.2.0 [--dry-run]

Documentation

  • docs/ARCHITECTURE.md — full architecture, SQLite schema, and 4-client wiring blueprint.
  • docs/research/claude-mem-analysis.md — primary-source audit of thedotmack/claude-mem.
  • docs/research/client-integrations.md — primary-source hooks/MCP & T3 Code (app.asar) reverse engineering.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm 0x1-ai-memory

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

Microsoft's Official agent framework Hijacked
AI & VibeSec

BREAKING: Hijacked Releases of Microsoft’s Official agent-framework Steals Azure and CI Credentials

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Frame 2085668439 (1)
Group 1261154229