| name | memento |
| description | Search your computer history - screenshots, keystrokes, OCR text. Use when the user asks about something they saw, typed, or did on their computer. Helps find forgotten information, recall context, or search through past activity. |
Memento - Your Digital Memory
Search everything you've seen and typed on your Mac.
Quick start
memento search "that error message"
memento search "api key" --type keys
memento search "slack" --type ocr
memento timeline
memento keys --today
memento status
When to use
- User asks "what was that thing I saw earlier?"
- User needs to find something they typed but forgot where
- User wants to recall context from a past session
- User is looking for a URL, error message, or snippet they saw
- User asks "when did I last work on X?"
Search commands
memento search "query"
memento search "query" --type ocr
memento search "query" --type keys
memento search "query" --after "2024-01-15"
memento search "query" --before "2024-01-20"
memento search "query" --today
memento search "query" --yesterday
memento search "query" --week
memento search "query" --app "VS Code"
memento search "query" --app Terminal
memento search "error" --type ocr --app Terminal --today
memento search "query" --limit 5
Browse activity
memento timeline
memento timeline --today
memento timeline --date 2024-01-15
memento keys --today
memento keys --yesterday
memento keys --app Slack
memento screenshots --today
memento screenshots --open 42
JSON output (for agents)
All commands support -o json for structured output:
memento search "api" -o json
memento keys --today -o json
memento status -o json
Example JSON response:
{
"results": [
{
"type": "ocr",
"timestamp": "2024-01-15T14:32:00Z",
"app": "Terminal",
"window": "zsh",
"text": "export API_KEY=sk-...",
"screenshot_id": 1234
}
],
"total": 1,
"query": "api"
}
Status & control
memento status
memento pause
memento resume
memento capture
Configuration
memento config
memento config set interval 300
memento config set quality 70
memento config add-exclude Safari
memento config remove-exclude Safari
Example agent workflows
Find something the user saw
memento search "error" --app Terminal --today -o json --limit 5
Recall a URL or link
memento search "http" --type ocr --today -o json
Find something typed
memento keys --app Terminal --today -o json
Get context for a time period
memento timeline --yesterday -o json
Data location
All data stored locally in ~/.memento/:
screenshots/ - WebP images (~100KB each)
memento.db - SQLite database (keystrokes, OCR, metadata)
config.json - User configuration
Privacy notes
- All data stays local by default
- Passwords are not captured (excluded input types)
- Add sensitive apps to exclusion list
- Optional encrypted backup to Cloudflare R2