Skip to main content

memcal

Memory and calendar for AI agents

PyPI Python 3.11+ License: MIT Docs

Most memory systems for agents like OpenClaw or Hermes (Mem0, Hindsight) are good at saving things like preferences and observations, but fail at personal assistant tasks, like remembering you have a dentist appointment next Friday. Memcal attempts to bridge this gap by enabling an agent to maintain its own internal calendar of your life. On top of that, a nightly fact-gathering stage will scan sources like iMessage, email, WhatsApp, iCal, and more to automatically update the agent calendar.

With Memcal, you can ask an agent, “What’s my weekend looking like?” and it will remember that your friend is free for dinner Saturday night, that the nonprofit you follow is having a member day, or even that your family is coming into town...

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. Calendar and Reminders also use the app bridge, including during memcal dream; their consent belongs to Memcal. Your terminal or agent does not need these grants. 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).

In Hermes, the brief arrives on the first substantive turn and when its contents or collected sources change; unchanged state adds nothing to subsequent user turns. Periodic collection (when scheduling is enabled, due every five minutes by default) can surface new message activity before nightly Dream consolidates it. The system instructions stay fixed; brief updates use Hermes's model-facing user context. Mentioned wiki pages can still be recalled separately. See the Hermes guide.

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, cited messages, nearby source context, and up to 50 pending messages within a 4,000-token estimated budget. Nearby context has a separate 1,500-token budget. Omissions include a cursor for memcal activity E42 --cursor <id>; reading never marks messages reviewed.
  • Agents answer whole-week overviews from the brief, which shows the last successful Dream consolidation time. For a specific event, they open its handle to read the details and new messages. Source coverage warnings still apply.
  • Recurring events use one rule for all days, such as memcal series practice --every weekly --weekdays monday wednesday friday --at 17:00. Use --interval for custom spacing and --state paused, active, or ended with --starting for dated changes. Agents use memcal_schedule; memcal_move_once moves or cancels a single occurrence. Video-call URLs go in location.
  • memcal schedule install installs the macOS scheduler; memcal schedule status checks it. Reinstall the schedule after changing runtime locations.
  • memcal disable stops macOS scheduled Dream and periodic message checks until memcal enable. The disabled state survives logins and updates; the app, permissions, data, and manual commands stay available. Closing the web UI alone does not stop scheduling.
  • memcal update updates a checkout or pip installation from GitHub, upgrades dependencies, migrates the store, and refreshes the brief and installed scheduler. Disabled scheduling stays disabled. Tracked edits or unpublished commits stop a checkout update; unrelated untracked outputs are preserved. 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.12

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.12
File Size Uploaded Provenance Actions
memcal-0.8.12.tar.gz 2.3 MB With provenance Details for memcal-0.8.12.tar.gz

Built distribution (wheel)

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

Total release size: 4.2 MB

Release files / memcal-0.8.12.tar.gz

Download URL memcal-0.8.12.tar.gz
Size 2.3 MB
Tags Source
SHA-256 checksum
How to use checksums
c8d3dfdb09396375a9bd104a53cec244f2cf52fe53c7360f7f570600b36070c9
BLAKE2b-256 checksum
How to use checksums
665152f4d9c9aa271c8e25aa3473218fadcc6f8936d539e14c79fdb19c971152
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 13, 2026.

Transparency log

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

Download URL memcal-0.8.12-py3-none-any.whl
Size 1.9 MB
Tags Python 3
SHA-256 checksum
How to use checksums
8adc63611273a3c1c1e8e52d8dab086122106e7aca98bc40f141a235ac644ccd
BLAKE2b-256 checksum
How to use checksums
296ddf1949d92208216d8ab6df95297fa57c673136ab79977d19cba6fc56ed46
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 13, 2026.

Transparency log

Security for memcal 0.8.12

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.12.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 13, 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