Private · Three · AI · Knowledge

P3AK

Get your data right. Run any AI on top.

Your organization's AI brain — in a single encrypted file. Store everything, organize it, reason over it. Model-agnostic. Portable. No cloud. No SaaS. Fully yours.

cargo install p3ak-vault

crates.io p3ak-vault crates.io p3ak-vault-core MIT License

"The biggest problem in AI right now isn't the model. It's the data."
Memory rot. Security gaps. Context hallucinations. Three problems, one root cause — your company's knowledge isn't in one place. P3AK fixes that.
98%
Top-1 Retrieval Accuracy
35
File Formats Ingested
326
Tests Passing
256
AES Bit Encryption

The Stack

Three products.
One foundation.

Not an AI wrapper — the data layer underneath every AI wrapper. vault stores it. room organizes it. harness reasons over it. Any model. Any tool. Fully yours.

Infrastructure · Rust · MIT
P3AK vault
Encrypted storage + hybrid AI search

One .vault file holds your entire organization's knowledge. AES-256-GCM encrypted. 98% search accuracy. 35 formats ingested. Pick it up, move it to any machine, plug in any model. No database. No cloud. No lock-in. Yours.

Rust AES-256-GCM Tantivy BM25 TF-IDF ZVec MCP server Python SDK REST API
Application · Next.js 14 · MIT
P3AK room
AI-native knowledge organization

Five-tributary structure — Legal, Financial, Operations, GTM, Technology — for any organization that needs its intelligence organized, versioned, and investment-ready. Exports to .mdr, the portable P3AK document format.

Next.js 14 Drizzle ORM isomorphic-git 5 tributaries .mdr export Vault bridge
Orchestration · Pi · MIT
P3AK harness
AI reasoning with permanent memory

Your AI co-pilot that actually remembers. CREST reasoning cycle — Clarify, Risks, Establish, Sprints, Tune. Vault as long-term memory. Works with any model. The operating system for how your organization thinks and executes.

Pi (Claude) CREST protocol Domain agents State Bus Vault memory

How it fits together

The full stack

P3AK harness (orchestration — CREST protocol, Pi) ↓ vault_search / vault_write ↓ room REST API (gaps, documents, process) ────────────────────────────────────────────── P3AK room (application — Next.js 14, 5 tributaries) ↓ POST /api/companies/[slug]/vault-push ↓ GET /api/companies/[slug]/export?format=mdr ────────────────────────────────────────────── P3AK vault (infrastructure — Rust, .vault binary) p3ak-vault ingest --file doc.mdr --room legal p3ak-vault search --query "renewal terms" --mode hybrid p3ak-vault serve --port 8080 ────────────────────────────────────────────── .mdr format (the bridge — portable P3AK Document) room creates → vault ingests → harness queries

Live Demo

From zero to searchable
in four commands

p3ak-vault — bash
# 1. Create an encrypted vault
$ p3ak-vault create --path company.vault --passphrase $VAULT_KEY
{"ok":true,"encrypted":true,"path":"company.vault"}
# 2. Ingest your entire data room (35 formats)
$ p3ak-vault ingest --path company.vault --dir ./documents --room legal
{"added":14,"skipped":0,"formats":["pdf","docx","md","mdr"]}
# 3. Search with hybrid AI (BM25 + vector)
$ p3ak-vault search --path company.vault --query "renewal terms" --mode hybrid
[{"score":1.41,"filename":"services-agreement.mdr",
  "snippet":"The initial term is 12 months, auto-renewing unless either party provides 30 days written notice..."}]
# 4. Or expose as REST API / MCP server
$ p3ak-vault serve --path company.vault --port 8080
{"listening":"127.0.0.1:8080","routes":7,"encrypted":true}

The Format

One file.
Every version.
Every layer.

.mdr is the P3AK Document format — a portable, human-readable file containing your document's full content, complete version history, and multiple access tiers.

P3AK room creates them. P3AK vault ingests them. P3AK harness queries them. Any text editor can read them.

Read the spec →
+++mdr format_version: 1 doc_id: "series-a-term-sheet" title: "Series A Term Sheet" current_layer: internal current_version: 3 tributaries: ["legal"] layers: - id: public - id: internal restricted: true - id: legal privileged: true +++ @@@ layer:internal version:3 author:alice ts:2025-11-01 @@@ # Series A Term Sheet Pre-money valuation: $8M. Investment: $2M. Auto-conversion at Series B. 1x non-participating liquidation preference. Pro-rata rights included. # All prior versions preserved below... @@@ layer:internal version:2 ... @@@

Your data. Your AI. Your rules.

Get your data right once. Every AI tool you use gets smarter. Forever.
Install the CLI and have a searchable encrypted knowledge base in 60 seconds.

cargo install p3ak-vault