Skip to main content

Cross-platform agent that collects AI coding tool memory files and syncs to a central server

Project description

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:

  1. Detect your platform (macOS / Linux / Windows)
  2. Auto-discover installed AI tools and Obsidian vaults
  3. Configure the server URL and auth token
  4. 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

  1. File Watching — Uses watchdog (FSEvents on macOS, inotify on Linux, ReadDirectoryChanges on Windows) to detect file changes in real-time
  2. Parsing — Supports Markdown, JSONL, JSON, TOML, SQLite formats
  3. Sanitization — Automatically redacts API keys, tokens, passwords, private keys before upload
  4. Queuing — Local SQLite queue for offline resilience (syncs when server is reachable)
  5. Syncing — HTTP upload to server, with chunked upload for files > 2MB (tested with 37MB files)
  6. 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

memento_brain_collector-0.0.6.tar.gz (60.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

memento_brain_collector-0.0.6-py3-none-any.whl (71.2 kB view details)

Uploaded Python 3

File details

Details for the file memento_brain_collector-0.0.6.tar.gz.

File metadata

  • Download URL: memento_brain_collector-0.0.6.tar.gz
  • Upload date:
  • Size: 60.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for memento_brain_collector-0.0.6.tar.gz
Algorithm Hash digest
SHA256 802edf01219b2a556a9dc2c6ed0bf555b30b874e35f5d180e5aa5ee505f83002
MD5 b3641b5cf84de984ba6b2b94352a56a5
BLAKE2b-256 91e3c355812f2a9bca64e58ee4d8f7c2a960062ad8e7a93463fddfe67eed6c5b

See more details on using hashes here.

Provenance

The following attestation bundles were made for memento_brain_collector-0.0.6.tar.gz:

Publisher: release.yml on ddong8/memento

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file memento_brain_collector-0.0.6-py3-none-any.whl.

File metadata

File hashes

Hashes for memento_brain_collector-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 581f770ec6e5e0570f4f950d822eefc490a412e780af6a391c65d09a9c039a14
MD5 1e50d1bd174c9e64377bcd29f266a86b
BLAKE2b-256 a30b07b35b4a14366ca6fc52921482242c71f391c77e4fa4a7fd929f5e0d9939

See more details on using hashes here.

Provenance

The following attestation bundles were made for memento_brain_collector-0.0.6-py3-none-any.whl:

Publisher: release.yml on ddong8/memento

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page