OpenChronicle
Local-first memory MCP server that captures macOS screen and app context into persistent Markdown, enabling any tool-capable LLM agent to query its working history.
README
<p align="center"> <img src="assets/logo.png" alt="OpenChronicle" width="600" /> </p>
<h1 align="center">OpenChronicle</h1>
<p align="center"> Open-source, local-first memory for any tool-capable LLM agent. </p>
<p align="center"> Think OpenAI Chronicle - but open, model-agnostic, inspectable, and hackable. </p>
<p align="center"> <a href="https://star-history.com/#Einsia/OpenChronicle&Date"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=Einsia/OpenChronicle&type=Date&theme=dark" /> <source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=Einsia/OpenChronicle&type=Date" /> <img alt="Star History Chart" src="https://api.star-history.com/svg?repos=Einsia/OpenChronicle&type=Date" /> </picture> </a> </p>
Status: v0.1.0 · macOS only · early alpha
OpenChronicle gives AI agents a local, inspectable memory built from real screen and app context.
It runs on your Mac, captures structured context from what you're doing, and turns it into persistent Markdown memory: what you're working on, what you've decided, which tools you use, and which people or projects matter.
Any agent that can call tools can use it. MCP clients work especially well today, but OpenChronicle is meant to be a general memory layer for tool-using agents - not something tied to one protocol, one model provider, or one app.
Why OpenChronicle
OpenAI Chronicle points to an important future: agents that remember your real working context.
OpenChronicle is our open alternative:
- Local-first - memory stays on your machine
- Model-agnostic - use Ollama, LM Studio, OpenAI, Anthropic, or any LiteLLM-compatible provider
- Tool-friendly - usable by any tool-capable agent
- Inspectable - Markdown on disk, SQLite locally
- Open - MIT-licensed and built to be extended
Why AX-first
OpenChronicle currently prioritizes AX Tree / accessibility-tree context as its primary signal, with screenshots as a secondary signal over time.
We think this is the right tradeoff for an early memory system:
- Lower cost - structured text is far cheaper to process than screenshot-heavy OCR / vision pipelines
- Better intent capture - AX is often better for active app, focused element, edited text, URL, and interaction state
- Smaller, cleaner memory - easier to deduplicate, normalize, index, and retain long-term
- Better foundation - screenshots can later enrich visual context where AX falls short
AX-first for accurate, compact, low-cost memory; screenshot-assisted for richer multimodal context.
OpenChronicle vs OpenAI Chronicle
| OpenAI Chronicle | OpenChronicle | |
|---|---|---|
| Source | Closed | MIT, open-source |
| Model choice | OpenAI-centric | Your choice |
| Who can use it | Product-specific workflow | Any tool-capable agent |
| Primary capture | Screenshot / OCR-heavy | AX Tree first, screenshot-assisted |
| Storage | Local generated memories | Markdown + SQLite on your machine |
| Extensibility | Limited | Hackable parsers, memory logic, integrations |
How it works
flowchart LR
W[mac-ax-watcher<br/>events]
S0["<b>S0</b> dispatcher<br/>dedup · debounce<br/>min-gap"]
S1["<b>S1</b> parser<br/>focused_element<br/>visible_text · url"]
BUF[(capture-buffer<br/>/*.json)]
TL["Timeline<br/>normalizer<br/>1-min · verbatim"]
TB[(timeline_blocks)]
SM["Session mgr<br/>idle 5m · app-switch 3m<br/>max 2h"]
S2["<b>S2</b> reducer"]
ED[(event-<br/>YYYY-MM-DD.md)]
CLF["Classifier<br/>→ user- / project- / tool- /<br/>topic- / person- / org-*.md"]
STORE[("SQLite FTS5<br/>+ Markdown")]
W --> S0 --> S1 --> BUF --> TL --> TB --> S2 --> ED --> CLF --> STORE
ED --> STORE
BUF -. pre_capture_hook<br/>(post-write · skipped on content-dedup) .-> SM
SM -. flush 5m / on_end .-> S2
TB -. grounding .-> CLF
The core idea is simple:
- capture context
- compress it into sessions
- extract durable facts
- store memory locally
- let agents query it through tools
What you get
- Event-driven capture from macOS AX events
- Session-aware memory writing instead of noisy per-snapshot logs
- Human-readable Markdown memory
- Local SQLite indexing
- Structured memory files like user-, project-, tool-, topic-, person-, org-, and daily event-
- Supersede-not-delete history
- Local or cloud model support
- Always-on agent-readable interface, with MCP as the best-supported path today
Install
Requires macOS 13+ and Xcode Command Line Tools (xcode-select --install).
git clone https://github.com/Einsia/OpenChronicle.git
cd openchronicle
bash install.sh
Run
openchronicle start
openchronicle start --foreground
openchronicle status
openchronicle pause
openchronicle resume
openchronicle stop
Useful inspection commands:
openchronicle capture-once
openchronicle timeline tick
openchronicle timeline list
openchronicle writer run
openchronicle rebuild-index
Connect an agent
OpenChronicle is designed for tool-calling agents.
Best-supported path today: MCP
The daemon hosts an MCP endpoint at:
http://127.0.0.1:8742/mcp
Supported integration paths include:
- Claude Code
- Claude Desktop
- Codex
- opencode
- custom local agents
- and more...
See docs/mcp.md for setup details.
Contributing
We especially want help in three areas:
1. Better context parsers
App-specific parsing and normalization for browsers, terminals, editors, Slack, Notion, Cursor, Linear, Figma, and more.
2. Better memory management
Session reduction, durable-fact extraction, compaction, supersede / merge logic, and retrieval quality.
3. More agent integrations
Support for more MCP clients, IDE agents, coding assistants, desktop agents, and local orchestration frameworks.
If you care about local-first agents, personal AI memory, or open context infrastructure, this project is for you.
Documentation
- docs/architecture.md - end-to-end pipeline and code layout
- docs/config.md - configuration and model setup
- docs/capture.md - event-driven capture and AX details
- docs/timeline.md - normalization and anti-hallucination design
- docs/session.md - session cutting rules
- docs/writer.md - reducer, classifier, and retry model
- docs/mcp.md - current tool surface and integrations
- docs/memory-format.md - file layout and supersede semantics
- docs/troubleshooting.md - common issues
Development
uv sync --all-extras
uv run pytest
uv run ruff check
License
MIT.
Contributors ✨
Thanks goes to these wonderful people (emoji key):
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section --> <!-- prettier-ignore-start --> <!-- markdownlint-disable --> <table> <tbody> <tr> <td align="center" valign="top" width="14.28%"><a href="https://github.com/KMing-L"><img src="https://avatars.githubusercontent.com/u/78015987?v=4?s=100" width="100px;" alt="Qianli Ren"/><br /><sub><b>Qianli Ren</b></sub></a><br /><a href="https://github.com/Einsia/OpenChronicle/commits?author=KMing-L" title="Code">💻</a> <a href="#maintenance-KMing-L" title="Maintenance">🚧</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/abmfy"><img src="https://avatars.githubusercontent.com/u/20623941?v=4?s=100" width="100px;" alt="Bowen Wang"/><br /><sub><b>Bowen Wang</b></sub></a><br /><a href="https://github.com/Einsia/OpenChronicle/commits?author=abmfy" title="Code">💻</a> <a href="#maintenance-abmfy" title="Maintenance">🚧</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/calvin1376"><img src="https://avatars.githubusercontent.com/u/190755633?v=4?s=100" width="100px;" alt="CrazyCalvin"/><br /><sub><b>CrazyCalvin</b></sub></a><br /><a href="https://github.com/Einsia/OpenChronicle/commits?author=calvin1376" title="Code">💻</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/Azure-stars"><img src="https://avatars.githubusercontent.com/u/101097177?v=4?s=100" width="100px;" alt="Firefly"/><br /><sub><b>Firefly</b></sub></a><br /><a href="https://github.com/Einsia/OpenChronicle/commits?author=Azure-stars" title="Code">💻</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/Xiao-ao-jiang-hu"><img src="https://avatars.githubusercontent.com/u/57095350?v=4?s=100" width="100px;" alt="校奥浆糊"/><br /><sub><b>校奥浆糊</b></sub></a><br /><a href="https://github.com/Einsia/OpenChronicle/commits?author=Xiao-ao-jiang-hu" title="Code">💻</a></td> <td align="center" valign="top" width="14.28%"><a href="https://ashitemaru.github.io/"><img src="https://avatars.githubusercontent.com/u/58683876?v=4?s=100" width="100px;" alt="Houde Qian"/><br /><sub><b>Houde Qian</b></sub></a><br /><a href="https://github.com/Einsia/OpenChronicle/commits?author=Ashitemaru" title="Code">💻</a></td> <td align="center" valign="top" width="14.28%"><a href="https://github.com/GiddensF97"><img src="https://avatars.githubusercontent.com/u/253278919?v=4?s=100" width="100px;" alt="GiddensF97"/><br /><sub><b>GiddensF97</b></sub></a><br /><a href="#design-GiddensF97" title="Design">🎨</a></td> </tr> <tr> <td align="center" valign="top" width="14.28%"><a href="https://github.com/SiyiZhu1"><img src="https://avatars.githubusercontent.com/u/132850441?v=4?s=100" width="100px;" alt="SiyiZhu1"/><br /><sub><b>SiyiZhu1</b></sub></a><br /><a href="#design-SiyiZhu1" title="Design">🎨</a></td> </tr> </tbody> </table>
<!-- markdownlint-restore --> <!-- prettier-ignore-end -->
<!-- ALL-CONTRIBUTORS-LIST:END -->
This project follows the all-contributors specification. Contributions of any kind welcome!
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。