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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9b0948cf893781fd95dadd7cdd204fc69e9b4fac8e7b0132db4fc054a4bee459
|
|
| MD5 |
cb72ebd5d0ffd299d800e543652a6ffe
|
|
| BLAKE2b-256 |
c32619fed67b2bc4b22a9cc21505f61c27bc1c321631a858d72e04be5b2f7a67
|
Provenance
The following attestation bundles were made for phileas_memory-0.4.0.tar.gz:
Publisher:
release.yml on alexajuno/phileas
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
phileas_memory-0.4.0.tar.gz -
Subject digest:
9b0948cf893781fd95dadd7cdd204fc69e9b4fac8e7b0132db4fc054a4bee459 - Sigstore transparency entry: 1890457712
- Sigstore integration time:
-
Permalink:
alexajuno/phileas@c2cabead4202c01a3cc8445db3b75edcc828e437 -
Branch / Tag:
refs/tags/v0.4.0 - Owner: https://github.com/alexajuno
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@c2cabead4202c01a3cc8445db3b75edcc828e437 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
29088332b6b22ab6519808d555c73d5abd1e316d2d5d1ca043e3bb29f85567d9
|
|
| MD5 |
30def9f1a8f2c46e3ef01bfc7c27d846
|
|
| BLAKE2b-256 |
cc3c3b69ce1611b3b8ccee9c81c83cc0d5324eee5cea017110a7725782a58319
|
Provenance
The following attestation bundles were made for phileas_memory-0.4.0-py3-none-any.whl:
Publisher:
release.yml on alexajuno/phileas
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
phileas_memory-0.4.0-py3-none-any.whl -
Subject digest:
29088332b6b22ab6519808d555c73d5abd1e316d2d5d1ca043e3bb29f85567d9 - Sigstore transparency entry: 1890457919
- Sigstore integration time:
-
Permalink:
alexajuno/phileas@c2cabead4202c01a3cc8445db3b75edcc828e437 -
Branch / Tag:
refs/tags/v0.4.0 - Owner: https://github.com/alexajuno
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@c2cabead4202c01a3cc8445db3b75edcc828e437 -
Trigger Event:
release
-
Statement type: