Skip to main content

Local-first long-term memory for AI companions

Project description

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 two models from Hugging Face that then run locally: an embedding model (all-MiniLM-L6-v2) and a reranker (ms-marco-MiniLM-L-6-v2), about 150 MB together. They are cached after the first download, so later runs work offline. No external LLM API key is needed: your MCP client's model does the reasoning, while embedding and reranking run on your machine.

Connect other MCP clients

Claude Code is configured by phileas init. For any other MCP client, start the server and point the client at it:

phileas serve

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

Project details


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.4.0.tar.gz (539.7 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.4.0-py3-none-any.whl (193.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: phileas_memory-0.4.0.tar.gz
  • Upload date:
  • Size: 539.7 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.4.0.tar.gz
Algorithm Hash digest
SHA256 9b0948cf893781fd95dadd7cdd204fc69e9b4fac8e7b0132db4fc054a4bee459
MD5 cb72ebd5d0ffd299d800e543652a6ffe
BLAKE2b-256 c32619fed67b2bc4b22a9cc21505f61c27bc1c321631a858d72e04be5b2f7a67

See more details on using hashes here.

Provenance

The following attestation bundles were made for phileas_memory-0.4.0.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.4.0-py3-none-any.whl.

File metadata

  • Download URL: phileas_memory-0.4.0-py3-none-any.whl
  • Upload date:
  • Size: 193.6 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.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 29088332b6b22ab6519808d555c73d5abd1e316d2d5d1ca043e3bb29f85567d9
MD5 30def9f1a8f2c46e3ef01bfc7c27d846
BLAKE2b-256 cc3c3b69ce1611b3b8ccee9c81c83cc0d5324eee5cea017110a7725782a58319

See more details on using hashes here.

Provenance

The following attestation bundles were made for phileas_memory-0.4.0-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.

Supported by

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