Skip to main content

Phileas: persistent memory for AI

AI conversations reset every session. Phileas is a local memory layer that any LLM can read and write through MCP, so context survives across sessions and tools.

Requirements

  • Python 3.11 or newer.
  • An MCP client. Phileas exposes its memory over MCP. The setup wizard wires it into Claude Code automatically; any other MCP client (a GPT or Ollama front-end, and so on) connects to phileas serve.
  • A few hundred MB of disk and one download. Phileas runs two small models locally (about 150 MB) and depends on PyTorch. The steps below keep that download lean.

Installation

python3 -m venv ~/.venvs/phileas # an isolated environment
source ~/.venvs/phileas/bin/activate

pip install torch --index-url https://download.pytorch.org/whl/cpu
pip install phileas-memory

phileas init

Phileas uses PyTorch only to run two small models (an embedding model and a reranker) on the CPU, so the first install line fetches PyTorch's lean CPU build. That keeps the download to a few hundred MB; without it, pip pulls the multi-gigabyte CUDA build on Linux. On macOS and Windows the CPU build is already the default, so that line is harmless there too.

phileas init is the setup wizard: it chooses where memories live, connects Phileas to Claude Code, downloads the models, and starts the background daemon. Restart Claude Code afterward so it picks up the memory tools.

The MCP server is launched by its full path, so Claude Code finds it whether or not the venv is active. To run phileas commands yourself (such as phileas status), activate the venv first.

First run

The first run downloads three models from Hugging Face that then run locally: an embedding model (all-MiniLM-L6-v2), a reranker (ms-marco-MiniLM-L-6-v2), and an NLI model (nli-deberta-v3-small) for contradiction detection, about 300 MB together. They are cached after the first download, so later runs work offline. No API key is needed for recall: the three models run locally on your machine. Capture streams turns to Phileas with ingest; with a configured Anthropic key Phileas distills them into memories itself (off by default, so a keyless install still captures and recalls the raw turns).

Connect other MCP clients

phileas init wires up Claude Code. Any other MCP client connects to the same server: phileas serve speaks MCP over stdio, so register it the way that client registers a stdio server.

Most clients (Cursor, Antigravity, and others) read a JSON config with the same shape. Add Phileas to its mcpServers map:

{
  "mcpServers": {
    "phileas": {
      "type": "stdio",
      "command": "/absolute/path/to/phileas",
      "args": ["serve"]
    }
  }
}

Use the absolute path to the phileas executable (run command -v phileas to find it), since the client launches it without your shell's PATH or an active venv. To point a client at a named profile, add "env": {"PHILEAS_PROFILE": "<name>"} to the entry.

Proactive recall and memorize

The tools work in any client, and the server ships usage guidance that every MCP client receives on connect. The extra layer that makes memory feel automatic (recall before answering, memorize when something worth keeping comes up, the query shapes that retrieve well) lives in a skill file. phileas init installs it for Claude Code at ~/.claude/skills/phileas/SKILL.md; its text uses bare tool names so it carries to any client. If your client has a rules or skills mechanism, put that file's content into it.

Principles

  • Local-first: memories stay on your machine.
  • Model-agnostic: works with any LLM via MCP.
  • Natural forgetting: irrelevant detail decays; recall favors what stays useful.
  • Open: run it yourself, read the code.

For the full command list, run phileas --help or phileas COMMAND --help.

License

MIT

Download files

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

Source Distribution

phileas_memory-0.5.2.tar.gz (255.2 kB view details)

Uploaded Source

Built Distribution

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

phileas_memory-0.5.2-py3-none-any.whl (226.1 kB view details)

Uploaded Python 3

File details

Details for the file phileas_memory-0.5.2.tar.gz.

File metadata

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

File hashes

Hashes for phileas_memory-0.5.2.tar.gz
Algorithm Hash digest
SHA256 1d65d19aa2cf23754b495e0dfda14dddfc1281456971d2537e8b5b33e9967c03
MD5 b445097236bb4dda89cacbf7a1c3b649
BLAKE2b-256 34795a7e369f140bd8bfedb2f3e33b33b68f3aad36e545d7029104ff0f58c325

See more details on using hashes here.

Provenance

The following attestation bundles were made for phileas_memory-0.5.2.tar.gz:

Publisher: release.yml on alexajuno/phileas

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

File details

Details for the file phileas_memory-0.5.2-py3-none-any.whl.

File metadata

  • Download URL: phileas_memory-0.5.2-py3-none-any.whl
  • Upload date:
  • Size: 226.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for phileas_memory-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 154da81e63bdf46bda7e39b488d99845dc0cd587956e4c05b6e1b5d0bf60f02e
MD5 7183bbb353422c4fde37e306c0de1e0c
BLAKE2b-256 1312cbbb385703223c8f8bf488629547383ed40e87e933befe11a615684b1472

See more details on using hashes here.

Provenance

The following attestation bundles were made for phileas_memory-0.5.2-py3-none-any.whl:

Publisher: release.yml on alexajuno/phileas

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

Release history Release notifications | RSS feed

0.8.0

2 files

0.7.1

2 files

0.7.0

2 files

0.6.1

2 files

0.6.0

2 files

This release

0.5.2 This release

2 files

0.5.1

2 files

0.5.0

2 files

0.4.0

2 files

0.3.0

2 files

0.2.0

2 files

0.1.0

2 files

Supported by

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