Skip to main content

memcal

Memory and calendar for AI agents

PyPI Python 3.11+ License: MIT Docs

Memcal gives your agent a memory of your plans, conversations, and commitments. It brings together sources such as iMessage, email, WhatsApp, and calendars, then uses a nightly Dream pass to update events and other memories as things change.

Ask “What's my weekend looking like?” and your agent can recall a possible dinner with a friend, a community event, or a family visit—even when those plans started in different conversations.

A vague plan becomes a confirmed event with participants

Memcal prepares a brief of the next 30 days so an agent can answer common questions without a separate lookup. The brief tells you if its token budget leaves events out. Events keep their history and evidence: a past appointment does not automatically mean you attended it.

Get started

You'll need Python 3.11+, SQLite with FTS5, and a model backend. Codex is the default; Claude Code, Antigravity, Grok, OpenRouter, and OpenAI-compatible APIs are also supported.

pip install memcal
memcal setup
memcal doctor
memcal brief

Setup walks you through your provider and sources. For Codex via OAuth, sign in with codex login first; setup lists available models without making an inference call. The default model is gpt-6-luna for Codex and openai/gpt-6-luna for OpenRouter. Your saved model choice takes precedence. Optional provider fallback, WhatsApp startup and cleanup, and recent unnamed-sender windows are configurable in Settings; see Configuration.

Memcal is built first for macOS, where it can use Messages, Calendar, and launchd scheduling. iMessage reads the local Messages database by default and uses a local bridge to memcal.app, which holds Full Disk Access. Your terminal or agent does not need that grant. Use memcal permissions setup for guided macOS approval and read checks, or open Settings → Full Disk Access in the web UI. See the permission helper and iMessage setup for details. Email, MCP, and optional chat integrations also work on Linux; install Slack support with pip install 'memcal[slack]'.

Memcal reads sensitive personal data and sends selected source text to your configured model provider. Read the privacy notes before connecting real accounts.

For a checkout instead of PyPI:

git clone https://github.com/cuuush/memcal.git
cd memcal
./install.sh

See the quickstart for your first ingest and nightly schedule.

Connect your agent

Memcal works with any MCP client and has native integrations for Hermes and OpenClaw. To start the MCP server:

python3 -m memcal.mcp_server

See the MCP guide for client configuration. Agents can also look beyond the brief with tools such as memcal_list_month(month="2026-10") and memcal_list_days(when="2026-01-01", days=365).

Using Memcal

  • memcal dream collects and processes updates, then shows a summary. Add --verbose for details or --dry-run for a cost estimate without model calls.
  • memcal review shows recent changes and open questions. Answer a question using its displayed handle, for example memcal answer Q12 "your answer".
  • memcal open E42 shows a record, its changes, and cited source messages. Use memcal activity E42 to see newer or uncited conversation traffic.
  • memcal schedule install installs the macOS scheduler; memcal schedule status checks it. Reinstall the schedule after changing runtime locations.
  • memcal update updates a checkout or pip installation from GitHub, upgrades dependencies, migrates the store, and refreshes the brief and installed scheduler. Local edits or unpublished commits stop a checkout update. Restart running UI and agent sessions afterward.

Run memcal setup --advanced for model, brief, Dream, and publishing settings, or memcal setup --section imessage to revisit a section. See configuration for provider and model options, including OpenAI-compatible endpoints.

How it works

Memcal stores events, recurring series, todos, questions, and wiki entries in typed stores. It joins related information across sources, keeps older values in history, and applies updates using the time their evidence was said. The nightly Dream pass collects information, proposes and merges changes, and refreshes the brief. See Memcal vs. retrieval for the design.

Learn more

Metadata

Release files for memcal 0.8.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for memcal 0.8.7
File Size Uploaded Provenance Actions
memcal-0.8.7.tar.gz 2.3 MB With provenance Details for memcal-0.8.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for memcal 0.8.7
File Interpreter ABI Platform Actions
memcal-0.8.7-py3-none-any.whl Python 3 none any Details for memcal-0.8.7-py3-none-any.whl

Total release size: 4.1 MB

Release files / memcal-0.8.7.tar.gz

Download URL memcal-0.8.7.tar.gz
Size 2.3 MB
Tags Source
SHA-256 checksum
How to use checksums
19193cc9197e9c16be8915c6019d0abd8f212adbdebed6d481c04c62565cd72c
BLAKE2b-256 checksum
How to use checksums
22648c6df3e13d6ac20fa36ea5d76bd533d4ab250d2a8dbf8106cd38e5a5d973
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.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.

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 Nov 5, 2026.

Transparency log

Release files / memcal-0.8.7-py3-none-any.whl

Download URL memcal-0.8.7-py3-none-any.whl
Size 1.8 MB
Tags Python 3
SHA-256 checksum
How to use checksums
1840cfcaa7cc6e6c6c61b82374bd8b84d4593531009b70cf37e89804aa28c262
BLAKE2b-256 checksum
How to use checksums
e1552756947285aa30230f4d1a017679e28c5b99099094e0afeb7686a7426791
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.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.

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 Nov 5, 2026.

Transparency log

Security for memcal 0.8.7

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.

Select from 2 files

Attestation for memcal-0.8.7.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 Nov 5, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page