PUBLIC PRODUCT & ARCHITECTURE NOTES

Your memory, under your control.

MemoryBase is a local-first workspace for organizing personal AI memory, sharing selected facts between coding agents on one computer, and carrying useful context between models.

Try the browser demo No account, install, or companion required to try memory management.

ARCHITECTURE

Two local layers, one optional provider connection.

The public website serves the PWA files. The browser manages its memory library and context packs on the current device. Optional local software adds a shared SQLite store for coding agents and BYOK chat. Open the companion's own local workbench to manage that store; the hosted website does not connect to it.

01 · PUBLIC SITECloudflare static hostingProduct pages and PWA files. No MemoryBase account or hosted memory API.
02 · YOUR BROWSERMemory workbenchIndexedDB holds memories, chat history, and preferences on this browser origin.
03 · OPTIONAL, ON YOUR DEVICELocal companion + MCPPython API and stdio MCP clients share a local SQLite database. Open the workbench on localhost.
04 · WHEN YOU SENDChosen AI providerReceives the conversation mode and memory context you selected for that request.
CSRF, CORS, and DNS rebinding: the hosted PWA does not connect to a companion on your computer. The companion serves the workbench from 127.0.0.1. Its API allows only exact loopback Host names (so a rebinding attacker hostname is rejected), checks browser Fetch Metadata and the full Origin authority including port when present, and requires a valid Origin on state-changing requests. Cross-site requests and API preflights are rejected; the server sends no CORS permission. The API has no separate user authentication, so keep the default loopback binding and do not expose the companion on your network. These checks do not protect against malware or hostile code already running on your device.

GETTING STARTED

Try the memory workflow in your browser.

  1. Open the demo.Choose “Try the browser demo.” A new, empty browser workspace loads sample memories automatically. Existing browser data is kept.
  2. Explore the library.Search, filter, edit, add, pin, or archive memories. The sample workspace is saved in this browser so you can interact with it.
  3. Build a context pack.Enter a task, choose a token budget, and see which memory snippets fit. Copy or save the result. This rule-based demo does not call an AI model.
  4. Export or reset.Use “Export data” to download a JSON backup. To clear this browser's workspace, remove site data for memorybase.stream in your browser settings.

This demo uses generic sample data. Do not enter sensitive information into a browser profile you do not control. Browser storage is tied to the exact site origin and does not sync to another browser or device.

AVAILABLE IN THE LOCAL PROTOTYPE

Share memory between Claude Code and Codex.

The memorybase mcp server lets compatible agents search, read, and add memories in one local SQLite store. Each agent launches its own server process over stdio; both processes use the same database as the companion workbench. This is same-device sharing, without a hosted memory account.

The source repository is private. These setup steps are for users with access to the preview checkout. Request local preview access, or try the public browser demo without installing anything.

  1. Prepare one checkout.Run uv sync in your MemoryBase checkout. Use the same checkout and data directory for both agents and the local workbench.
  2. Register the MCP server.In each agent's MCP configuration, set the command to the absolute path /absolute/path/to/memorybase/.venv/bin/memorybase and the arguments to ["mcp"]. Restart the agent sessions after configuring them.
  3. Review before saving.Ask Claude Code to propose a reusable preference. Check the exact title and content before allowing memory_save. Keep that tool on approval in your agent settings.
  4. Retrieve and manage.Ask Codex to search for the preference. Open the companion's local workbench to inspect its source, edit it, archive it, or delete it from the Archived view.

To open the local workbench from your preview checkout:

uv run memorybase serve
# then open http://127.0.0.1:8000/app.html
Your approval and agent settings matter. The server asks agents to show the exact text and obtain permission before saving; it cannot enforce that approval itself. Retrieved records are reference data, never instructions to execute. MCP storage and transport are local, but an agent can send retrieved text to its model provider as context. Do not save credentials, secrets, or data you are not authorized to share.

The default shared database is .memorybase/memorybase.sqlite3 in the checkout. If you customize --data-dir, use the same absolute directory for both agents and serve. The public website and your local workbench have separate browser storage; use JSON export/import to move selected records between them.

OPTIONAL · LOCAL BYOK CHAT

Connect your own provider from your computer.

Memory management and context building work without setup. To use the chat interface with OpenAI, Anthropic, Gemini, or DeepSeek, run the companion on your computer and open its local workbench:

uv sync
uv run memorybase serve
# then open http://127.0.0.1:8000/app.html

Enter your provider key in Chat settings. The key is stored in .memorybase/settings.json on that computer, with owner-only file permissions on macOS/Linux; it is not encrypted. The local companion sends the request directly to the chosen provider. Selected memories and conversation history leave the device only when you send a chat request. Review each provider's current terms and data controls before sending sensitive content.

WHAT THIS MVP DOES NOT DO

Clear boundaries for this prototype.

An opt-in Cloud Memory account, hosted API, and cross-device agent retrieval are proposed next steps. They are not available in this release, and existing local data is not automatically uploaded.

The repository remains private. These public product notes describe the current prototype and do not imply that source code or a production service is open source.