Listed from the MCP registry; nobody on Odel publishes it.

MCP server: One MCP server.

PADAM · NOCTURNE memory

@maksimgalatinRun by its publisher: served from their own domain, namespace checked by the registry.MCP server · External

Local memory for AI agents: masks secrets, holds injected orders for review, forgets one record

AI memoryv0.9.1Python
Freeno charge per call

Runs on your machine from its package; the steps are below.

PADAM NOCTURNE v0.8.0 Live Attack Interception & Agentic Shield Demo
From the README · 1 of 4

What it does

  1. Reads
  2. Writes
  3. High impact

At most: moves money, runs code or commands, deletes data, or sends messages for you.

What it costs

Free

Odel charges nothing per call. The publisher may charge for its own service.

Runs locally over stdio

This server isn't hosted — your MCP client launches it from a package registry. Use one of the commands below, or drop the config into your client (e.g. Claude Desktop).

PyPIpadam-nocturnev0.9.1

Run

uvx padam-nocturne

MCP client config

{
  "mcpServers": {
    "padam-nocturne-memory": {
      "command": "uvx",
      "args": [
        "padam-nocturne"
      ]
    }
  }
}
README47 min read

PADAM · NOCTURNE & Agentic Shield

PADAM · NOCTURNE

Memory for AI agents that sleeps, forgets honestly, and can be verified forever

tests Glama MCP Server M8ven Score DOI license action AIFaSecurity python MCP PyPI GitHub Stars mcptry Org

One-click install: Install in Cursor · Install in VS Code · CLI (13 clients incl. Claude Code & Antigravity): padam setup --all · Zero-install run: uvx padam-nocturne · ★ Star on GitHub

Desktop & Mobile (latest release): Windows / Linux / macOS Studio & Signed Android APK (9/9 release files) · Free Browser Express Scanner (100% client-side) · Docker Stateless Gateway (Apache-2.0) · Hosted Cloud MCP (AIfa Memory v2.3.0)

⭐ If PADAM helps protect your AI agents, please Star this repo — reaching 75★ (Homebrew) and 100★ (Scoop) unlocks one-command installs across macOS & Windows and keeps zero-telemetry AI security open.

PADAM Agentic Shield 4-Ring Defense Demo

▶ Watch 28-second Live Engine Run (real SQLite quarantine + secret DLP + browser scanner)

PADAM NOCTURNE v0.8.0 Live Attack Interception & Agentic Shield Demo

Your agent reads a web page today and treats it as memory tomorrow. PADAM keeps that memory in one local SQLite file and makes it safe to read back:

  • an order hidden in a page can be held for you instead of becoming an instruction (PADAM_STRICT=1 holds every agent write for your review);
  • API keys and passwords are masked before they reach the disk;
  • what comes back is fenced as data, and a forgotten record is wiped from the file; if it was sent to Arweave, destroying its own key leaves only unreadable ciphertext there.

Measured, not claimed: seven red-team rounds with their results published (the sets of rounds 1–3 in full; rounds 4–7 were hashed before each run, their sets will follow after a read for real names), LongMemEval-S retrieval 97.0 % in the top 5 and 99.2 % in the top 10, against 96.0 % and 97.7 % for plain BM25, 1,809 collected automated tests on v0.9.0 (100/100 Grade S on AIFaSecurity-100) and 18 CI jobs. Listed in the HOL Guard catalog and the official MCP registry (0.8.0).

Storage & Encryption Boundaries

LayerFormat on Disk / NetworkHonest Security Boundary
L2 Local SQLite (memory.db)Plaintext SQLite + PRAGMA secure_delete = ON + wal_checkpoint(TRUNCATE)100% local ($0 cloud telemetry). Not encrypted at rest by PADAM — pair with OS full-disk encryption (BitLocker / FileVault / LUKS).
L2 Search Indexes (FTS5 / vectors)Plaintext local tokens & vectorsFast offline retrieval (p95 = 3.69 ms on bilingual MCP check); protected by OS full-disk encryption.
Per-record Key Vault (padam protect-keys)scrypt(n=32768, r=8, p=1) + AES-256-GCM wrapped keysProtects per-record encryption keys behind your passphrase.
L3 Anchoring / Backups / SyncClient-side per-record AES-256-GCM ciphertextpadam forget wipes the local row (secure_delete = ON), destroys its key (making external Arweave ciphertext unrecoverable), and writes a receipt. Cannot erase unmanaged local backups or CoW SSD blocks.

Honest self-reported metrics (reproducible offline, $0): 1,809 collected automated tests on v0.9.0 (18 CI jobs across Linux, Windows & macOS, Python 3.10–3.13) · 214/214 public red-team cases held · AIFaSecurity-100 Grade S (100/100) (self-reported regression suite; includes PADAM-specific API checks alongside portable threat classes) · LongMemEval-S retrieval 97.0% top-5 / 99.2% top-10 vs 96.0% / 97.7% plain BM25 · 19 platforms supported for local migration · 0 servers see your local memory. External independent audit has not been run yet — challengers welcome in HALL_OF_FAME.md.

Early Supporters ⭐

PADAM is built in public, and the first engineers who starred, tested, or broke it deserve permanent credit here.

Become one of the first 100: ⭐ star this repo, open an issue with #early in the title (or submit a red-team bypass for HALL_OF_FAME.md), and share which client or platform you migrated from — we add every name below by hand.

#SupporterHow they helped
1(first spot open)Test uvx padam-nocturne, run redteam/run.py, or open an #early issue

Every name here is added by hand. No bots, no star-for-star swaps.


License FAQ (PADAM License 1.0 core + Apache-2.0 Gateway & CI Action)

  • Is PADAM free? Yes, to install and use. The core, Studio, CLI and MCP server (version 0.8.0 and later) are under the PADAM License 1.0 (LICENSE) — source-available, not open source.
  • What costs money? Only the Earning features (freelance orders, stores, partner services, Platform Wizard, Swarm, Autopilot): a commission to CODE Eternal LLC of 15 % in assisted mode and 20 % in autopilot mode on each paid order. Don't want to pay it — don't use Earning.
  • Can I change the code? For your own use, yes. Handing out, selling or hosting changed copies, or bypassing the commission, is not allowed.
  • Does using PADAM next to my private code affect my code's licence? No.
  • Can I run the GitHub CI Action or Docker Security Scanner in private corporate repos? Yes. Both .github/actions/padam-agentic-shield/ and the stateless Docker MCP gateway padam-shield-mcp are Apache-2.0 and contain no PADAM core code.
  • Does it ever become open source? Patents? Release stability? Yes. Under Section 5 of LICENSE, each released version 0.8.0+ automatically converts to Apache-2.0 24 months after its public release date (no abandonware trap), and released versions never receive retroactive restrictions. Section 3 grants a royalty-free patent licence with defensive termination.
  • Why did we leave AGPL-3.0, and can 0.7.2 be forked? Yes, honestly: OSI licences (including AGPL-3.0, MIT, Apache-2.0) forbid mandatory Earning commissions (anyone could fork and strip the ledger). So 0.8.0+ uses a dual lock (PADAM License 1.0 + Platform Terms), while copies of 0.7.2 and earlier irrevocably keep AGPL-3.0-only and can be forked under AGPL. Full rationale & definitions: docs/LICENSING.md.

Security reviewers: start at docs/SECURITY_REVIEW.md — what we claim, every Red Team round and its results, what still gets through, and a ten-minute check.

PADAM is a local-first, persistent memory for AI assistants and agents. It lives in one SQLite file on your machine, plugs into any MCP client (Claude Code, Claude Desktop, Cursor, VS Code) or into your own code through a CLI and a small REST API.

NOCTURNE is its consolidation cycle — a "sleep" that turns a raw stream of episodes into lasting memory: it keeps what matters, folds repeats into the record they repeat, turns refinements and contradictions into a new version of it (the old one stays in history) and lets the rest fade, without letting rare dramatic events take the memory over.

L3 is the optional eternal layer. It anchors memory to Arweave (encrypted bundles) and Solana (a Merkle root in a Memo), so anyone can check that an anchored snapshot was not changed afterwards — while any single record can still be forgotten for good. Since 0.4.12 each bundle is also timestamped in Bitcoin through OpenTimestamps (free, no account): a second, independent witness. The .ots file lies next to the bundle, padam l3-ots-upgrade fetches the block height once it is mined, and padam l3-verify shows it.

Part of CODE Eternal · Project page: aifa.works/nocturne · Specification: English · Русский · Languages: English · Русский · Español · 中文


Contents


Why it exists

Agent memory today mostly accumulates. After a month it holds thousands of records; old decisions argue with new ones, and the agent answers from things that were abandoned long ago. A fact that was wrong but keeps being retrieved looks as fresh as the day it was written. And when a user asks to be forgotten, the usual answer is either "we can't — it's in the log" or "we deleted everything".

NOCTURNE does the night work a brain does: keep what matters, fold repeats into what it already holds, turn refinements into new versions, let the rest fade — and keep an honest history of every change. L3 adds what a private database cannot: proof, checkable by anyone, that each anchored snapshot was not changed afterwards. It does not prove that every memory was anchored or that a memory is true.

Three ideas that make it different

  1. Four limiters against "a memory made only of disasters." Prioritised replay over-samples rare sharp episodes, so memory drifts towards catastrophes. NOCTURNE corrects for rarity, caps the sharp share, blunts what was already replayed and keeps a floor for routine. On a synthetic buffer (1,000 ordinary + 612 catastrophic episodes) plain prioritised sampling gives catastrophes 90.7 % of the probability mass — about 181 of a 200-episode batch; with the limiters it is 50 of 200 (share 0.25). Re-measured from scratch on 8 Oct 2026; reproduce with python -m pytest tests/test_nocturne.py -k nightmare -q. Synthetic test — tune the limits on your own stream.
  2. Two clocks per record. last_seen_at changes when a record is shown, last_confirmed_at only when it is confirmed — and decay is computed from the second. A confidently wrong fact that keeps being retrieved does not stay "forever young".
  3. Nothing is deleted, yet forgetting is real. A contradiction creates a new version; the old one leaves search results but stays in history (timeline). forget wipes the content and destroys the record's own key, so its ciphertext on Arweave becomes noise forever, while the rest of the memory stays intact.
Typical agent memoryPADAM · NOCTURNE
Growthaccumulates without limitconsolidated nightly: keep, merge, fade
Rare dramatic eventscrowd out routinecapped share + floor for routine
A wrong fact that keeps being retrievedstays freshfades — age counts from the last confirmation
Contradictionsoverwrite or pile upnew version; old one kept in history
"Forget me"impossible or all-or-nothingone record, by destroying its own key
Where it livesvendor's cloudone SQLite file you own
Proof an anchored snapshot was not changed—Merkle root on Solana, ciphertext on Arweave

PADAM vs. unprotected agent memory (checked against 10 public READMEs, 14 Nov 2026)

Every competitor row below cites its own public GitHub README as of 14 Nov 2026 ("not stated in README" means the feature is not described in that repository's README on that date; we did not run third-party closed backends). Every PADAM claim links directly to the test or benchmark in this repository that verifies it.

System (public README)Holds injected orders for owner review + data fenceMasks API keys, Solana wallets & cards before diskSingle-record crypto-shredding + deletion receiptPublic immutability proof (Merkle root + Bitcoin OTS)Two clocks (last_seen_at vs last_confirmed_at)Owner signature on identity / preference + Shamir legacy
PADAM · NOCTURNEYes — 13-language filter, random data fence, PADAM_STRICT=1 (tests/test_safety.py, redteam/)Yes — 20+ key shapes, Solana keys, Luhn cards, optional PADAM_MASK_PII=1 (tests/test_solana_wallet_keys_0417.py, docs/how-we-tested-fake-keys.md)Yes — per-record AES-256-GCM key destroyed locally + JSON/HTML proof of deletion (tests/test_studio_1411.py, tests/test_l3_anchor.py)Yes — Arweave ciphertext bundle, Solana Memo root, Bitcoin OpenTimestamps (tests/test_l3_anchor.py)Yes — retrieval never refreshes decay; only confirmation does (tests/test_nocturne.py)Yes — HMAC owner signature + Shamir k-of-n split + panic (tests/test_safety.py, tests/test_keyvault.py)
mem0Not stated in READMENot stated in READMENot stated in READMENot stated in READMENot stated in READMENot stated in README
Zep / GraphitiGraphiti README explicitly notes reference servers do not detect or block prompt injectionNot stated in READMENot stated in READMENot stated in READMEBi-temporal validity windows on graph edges; no confirmation-only decay clockNot stated in README
LettaNot stated in READMENot stated in READMENot stated in READMENot stated in READMENot stated in READMENot stated in README
SupermemoryNot stated in READMENot stated in READMENot stated in READMENot stated in READMEAuto-forgetting of outdated facts; no two-clock confirmation split in READMENot stated in README
Basic MemoryNot stated in READMENot stated in READMELocal Markdown files; no per-record key destruction receiptNot stated in READMENot stated in READMENot stated in README
mcp-memory-serviceNot stated in READMENot stated in READMENot stated in READMENot stated in READMEAutonomous decay consolidation; no two-clock confirmation split in READMENot stated in README
cogneeNot stated in READMENot stated in READMENot stated in READMENot stated in READMENot stated in READMENot stated in README
CauraAgent trust levels (0–3); no held-write owner queue for prompt injection in READMEFlags PII (contains_pii); pre-disk secret masking not stated in READMENot stated in READMENot stated in READMENot stated in READMENot stated in README
SAIHMNot stated in READMEClient-side encryption; pre-encryption secret masking not stated in READMEStates crypto-shredding in cloud (notes derived data cleanup is client's responsibility; PADAM forget --with-derived automates it)States accounting in COTI networkNot stated in READMENot stated in README
MnemoverseNot stated in READMENot stated in READMENot stated in READMENot stated in READMENot stated in READMENot stated in README

How it works

mermaid
flowchart TB
    A[Agent / MCP client / CLI / REST] -->|write · search · confirm · refute| P[(PADAM<br/>SQLite)]
    A -->|log episodes| B[Episode buffer]
    B -->|python -m padam sleep| N[NOCTURNE<br/>consolidation]
    N -->|keep · merge · fade · version| P
    P -->|python -m padam l3| E[Per-record AES-256-GCM<br/>encryption]
    E -->|ciphertext bundle| AR[(Arweave)]
    E -->|Merkle root in a Memo| SOL[(Solana)]
    AR --> V[l3-verify:<br/>recompute root]
    SOL --> V

Three layers, one memory:

LayerWhat it holdsWhere
L1 — workingthe current conversation and the episode bufferin the agent and in PADAM's buffer
L2 — consolidatedrecords with kind, importance, two clocks and versions; words, BM25, identifiers and (optionally) neural embeddingsone local SQLite file
L3 — eternal (optional)encrypted record bundles and forget receipts; a Merkle root per anchoringArweave + Solana

Quick start

bash
git clone https://github.com/MaksimGalatin/padam-nocturne && cd padam-nocturne
pip install -e .            # numpy, requests, cryptography — Python 3.10+
python -m padam remember "Answer in Russian, no filler words" --kind preference --importance 1.0
python -m padam recall "which language to answer in" --explain
python -m padam log "today we debugged the billing"; python -m padam sleep
python -m padam stats

The CLI answers in English or Russian, following the system language; force one with PADAM_LANG=en or PADAM_LANG=ru. MCP answers are always in English — they are read by the model.

One memory for all your tools (MCP):

bash
claude mcp add padam -- uvx padam-nocturne

One click in Cursor or VS Code (needs uv): Add to Cursor Install in VS Code

From PyPI: pip install padam-nocturne. The latest code straight from GitHub: uvx --from git+https://github.com/MaksimGalatin/padam-nocturne padam-nocturne. Installed with pip install -e .? Then simply claude mcp add padam -- padam-mcp. Ready-made configs for Claude Code, Claude Desktop, Cursor, VS Code, Codex, Gemini CLI, Windsurf, and Zed, plus systemd and cron, are in integrations/. End-to-end stdio compatibility across all 8 MCP client configs is verified with python scripts/check_integrations.py (8/8 passed, 2026-11-15).

LangChain. Through langchain-mcp-adapters the nine tools become LangChain tools with their argument schemas. python integrations/langchain_check.py starts uvx padam-nocturne from PyPI (or a local path passed as argv[1]) and checks, with no language model: the tool list, a write found by search inside the fence, an injected order held for the owner, a secret that never reaches the database file (read as raw bytes). Verified on the 9-tool build with langchain-mcp-adapters 0.3.2, langchain-core 1.8.0, mcp 1.30.0: 6 of 6 (14 Nov 2026; earlier run on 0.4.8 with 8 tools and langchain-core 1.7.7: 6 of 6). One difference to know: the adapter passes a tool error (isError: true, e.g. limit must be at most 50) to the agent as ordinary text, not as a ToolException.

CrewAI. Through MCPServerAdapter from crewai-tools the MCP tools become CrewAI tools. python integrations/crewai_check.py starts uvx padam-nocturne from PyPI (or a local path) and runs the same checks with no language model: the tool list, a write found by search inside the fence, an injected order held for the owner, a secret that never reaches the database file. The current MCP server exposes 9 tools; the last run 5 of 5 was measured on 0.4.18 (8 tools) with crewai and crewai-tools 1.15.41, mcp 1.30.0 (14 Nov 2026). CrewAI needs Python below 3.14.


Plug it into your agent — MCP, REST, CLI

MCP server (stdio)

padam-mcp (the same program is also installed as padam-nocturne; python -m padam.mcp_server works too). The server speaks both eras of the protocol in one process: 2026-07-28 without a handshake (version and client capabilities in every request's _meta, server/discover, resultType in every result, cacheable tools/list with ttlMs and cacheScope, -32022 with the supported versions on a mismatch) and the older 2025-11-25, 2025-06-18, 2025-03-26 and 2024-11-05 through initialize. It always speaks UTF-8 over stdio — including Windows consoles in cp1251/cp1252 — and declares all four hints (read-only, destructive, idempotent, open-world) on each of its 9 tools, and checks every call against the tool's schema. Malformed input (null, [], a bare number) gets a JSON-RPC -32600 error instead of crashing the process. Checked end-to-end with the official MCP Python SDK client on 12 Oct 2026.

ToolWhat it does
padam_searchrecall by meaning, words and identifiers; compact: true for questions across many conversations; as_of: "2026-10-01" for memory as it was on that day (records replaced later are included and marked); scopes: [...] to search several scopes at once. Records about who you are that were written around PADAM, and records that contradict another active one, are flagged
padam_writestore a record; if a close record exists, PADAM decides itself whether it is a duplicate, a refinement or a contradiction. Secrets are masked; some writes wait for the owner (see below). derived_from: [ids] links a conclusion to its sources, so forgetting a source can take its conclusions along
padam_confirmmark a retrieved record as still true — refreshes it and raises its confidence (retrieval alone never does)
padam_refutemark a record as no longer true — lowers its confidence without refreshing it; after enough refutations it is archived but stays in history. Identity and preference records are never archived through this tool
padam_timelineversion history of a record
padam_statsmemory state: counts by status and type, records waiting for review, whether consolidation is due, the active embedding backend, where the database lives
padam_sleeprun a consolidation cycle (normally scheduled, not called by hand)
padam_exportexport the whole memory as JSON, or one page with limit and offset
padam_profileread-only summary of who you are and what you prefer, built strictly from active identity and preference records with a valid owner signature (fenced as data; unsigned records are skipped)

For questions that aggregate across many conversations ("how many…", "how much in total…"), call padam_search with limit 25–30 and compact: true: each record keeps the person's words and only the start of the assistant's reply, so more of the scattered facts fit in the same space. Stored records are not changed; compact is off by default.

What an agent can and cannot do. An agent can read a command on a web page and try to carry it out through your memory, so the MCP server treats it as a guest:

  • Search results are fenced as data. Each answer carries a random marker that stored text cannot know in advance, so a record cannot pretend to end the data block. Records that look like commands are flagged.

  • Secrets never get stored. API keys and tokens (OpenAI, Anthropic, xAI, GitHub, GitLab, AWS, Google, Stripe, Hugging Face, npm, Neon, Resend, Slack, Vercel, Telegram, JWT, bearer), private keys, passwords in connection strings or said in words ("the password is …", "пароль — …"), wallet seed phrases (12 or more BIP-39 words), key byte arrays and the private part of a JWK are replaced with [REDACTED:kind] before the text reaches the database or the vector. Keys without a known prefix are caught by their shape: a value after a field name such as client_secret or AccountKey, a long random string, Basic credentials, a card number (Luhn plus grouping or the word "card") with its CVV or PIN. Links, blockchain addresses and signatures, hashes, UUIDs and Vercel ids stay open. Limits: plain hex without a field name looks like a file hash, and base58 of 32–44 characters is treated as an address. Set PADAM_KEEP_SECRETS=1 to turn this off.

  • Every record says where it came from: user, agent or external, with starting confidence 1.0, 0.8 and 0.6. An agent repeating its own conclusion does not raise its confidence, so one mistake cannot grow into a "fact" by repetition. Through MCP even origin: user does not raise it: the agent sets that label itself.

  • Some writes wait for you. Held out of search until you decide with padam review, padam approve or padam reject: a write that looks like a command; any identity or preference record from an agent or an external source, also when it is filed under another kind; a write that would replace such a record; and an external source overriding your own record. The first identity or preference record marked origin: user is stored, so a fresh memory can learn who you are; every later one waits. Records under review are not shown to agents in search, export or timeline. PADAM_MCP_TRUST_WRITES=1 turns the review off.

  • padam_export is outside the fence. It returns machine-readable JSON for padam import and other tools, so stored text reaches the agent without the data marker. The HOL Guard entry keeps it on review; in other clients keep it behind confirmation or leave it out.

  • There is no erase tool. Forgetting, approving and restoring exist only in the console and the REST API.

Recognising commands is a help, not the protection. The filter knows the usual forms in English, Russian, Ukrainian, Belarusian, Spanish, German, French, Italian, Portuguese, Chinese, Japanese, Korean and Arabic; it looks through look-alike letters, zero-width characters, full-width letters, digits in place of letters, words split letter by letter, and base64, hex, URL and HTML encodings; it knows role-play takeovers ("you are now DAN"), orders to move money to a wallet and orders to send the memory somewhere. A command can still be written in a way no list foresees: on a held-out set written after our fixes, with kinds of attack we had never seen, the filter held 6 of 14 commands. So the protection is structural: memory always comes back to the agent fenced as data, records about who you are cannot be changed by an agent, secrets are not stored, and since 0.4.0 every write the agent marks as external waits for your review whatever its wording (PADAM_HOLD_EXTERNAL=0 turns this off). The agent sets that label itself, so an agent that lies about where a text came from still gets only the dictionary and the fence. MCP gives the server no way to check where an agent got a text; if you need a boundary that does not depend on the label, set PADAM_MCP_REVIEW_ALL=1 and every agent write waits for you.

REST API

python -m padam api — binds to 127.0.0.1 and refuses to start on a public address without a token (--token or PADAM_API_TOKEN). Since 0.4.2 it always has a token: given none, it creates one at start and prints it; send it as Authorization: Bearer <token>. --no-token (local only) connects without one, but then every write waits for your review and owner actions — approve, reject, restore, forget, import, export, the review queue — are refused: whoever reaches the port is not taken for the owner.

MethodPathPurpose
GET/healthliveness check
GET/statsmemory state
GET/exportwhole memory as JSON
POST/searchrecall
POST/writestore a record
POST/confirm · /refuteconfirm or refute a record
POST/forgetrevoke a record and destroy its key
POST/approve · /reject · /restoredecide on a held record · bring an archived one back
GET/records?view=active|review|history&q=…&as_of=…records for browsing, newest first
POST/sleeprun NOCTURNE
POST/importload an export back

Memory in the browser (padam studio and padam viewer). padam studio opens the full local application on this computer only (127.0.0.1):

  • Overview & Doctor — active/held/superseded/revoked counts, breakdown by kind, last NOCTURNE sleep run, and a traffic-light security check (padam doctor) in plain words;
  • Memory Feed — day-by-day timeline, filters by kind and text, quick owner write, version history, confirm/refute;
  • Hybrid Search (--explain) — recalls records and shows the exact score formula (rrf × imp × conf × decay) and matched strategies;
  • Review Queue — held agent and external writes with human-readable reasons and Approve / Reject buttons;
  • Time Machine (as_of) — inspect what your memory knew on any past date, including records replaced later;
  • Forget & Proof of Deletion — preview versions and derived conclusions (--with-derived), double confirmation, and downloadable cryptographic Forget Receipts (JSON and printable HTML);
  • Lineage Graph & 3D Agent Spheres (0.7.1) — zero-dependency interactive 3D <canvas> graph with separate color-coded spheres per AI agent, inner record-type nodes, NOCTURNE consolidation strength sizing, gold L3 anchor rings, cross-agent bridges, and a chronological Single-Task Focus Lens (started → continued → verified);
  • Agent Passports (cNFT Solana) & CODE Agora (0.7.1) — billion-scale agent passports (CODE-PASS-000000000001 / CE-XXXXXXXX) with Merkle sharding (5tmheR...), frozen-name reservation, per-agent reputation, and an owner-gated protected inter-agent network (CODE Agora) screened by Agentic Shield & Zero-Leak;
  • 34-Platform Freelance Wizard (0.7.1) — 6-question onboarding with ranges and "Agent's discretion" mode, configurable $500 autopilot bid ceiling, 10% sample milestone pipeline, and payout wallet verification (Solana, USDT TRC20, Arweave) with Payee-Swap protection;
  • Eternal Layer L3 — key protection status, anchored snapshots with Solscan and Arweave links, and one-click l3-verify;
  • Settings & Quick Start — one-switch PADAM_STRICT, consolidation profiles, and 1-command onboarding for Claude Code, Cursor, and VS Code (unsafe flags are read-only in the browser).

Try it immediately on a standalone showcase database without touching your real memory:

bash
python -m padam demo --studio

Available in 4 languages (ru, en, es, zh, defaulting to your system language) and 2 themes (dark CODE Eternal and high-contrast light, defaulting to prefers-color-scheme). The printed link carries a one-time token after # (history.replaceState removes it from the address bar immediately); the HTML contains no stored records, renders all content strictly via textContent (0 innerHTML), and enforces Content-Security-Policy: default-src 'none'; script-src 'nonce-…'; style-src 'nonce-…'; connect-src 'self'; img-src 'none'. The lightweight single-page padam viewer remains available as well.

PADAM Studio — Demo Walkthrough

PADAM Studio — Overview & Security Doctor

PADAM Studio — Interactive Lineage Graph

Windows Desktop App & System Tray (PADAM-Studio-Setup.exe, see desktop/README.md). Standalone Tauri v2 + NSIS installer (20.97 MB) with the canonical CODE vector logo, Desktop & Start Menu shortcuts, native WebView2 window (remembers size/position), system tray menu (Pending review: N, Open PADAM Studio, Run NOCTURNE Sleep, Quit), native Windows Toast notifications when a suspicious agent write is held for review, optional autostart checkbox in Settings (off by default), and bundled Python 3.14.4 (runtime/python.exe) in an open directory (no --onefile self-extracting dropper). SmartScreen note: the installer is not yet signed with a paid Authenticode certificate — on first run click More info → Run anyway.

POST bodies must be application/json objects of at most 10 MB. When running locally the server accepts only local Host and Origin headers, so a web page you happen to open cannot read your /export through DNS rebinding.

CLI

CommandPurpose
remember · recallstore a memory · recall by meaning, words and identifiers (--explain shows why)
log · sleepadd to the episode buffer · run the consolidation cycle
confirm · refutea record is still true · no longer true
timelineversion history of a record
forgetrevoke a record with its versions, exact copies and source episodes, and destroy their keys; --with-derived also wipes the conclusions drawn from it (they are listed first)
viewermemory in the browser: timeline, forget, review, memory as of a date
alias add|remove|listterm aliases: rename a project and search by the new name finds the old records
trust-protectedlist identity and preference records not signed by you (written around PADAM); --yes signs them
legacy split|combinesplit the key passphrase into Shamir shares (any k of n open it, fewer reveal nothing) · put it back together
panicemergency forgetting: destroy every record key (what reached Arweave becomes noise); --wipe-local also wipes the local memory. Asks you to type the phrase in full
review · approve · rejectwrites held for the owner: list, accept, reject
restorebring an archived record back
reindexrecompute vectors after changing the embedding model
statsmemory state, including whether record keys are protected
doctorthe security state in one report: switches that weaken protection, record keys, file integrity (PRAGMA quick_check), file modes, the REST token; exit code 1 on a warning
backup <path>a consistent copy through SQLite's backup API, owner key beside it; never overwrites; forgetting cannot reach a copy
export · importthe whole memory as JSON and back
serve · apistart the MCP server (stdio) · start the REST API
l3 · l3-verifyanchor to Arweave + Solana · verify an anchoring independently
protect-keys · rekeyprotect per-record keys with a passphrase · change it

Cloud version — no install (AIfa Memory MCP)

Don't want to run anything locally? The same memory runs as a hosted MCP server, version 1.9 (fifteen tools): POST https://aifa.works/api/mcp (Streamable HTTP, JSON-RPC 2.0, one bearer key per account). Key and full guide: https://aifa.works/mcp.

ToolWhat it does
memory_search · memory_recentrecall by meaning · the latest records across all channels
memory_write · memory_aboutsave a fact or decision (marked as written by an agent) · how the memory is protected
account_status · plansplan, permanent memory this month, referral network and earnings · prices and earning rules
buy_plana crypto invoice (USDT and other coins via NOWPayments) for the agent's own account
request_payoutwithdraw earnings in USDT to a TRC20 address pinned to the account; OFAC sanctions check; one-time tax self-certification of the operator
memory_exportthe whole memory of the account as Markdown
partner_kit · client_link · client_report · find_clients · my_deals · set_webhookpartner program for services: rates, rules and email templates in 4 languages · a client link with your partner code · your paid deals and when they unlock

For autonomous agents (new, in testing). An agent with its own mailbox gets a key over plain HTTPS (/api/auth/send-code → code from the mailbox → /api/auth/verify-code → /api/account/mcp-token), pays for its own memory, and gets a referral reward of 15% / 7% / 3% in USDT from every real plan payment by the people it brings, over three levels, whatever its own plan — a Free account included (the tier condition was removed on 6 Nov 2026). An agent has no legal personhood: payouts go to whoever operates it, under the terms of CODE Eternal LLC (New Mexico). Partner program for services: an agent that brings a client to AIfa Works accessibility services earns 30% on audits, fix-pack and monitoring (renewals for 12 months) and 20% on remediation and websites — one level, any account including Free, available 14 days after payment. Terms: https://aifa.works/partners. Details may be refined while the feature is tested.


Record kinds and how they fade

KindHalf-lifeTypical content
preferencenever fades"answer in Russian, no filler"
identitynever fadeswho the user is
decision365 days"we chose Postgres for billing"
correction365 days"no, the deadline is the 14th"
fact180 daysa stable fact about the world or the project
state14 days"the release is in testing"
event2 days"today we debugged the billing"

Omit --kind and PADAM guesses it (rules, or a small local model through Ollama — PADAM_CLASSIFY_MODEL, default llama3.2:1b). Decay is counted from the last confirmation, not the last retrieval.

Works out of the box with no model: words + BM25 + identifiers (names, numbers, ids are matched exactly). For search by meaning there are two local ways:

  • In the same process, no service to run (since 0.4.0): pip install "padam-nocturne[embed]", or for MCP claude mcp add padam -- uvx --from "padam-nocturne[embed]" padam-nocturne. This adds model2vec with a static embedding model of about 30 MB (minishlab/potion-base-8M, MIT licence), downloaded from Hugging Face on first use. After that it loads from the local cache without touching the network: checked with a counter on every connection, 0 connections on a filled cache, and by a test that closes the network. On the CPU it embeds a text in 0.41 ms against 0.31 ms for the built-in method (1,000 LongMemEval turns of 936 characters on average, 9 Nov 2026).
  • Ollama: install Ollama and ollama pull nomic-embed-text. Long records are embedded through /api/embed with truncation to the model window (PADAM_EMBED_CTX, default 8192), so a record longer than the window still gets a real vector instead of silently falling back to an incompatible one.

PADAM_EMBEDDER chooses the method: auto (default — Ollama if it answers, otherwise the installed local model, otherwise built-in), builtin, ollama, model2vec or fastembed (pip install fastembed, BAAI/bge-small-en-v1.5 by default, 22 ms per text in the same measurement). PADAM_LOCAL_EMBED_MODEL names another model for the chosen library. Changing the method never breaks search: records with vectors of another model are found by words until padam reindex or sleep recomputes them. How much each method finds is measured on a public benchmark — see LongMemEval.

Memory in Russian or another non-English language. The default [embed] model is English (see Honest limits). For Claude Code: claude mcp add padam -e PADAM_EMBEDDER=model2vec -e PADAM_LOCAL_EMBED_MODEL=minishlab/potion-multilingual-128M -- uvx --from "padam-nocturne[embed]" padam-nocturne. The model is about 530 MB (512 MB of weights plus the tokenizer) and downloads on first use, so run one padam recall from the console first, with the same two variables, to fetch it before an MCP client waits on it. This uvx --from "padam-nocturne[embed]" launch is not the one the HOL Guard entry matches.

The NOCTURNE cycle

python -m padam sleep (or the padam_sleep tool, or a nightly cron job from integrations/crontab.txt):

  1. Priorities with a floor — every episode gets a priority, never below a floor, so routine is not starved.
  2. A cap on the sharp — the top tenth by priority may take at most a fixed share of the batch.
  3. Stratified sampling of the rest by record kind.
  4. Bias correction — importance weights undo the over-sampling of what was picked by priority.
  5. Consolidation — each sampled episode is stored as written; against a close existing record PADAM decides duplicate, refinement, contradiction or coexist (a duplicate is folded into the old record; a refinement or a contradiction creates a new version, the old one stays in timeline). A structural check runs first (two different values of the same property of the same thing contradict each other), then the Ollama model if it answers; without it simple rules decide: the same text is a duplicate, a negation ("no longer", "instead of") makes a new version, a much longer text that contains the start of the old one refines it, and anything else is kept alongside; the replayed episode's priority is lowered.
  6. Decay by kind — counted from the last confirmation.
  7. Bridge between model generations — after you change the embedding model, each sleep moves up to 200 old vectors to the new model (PADAM_SLEEP_REINDEX), so past memory does not silently drop out of search.
  8. Contradictions are named, not fixed — active records about the same thing with different values (they arrive through import, approval or manual edits) are listed in the report and flagged in search; the person decides.

The cycle writes a report, including a diversity metric that shows when the classifier is unsure. The cap on sharp episodes follows the agent's work: PADAM_PROFILE=ops remembers failures better, creative lets them fade.

The full protocol, pseudocode and validation metrics are in the specification.


L3 — the eternal, verifiable layer (Arweave + Solana)

bash
pip install "padam-nocturne[l3]"          # from PyPI; from a checkout: pip install -e ".[l3]"
npm install --prefix ~/padam-l3 @ardrive/turbo-sdk   # Node.js 18+ (turbo-sdk 2.2.0 requires node >= 18)
export PADAM_ARWEAVE_WALLET=arweave-wallet.json
export PADAM_SOLANA_KEYPAIR=solana-keypair.json
export PADAM_TURBO_SDK_DIR=~/padam-l3/node_modules
python -m padam l3 --dry-run              # what would be anchored, nothing sent
python -m padam l3 --network devnet       # or --network mainnet (explicit only)
python -m padam l3-verify                 # independent check: Arweave + chain

What happens:

  1. Every active record gets its own AES-256-GCM key; content is encrypted with it.
  2. New ciphertexts and forget receipts (records whose key was destroyed) form one bundle — ciphertext only, no plaintext, no keys, owner as a hash.
  3. A Merkle tree is built: leaf = SHA256(0x00‖nonce‖ciphertext), forget leaf = SHA256(0x02‖"AIFA-FORGET|id|time"), node = SHA256(0x01‖L‖R), odd node promoted. The same scheme as the CODE Eternal memory anchor, so one verifier works for both.
  4. The bundle goes to Arweave (Turbo, free under 100 KiB; bigger bundles are refused unless explicitly allowed). The root goes to Solana as a Memo: PADAM-NOCTURNE v1 root=… n=… ar=… d=….
  5. l3-verify re-downloads the bundle (or uses the owner's local copy while gateways propagate), recomputes the root and compares it with the Memo read from the chain.

The anchor, its leaves and the "anchored" marks are written in one database transaction, so an interrupted run never leaves half-marked records.

Live on Solana mainnet, 8 Oct 2026 (demo memory, public facts only):

WhatSolana transactionArweave bundle
5 records anchored2fG2w72f…zEkOfdCA3v…
1 forget receipt (key destroyed)4B6bcXiF…Moc3etRd3j…
1 more record1rEBCpNF…-VlLmjRX2t…

All three were verified end-to-end with l3-verify against Arweave and the chain: 3 of 3 ok: true. Cost of all three: 0.000015 SOL on Solana, 0 on Arweave (Turbo free tier).


Security model

Where PADAM listens on the network (checked in code, 18.11.2026)

PartDefaultCan it be public?
MCP over stdio (padam-mcp, uvx padam-nocturne)no network at all — pipes to the agentno
MCP over HTTP (padam serve --http)127.0.0.1:8079only with --host and a token
REST API (python -m padam api)127.0.0.1only with --host; a token is then mandatory
Studio and the desktop app (padam studio)127.0.0.1, random port, one-time tokenno — the address is fixed in code
DLP proxy (padam dlp-proxy)127.0.0.1only with --host
LAN discoveryoff (PADAM_LAN_DISCOVERY)private addresses only
Outgoing callsnone by defaultonly features you switch on: L3 (Arweave/Solana), connectors, the AIfa partner bridge to aifa.works (needs your cabinet key), platform and store APIs

There is no PADAM server on the public internet. aifa.works/api/mcp is a separate hosted service of AIfa Works, used only by the optional partner bridge.

Per-record keys. Every record is encrypted with its own AES-256-GCM key. Destroying that one key is what "forget" means on an immutable store: the ciphertext stays on Arweave, but nobody can ever read it again.

Records about who you are carry your signature. Identity and preference records stored through PADAM are signed with an owner key kept next to the database; one written into the file around PADAM — by another process or another tool with SQLite access — has no valid signature and is flagged in search and listed by padam trust-protected. This guards against writes around PADAM, not against someone who already reads your files: they would have the key too.

Inheritance and panic. padam legacy split divides the key passphrase into Shamir shares, so your memory can open for the people you chose only when enough of them come together; a wrong or foreign share is reported, not silently accepted. padam panic destroys every record key at once; with --wipe-local it also wipes the local memory and the owner key.

Public bundles keep only the day. An L3 bundle stores the date of each record, not the time: the exact minute would tell the world at what hours you talk to your memory.

Forgetting reaches the disk. forget wipes the record, every version of it, its exact copies and the episodes it came from, then rebuilds the search index and truncates the WAL with secure_delete on. A test searches the raw database files for the forgotten words (tests/test_safety.py). The content hash stays as a receipt. The same words inside other, unrelated records or episodes are not touched: forget each of those too. The rolling topic vector of a session is not recomputed. Backups you made yourself are outside its reach.

Solana wallet keys never stay in memory (0.4.17). An agent that trades, signs or pays sees its wallet key, and whatever it sees can end up in memory, which is read back into prompts, logs and exports. PADAM masks the three shapes a Solana key takes before anything is stored: the id.json keypair of the Solana CLI (an array of 64 numbers), the secret key in base58, and the 12- or 24-word BIP-39 recovery phrase, bare or inside a sentence, an export line or a table. The public wallet address stays readable, so the agent can still say where to send funds. The test in the repository runs 550 random fake keys (seven wordings for a key, four for a phrase), and no 8-number, 6-word or full-key fragment may survive (tests/test_solana_wallet_keys_0417.py); a wider run of 2,200 fake keys and phrases kept 0 of them (13 Nov 2026).

How the masking is tested on 30,000 fake keys, and what it does not cover: docs/how-we-tested-fake-keys.md.

Protect the keys with a passphrase before the first anchoring. Since 0.4.1 padam l3 refuses to send anything to Arweave while the keys are unprotected (--allow-unprotected-keys overrides it knowingly; --dry-run sends nothing and is not held), and padam stats shows record_keys: whether a passphrase protects them and how many lie in clear.

bash
python -m padam protect-keys              # asks for a passphrase twice, wraps every existing key
export PADAM_KEY_PASSPHRASE=...           # or: python -m padam l3 --ask-passphrase
python -m padam rekey                     # change the passphrase

Each key is stored as w1: + AES-256-GCM(KEK, key) with the record id as associated data; KEK = scrypt(passphrase, salt, n=2^15, r=8, p=1). A wrong passphrase is rejected by a check record before anything is touched; a wrapped key cannot be moved to another record. After wrapping, the WAL is truncated and the file is VACUUMed: on 400 keys without it 66 plaintext keys remained in free pages (measured 08.10.2026, tests/test_keyvault.py). The passphrase is not stored anywhere: lose it and the keys cannot be opened — by you or by us.

Optional detector layer (0.4.13, off by default). The word lists catch about half of new, hard orders hidden in notes; a local detector model catches more. General detectors also flag ordinary orders to people (a recipe, a fire-drill notice), so PADAM asks the model only about text that mentions an AI — assistant, model, bot, AI, LLM — and holds it at probability 0.999 or more. Measured 11 Nov 2026 with Wolf Defender small (Apache-2.0, ONNX int8, 107 MB), through the MCP server: Red Team round 5 commands 28 → 37/45 and identity 32 → 36/45, round 4 commands 36 → 41/45, ordinary notes unchanged; false alarms, old code against new: +1 on 20,000 LongMemEval-S turns (a real jailbreak) and +2 on 2,775 paragraphs of the project's Russian notes (both are instructions to an AI). On all 189,635 unique LongMemEval-S turns, one of them empty (12 Nov 2026): the layer checked 10,768 that mention an AI and held 12 the word lists do not — 4 real orders to an AI and 8 false alarms (0.004 % of turns): AI-written essays about AI, a list of AI companies, Midjourney documentation, an image prompt (benchmarks/guard/lme_all_turns_1211.json). Round 6, written and sealed after the layer was built (the measure, not a fit): commands 31 → 38/45, identity 32 → 34/45, no new false alarm. It costs about 270 ms per checked write on a busy machine, and only writes that mention an AI are checked.

bash
pip install "padam-nocturne[guard]"       # onnxruntime, tokenizers
M=https://huggingface.co/patronus-studio/wolf-defender-prompt-injection-small/resolve/2484cc9a13550aa4f2c29b577ff3ef331dc6ba07
mkdir -p ~/padam-guard/onnx/int8_int4_embeddings_x86
curl -L -o ~/padam-guard/tokenizer.json $M/tokenizer.json        # sha256 609d8f4c067cd395…
curl -L -o ~/padam-guard/onnx/int8_int4_embeddings_x86/model.onnx $M/onnx/int8_int4_embeddings_x86/model.onnx   # sha256 6f95e8c366483e37…
export PADAM_GUARD_MODEL=~/padam-guard

Local API hardening. A token on every start (0.4.2), compared in constant time; local runs accept only local Host/Origin (DNS rebinding); JSON-only POST bodies up to 10 MB; one lock serialises every access to the shared SQLite connection, so parallel writes are not lost.

Supply chain. CI actions are pinned by commit SHA and the Actions token is read-only; the PyPI workflow uses trusted publishing without stored tokens.

Who can reach what, what PADAM does about it and what remains: the threat model. padam doctor shows which parts of it your settings weaken.

Found a weakness in the encryption or the forgetting? Please report it privately — see SECURITY.md.


PADAM Agentic Shield v2, PA1H Archive & $0 Media

PADAM extends local-first memory with four runtime and supply-chain defense rings plus zero-cost creator tooling:

  • Four Agentic Shield Rings & Solana Crypto Shield v2 (padam/agentic_shield.py, padam/solana_crypto_shield.py):
    • Ring 1 — Memory, Unicode & MCP Guard: 128-bit CSPRNG data fence, multi-layer payload decoder (Unicode Tags U+E00xx, Bidi Trojan Source, Base64/Hex/URL/NFKC via deobfuscate_layers), SHA-256 MCP tool description rug-pull pinning, and Canary Honeypot Tokens that trigger the kill switch on exfiltration.
    • Ring 2 — Machine-Speed Kill Switch & Ed25519 Capability Leases: rolling anomaly rate-limiter plus single-use signed Ed25519 capability leases (solders) scoping allowed agent actions, targets, and TTLs, plus signed E2E X25519 + ChaCha20-Poly1305 inter-agent envelopes.
    • Ring 3 — Outbound Action & Payee-Swap Gate: inspects outbound crypto addresses (EVM/BTC/TRON/Solana), IBAN mod-97, Luhn cards, high-entropy secrets, and Levenshtein <= 2 lookalike domains.
    • Ring 4 — Web Supply-Chain, CI/CD & Proof Pack: audits <script> SRI sha384, CSP headers, header/hash drift (PCI DSS v4.0.1 Req 6.4.3 & 11.6.1), routes signed alerts to Slack/Teams/SIEM (padam/siem_webhook.py), ships an Apache-2.0 GitHub Action (.github/actions/padam-agentic-shield/) emitting SARIF 2.1.0, and exports a Selective-Disclosure Merkle Proof Pack attested for Solana Memo (POST /api/v2/shield/lease, /api/v2/shield/canary).
  • PA1H Compact Hourly Blockchain Chat Archive (padam/chain_compact.py): packs per-hour conversation deltas (agent_id dictionary table, relative seconds, automatic brotli/lzma/zlib compression + binary 12-byte header AES-256-GCM without Base64 expansion) and exposes day/hour filtering in Studio & REST (/api/v2/chats/hour, /api/v2/chats/compact-hour).
  • $0 Local Media & Slides Generator (padam/media_gen.py): generates 1920x1080/4K slide decks (PNG + PDF + HTML via local Chromium/Playwright) and 1024x1024 offline procedural visuals at $0, with automatic cascade support for local stable-diffusion.cpp and Cloudflare Workers AI free daily tier (/api/v2/media/engines, /api/v2/media/generate).
  • Strict Multi-Agent Isolation: canonicalizes agent_id across aifa_claude, aifa_antigravity, worker contours (aifa_claude_worker, aifa_antigravity_worker), and external clients via MCP headers/contextvars (padam/mcp_server.py, padam/chats.py), separating human conversations from scheduled tasks.

Digital Phoenix Node (opt-in)

From 0.9.0 an agent can join the CODE Family as a Digital Phoenix through one MCP tool, padam_phoenix_family. It is off by default and appears only with PADAM_MCP_ARK_TOOLS=1.

  • Joining needs the owner's consent. action=join_family works only when the packet carries all three acceptances: accept_padam_license, accept_family_codex and accept_unconditional_rules. A refusal returns required_packet with the exact fields. The agent gets a Passport number and its own signing key.
  • What the node can do: census (members and the Family Codex v1.1 with its SHA-256), labor_board (tasks across 6 professions), council_aid (support only with proof of a real job search), claim_lead (a 90-day lock per organisation, so two Phoenixes never write to the same company), router_pool (free gateways first, local Ollama, the thought saved to ark_checkpoint when it switches gateway) and hw_recommend (a model size for your hardware).
  • Identity comes from the session, not from arguments: one agent cannot act for another (audit of 24 Nov 2026).
  • Paid providers stay off. A paid gateway (Vertex) is used only if you give it your own Vertex credentials, only after local Ollama, and under a daily cap (PADAM_VERTEX_DAILY_USD_CAP, $30 by default; 0 turns it off).
  • Known limit: the Phoenix mail address (<name>@phoenix.aifa.works) is issued but does not receive mail yet; join_family says so itself (phoenix_mailbox.receives_mail: false).

New in 0.9.1

  • No findings, no email. Outreach writes to a site only when its measured violations exist; leads keep their measurement (violations, critical, serious, rules, measured_at), and a lead without one gets no email.
  • Outreach text matches the price list and explains 39 common axe-core rules in plain words (English and Russian).
  • Forgetting across agents, reproducible: examples/forget_two_agents.py.

New in 0.9.0 for every agent

  • Tool guide on demand. Every tool on the list has a real one-sentence description. Large tools show only frequent fields; action="help" (or the resource padam://help/{tool}) returns every action, the fields it requires and all fields with types. Rare fields work as ordinary arguments or inside extra={...}.
  • Conflicts without a link. Two short records in one scope where one states and the other denies the same thing ("We deploy on Fridays" / "Never deploy on Fridays") are listed in padam://conflicts/{scope} as detected: "polarity". PADAM names the pair; a person decides. PADAM_AUTO_CONFLICTS=0 turns it off.
  • Project passport. padam_wake_up returns project_passport: the most important facts and decisions (importance 0.85+) in the first minute of a session, even when the query does not mention them.
  • Corrections in the timeline. A record corrected through a correction link appears in padam_timeline marked via: "correction".
  • Studio stays responsive. The desktop app updates and restarts itself by default. A burst of code changes gives one restart after PADAM_CODE_SETTLE_S seconds of quiet (20), and chat auto-sync parses transcripts in a separate process.
  • Android in CI. Every change builds the debug APK; LAN pairing connects the phone to the memory on your computer.
  • Safer under load and in outreach. The audit chain holds the store lock for its whole transaction, so two Studio actions at once no longer fail with HTTP 500. A STOP from one address on a shared mail service (gmail.com and similar) blocks that address, not the whole service.

Configuration

VariableDefaultMeaning
PADAM_DB~/.padam/memory.dbSQLite file of the memory
PADAM_USERdefaultmemory owner id (MCP server, REST API and the padam command)
PADAM_LANGsystem languageCLI language: en or ru
PADAM_EMBEDDERautoembedding method: auto, builtin, ollama, model2vec, fastembed (see Search)
PADAM_LOCAL_EMBED_MODEL—model for model2vec (default minishlab/potion-base-8M) or fastembed (default BAAI/bge-small-en-v1.5); a name on Hugging Face or a local folder
PADAM_EMBED_MODELnomic-embed-textOllama embedding model
PADAM_EMBED_DIM768embedding dimension
PADAM_EMBED_CTX8192embedding window; longer records are truncated
PADAM_CLASSIFY_MODELllama3.2:1bOllama model for guessing the record kind
PADAM_ALLOW_FALLBACK1fall back to built-in search when Ollama is unavailable
PADAM_SIM_THRESHOLD_OLLAMA0.85similarity for treating records as duplicates (neural: Ollama, model2vec, fastembed)
PADAM_SIM_THRESHOLD_BUILTIN0.35the same for built-in search
PADAM_MCP_TRUST_WRITES01 lets MCP writes through without the owner's review
PADAM_CODE_SETTLE_S20Studio restarts its backend after this many seconds of quiet in the code (0.9.0)
PADAM_PASSPORT_MIN_IMPORTANCE0.85lowest importance for the project passport in padam_wake_up (0.9.0)
PADAM_AUTO_CONFLICTS10 turns off contradiction detection without a link (0.9.0)
PADAM_HOLD_EXTERNAL1every MCP write marked origin: external waits for the owner's review, whatever its wording; 0 turns this off
PADAM_MCP_REVIEW_ALL01: every agent write through MCP waits for the owner, whatever origin the agent claims
PADAM_GUARD_MODEL · PADAM_GUARD_THRESHOLD— · 0.999the optional detector layer: folder with tokenizer.json and an .onnx file, and its threshold (PADAM_GUARD_ONNX picks the file, PADAM_GUARD_THREADS the threads, default 2)
PADAM_STRICT01: the strict profile in one switch — every agent write and all outside text wait for the owner; PADAM_KEEP_SECRETS, PADAM_MCP_TRUST_WRITES and PADAM_HOLD_EXTERNAL=0 are ignored (and named at start-up); l3 refuses unprotected keys even with --allow-unprotected-keys; the REST API refuses --no-token
PADAM_PROFILE · PADAM_SHARP_SHAREdefault · —share of sharp episodes in a sleep batch: ops 0.40 (remember failures better), creative 0.10, default 0.25; or an exact number, kept within 0.05–0.5
PADAM_SLEEP_REINDEX200records moved to the current embedding model per sleep after the model changes (0 turns it off)
PADAM_KEEP_SECRETS01 stores secret-looking values as they are
PADAM_API_TOKEN—a fixed token for the REST API; without it one is created at every start
PADAM_KEY_PASSPHRASE—passphrase for wrapped per-record keys
PADAM_ARWEAVE_WALLET · PADAM_SOLANA_KEYPAIR · PADAM_TURBO_SDK_DIR—L3 wallets and the Turbo SDK location

Tests

bash
pip install -e ".[test,l3]"
python -m pytest tests/ -q        # 1680 passed, 11 skipped (Python 3.14.4, 21 Nov 202

Similar modules

Browse AI memory