NEXORA(知序)
Your Intelligence. Your Data. Your Control.
An open-source, local-first Personal Intelligence Platform for confirmed memory, reflection, knowledge and permission-controlled AI access.
English · 中文 · Quick Start · Security · Documentation
Overview
NEXORA(知序), formerly developed under the project name Personal AI Profile, creates a user-owned intelligence layer that can be shared across Codex, Claude, Cursor, and other MCP-compatible AI clients.
Your private data remains in a local Markdown Vault. AI clients may read only what you explicitly authorize. They can propose candidate memories, but they cannot silently convert a conversation into permanent memory.
Conversation
↓
Candidate memory
↓
Human review: confirm / edit / reject
↓
Confirmed local memory
↓
Minimum authorized context for an AI client
Why it exists
Personal context is fragmented across AI products:
- every assistant needs the same background and preferences;
- decisions, goals, and project context do not carry across tools;
- platform memory is difficult to inspect, correct, or migrate;
- copying entire conversations creates unnecessary privacy exposure;
- maintaining a large profile form by hand feels like work.
NEXORA separates the experience of conversation from the authority of memory.
Product
First-run experience
Setup happens before the daily workspace:
- Create or connect a private Vault.
- Choose Web-only use or optional Obsidian editing.
- Complete a lightweight local conversation.
- Explicitly submit selected answers as candidate memories.
- Review candidates before anything enters the formal profile.
Conversational onboarding is intentionally not duplicated in the permanent workspace navigation.
Daily workspace
| Surface |
Purpose |
| Overview |
Profile status, recent memory activity, recommended next action, AI authorization, and Vault health |
| Memory Review |
Inspect, edit, confirm, or reject candidate memories |
| Personal Profile |
View confirmed and currently permitted long-term information |
| Monthly Reflection |
Local-first Mind, Body, Spirit, and Vocation reflection |
| Human 3.0 / Growth |
User-authored self-assessment, goals, associations, and timeline |
| Privacy Audit |
Client permissions, access events, denials, and lifecycle evidence |
| Backup & Recovery |
Verified snapshots, safe restore, Vault switching, and optional Git operations |
| AI Connections |
Register, authorize, rotate, revoke, and configure individual AI clients |
Human 3.0 is a reflection framework. It does not provide medical or psychological diagnosis.
Core principles
- User-owned data — portable Markdown instead of a vendor-locked profile.
- Local-first — the Vault remains the single source of truth.
- Human confirmation — unconfirmed content never becomes formal memory.
- Minimum disclosure — each client receives only task-relevant context.
- Explicit permissions — every AI client has its own identity, credential, and scopes.
- No raw-chat archive by default — submitted candidate facts are stored, not complete conversations.
- Traceable lifecycle — memories can be reviewed, edited, rejected, superseded, archived, and traced.
- Fail closed — unsafe paths, invalid credentials, mismatched Vault identities, and denied access are rejected.
Architecture
React + TypeScript + Vite Web
│
│ authenticated JSON API on 127.0.0.1
▼
FastAPI Local Service
│
▼
Core / Domain / Security / Storage
│
▼
Local Markdown Vault
├── optional Obsidian editing
├── verified local backups
├── optional private Git history
└── permission-controlled MCP Gateway
│
└── Codex / Claude / Cursor / other clients
Components
- Web workspace — primary user interface.
- Markdown Vault — single source of truth.
- Python Core — lifecycle, storage, revision, locking, backup, and security rules.
- FastAPI local service — authenticated loopback API for the Web UI.
- MCP Gateway — bounded, permission-controlled AI access.
- Obsidian — optional editor for the same Vault; never a requirement.
- Git/GitHub — optional private backup configured by the user.
The public framework repository contains code, templates, schemas, and documentation. A personal Vault must live outside this repository and must never share its public Git history.
Vault model
my-ai-profile/
├─ 00 Dashboard/
├─ 10 Profile/
│ └─ Profile.md
├─ 20 Projects/
│ ├─ Active/
│ └─ Archived/
├─ 30 Memory/
│ ├─ Inbox/
│ ├─ Confirmed/
│ ├─ Rejected/
│ └─ Archived/
├─ 40 Reviews/
├─ 90 System/
│ └─ vault.json
├─ AGENTS.md
└─ profile.config.yml
Each Vault receives a random stable identity. The Web service and MCP Gateway can verify that they use the same Vault without exposing its private path in the interface.
Memory lifecycle
candidate → confirmed
candidate → rejected
confirmed → superseded / archived
AI access levels
| Level |
Meaning |
allowed |
Full permitted content |
summary-only |
Confirmed summary only |
local-only |
Local processing only; never returned through MCP |
denied |
No model access |
Example record:
---
id: mem-20261107-001
type: preference
status: confirmed
created: 2026-11-07
source: conversation
visibility: private
ai_access: summary-only
confidence: explicit
---
MCP Gateway
The local stdio gateway exposes bounded tools:
get_vault_identity
get_profile
get_current_context
search_memory
list_projects
propose_memory
list_pending
get_human3_summary
MCP clients cannot confirm memories, delete formal records, publish content, or write arbitrary Vault files.
Each client is created in AI Connections / Security Center and receives an independent credential with minimal scopes. Generated host configuration includes the expected Vault identity; a mismatch fails closed.
{
"mcpServers": {
"personal-ai-profile": {
"command": "python",
"args": ["ABSOLUTE_PATH_TO_FRAMEWORK/mcp_server.py"],
"env": {
"PROFILE_VAULT": "ABSOLUTE_PATH_TO_PRIVATE_VAULT",
"PROFILE_VAULT_ID": "vault_random_identity",
"PROFILE_AGENT_ID": "client-issued-by-security-center",
"PROFILE_CLIENT_TOKEN": "one-time-issued-credential"
}
}
}
}
See MCP host connection and Security Center.
Privacy and security
Automated operations
The system may:
- read permitted profile summaries;
- search confirmed and authorized memories;
- detect duplicate or conflicting candidates;
- propose candidate memories;
- generate local reflection drafts;
- create and verify local backups;
- build minimum task-specific context.
Human confirmation required
- confirming formal long-term memory;
- changing stable profile facts;
- destructive lifecycle actions;
- confirming a formal reflection;
- authorizing a client or changing its scopes;
- sending private content to an external model;
- publishing or exporting personal information.
Never store
- passwords, tokens, OTPs, API keys, private keys, or cookies;
- identity documents or payment-card data;
- unredacted third-party private information;
- conversations the user did not choose to preserve.
A private Git repository is not a password vault. Removing a secret from the working tree does not remove it from Git history.
Security foundations include loopback-only serving, bearer sessions, trusted-host checks, path isolation, SHA-256 revisions, inter-process locks, transaction journals, secret scanning, hashed client credentials, immediate revocation, and tamper-evident audit records.
Current status
Available
- React + TypeScript + Vite local Web workspace
- FastAPI versioned local API
- Shared Python Core for CLI, API, MCP, and compatibility UI
- Candidate creation, review, editing, confirmation, and rejection
- Confirmed profile, timeline, and privacy-safe visualization
- Monthly Reflection and Human 3.0 local workflows
- Security Center and AI Connections lifecycle
- MCP stdio gateway with per-client authorization
- Stable Vault identity and multi-Vault isolation
- Web Vault creation, validation, and restart-based switching
- External-change revision detection for Obsidian and other editors
- Verified backup, safety snapshot, and transactional restore
- Conservative Git commit, pull, and push for a preconfigured private repository
- Windows single-instance launcher and installer pipeline
- Python, frontend, protocol, security, release-gate, and E2E tests
Known limitations
- No scheduled or automatic local backup.
- The project does not capture screens, keyboard input, microphone data, or full browsing history.
- No cloud account or cloud-hosted personal profile service is included.
For the authoritative capability status, see docs/PROJECT_STATUS.md.
Quick Start
Windows
Use the installer from GitHub Releases when available, or run:
start-review.vbs
The launcher selects a local port, creates a short-lived session, opens the browser, and binds only to 127.0.0.1.
Developer setup
Requirements:
- Python 3.12+
- Node.js 24+
- Git
git clone https://github.com/XY-code1/Nexora.git
cd Nexora
python -m pip install -r requirements.txt
# Create a private Vault outside the framework repository
python profile.py init ..\my-ai-profile
python profile.py validate ..\my-ai-profile
# Build the Web UI
cd apps\web
npm ci
npm run build
cd ..\..
# Start the integrated local product
python launcher.py --vault ..\my-ai-profile
Split frontend/backend development:
# Terminal 1
python -m apps.api.main --vault ..\my-ai-profile --show-token
# Terminal 2
cd apps\web
npm run dev
The API hides its management bearer token from startup logs by default. The split frontend/backend development example opts in with --show-token so the token can be entered in the local UI; use that flag only in a trusted local terminal. The bearer token remains in page memory and is removed from the URL after bootstrap. It is not stored in localStorage or bundled assets.
Testing
# Python regression and release gate
Get-ChildItem tests\test_*.py | ForEach-Object { python $_.FullName }
python scripts\check_release.py
# Frontend verification
cd apps\web
npm run typecheck
npm test
npm run lint
npm run build
npm run e2e
Tests use temporary synthetic Vaults. They must never read or copy a real private Vault.
Documentation