memento-collector
Cross-platform agent that automatically collects AI coding tool memory files and syncs them to a central Memento server (a shared brain for your AI coding tools).
Supported AI Tools
| Tool | Data Collected |
|---|---|
| Claude Code | Conversations, memory, plans, history |
| OpenClaw | Sessions, identity, memory, learnings, skills |
| Codex | Sessions (active + archived), history, skills |
| Antigravity | Full conversations (built-in .pb decryption — AES-256-GCM + protobuf), brain plans, code snapshots |
| Obsidian | All markdown notes in your vault |
| Cursor | Agent transcripts, skills, MCP config |
Install
pip install memento-brain-collector
Antigravity support (decrypting encrypted .pb conversation files) is built in —
no extras needed. The cryptography library is already a required dependency.
Quick Start
# Interactive setup (first time)
memento-collector setup
# Or run directly
memento-collector run
The setup wizard will:
- Detect your platform (macOS / Linux / Windows)
- Auto-discover installed AI tools and Obsidian vaults
- Configure the server URL and auth token
- Optionally install as a system service (auto-start on boot)
Commands
memento-collector setup # Interactive setup wizard
memento-collector run # Run in foreground
memento-collector install # Install as system service
memento-collector start # Start the service
memento-collector stop # Stop the service
memento-collector status # Show collector status
memento-collector uninstall # Remove system service
How It Works
- File Watching — Uses
watchdog(FSEvents on macOS, inotify on Linux, ReadDirectoryChanges on Windows) to detect file changes in real-time - Parsing — Supports Markdown, JSONL, JSON, TOML, SQLite formats
- Sanitization — Automatically redacts API keys, tokens, passwords, private keys before upload
- Queuing — Local SQLite queue for offline resilience (syncs when server is reachable)
- Syncing — HTTP upload to server, with chunked upload for files > 2MB (tested with 37MB files)
- Device Identity — Each device gets a persistent unique ID, all data tagged with device info
Configuration
Environment variables (or set via memento-collector setup):
| Variable | Default | Description |
|---|---|---|
MEMENTO_SERVER_URL |
http://localhost:8001 |
Server API URL |
MEMENTO_SERVER_TOKEN |
Collector auth token | |
MEMENTO_OBSIDIAN_VAULT_PATH |
Auto-detected | Obsidian vault path |
Config file: ~/.memento/config.json
System Service
| Platform | Service Type | Config Location |
|---|---|---|
| macOS | LaunchAgent | ~/Library/LaunchAgents/com.memento.collector.plist |
| Linux | systemd user | ~/.config/systemd/user/memento-collector.service |
| Windows | Task Scheduler | MementoCollector scheduled task |
License
MIT
Metadata
Release files for memento-brain-collector 0.0.16
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| memento_brain_collector-0.0.16.tar.gz | 219.7 kB | With provenance | Details for memento_brain_collector-0.0.16.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| memento_brain_collector-0.0.16-py3-none-any.whl | Python 3 | none | any | Details for memento_brain_collector-0.0.16-py3-none-any.whl |
Total release size: 324.1 kB
Release files / memento_brain_collector-0.0.16.tar.gz
| Download URL | memento_brain_collector-0.0.16.tar.gz |
|---|---|
| Size | 219.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
adafaa120d60a020d679cbd9998c425658bc8472a0ad50c44b19d4c9e43eb6f1
|
|
BLAKE2b-256 checksum How to use checksums |
d1b5c4044d9984a8bf9c1060c02e8f746b5e77913c1a98d271a748a444c0ab20
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 28, 2026.
Transparency logRelease files / memento_brain_collector-0.0.16-py3-none-any.whl
| Download URL | memento_brain_collector-0.0.16-py3-none-any.whl |
|---|---|
| Size | 104.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
61e684e4b2fb8b4303c9a3bbc21e4b5302da30e4335aac67a3e85de4184f9435
|
|
BLAKE2b-256 checksum How to use checksums |
8a6886e97ce4957b8a023aaa9e6503a567aa0357dc18e3cec8042132cd14f381
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 28, 2026.
Transparency logSecurity for memento-brain-collector 0.0.16
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for memento_brain_collector-0.0.16.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 28, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.