Metadata-Version: 2.4
Name: fern-memory
Version: 0.1.2
Summary: Local long-memory MCP server for coding agents, powered by the Fern-LS1 model
License: Apache-2.0
Project-URL: Homepage, https://www.coelfern.com
Project-URL: Model, https://huggingface.co/BunkerOfficial/Fern-LS1
Requires-Python: >=3.11
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: torch>=2.3
Requires-Dist: transformers>=4.48
Requires-Dist: huggingface_hub>=0.24
Requires-Dist: safetensors>=0.4
Requires-Dist: mcp>=2.0
Requires-Dist: pypdf>=5.0
Requires-Dist: numpy
Dynamic: license-file

# Fern

Fern is a local long-memory MCP server for coding agents. It indexes your project, your
docs and your past agent sessions, and answers questions about them on your own GPU using
the [Fern-LS1](https://huggingface.co/BunkerOfficial/Fern-LS1) model.

Setup guide for each harness: [coelfern.com](https://www.coelfern.com)

## Install

```bash
uv tool install fern-memory --torch-backend=auto
```

Requires Python 3.11+. Runs on CUDA, MPS or CPU and uses about 2.7 GB of VRAM. The model
weights (about 2.7 GB) download from Hugging Face into `~/.fern/models` on first use.
Set `FERN_CKPT` to use a checkpoint file you already have.

## Connect a harness

```bash
fern install claude    # or: cursor, codex, pi, generic
```

All open harnesses share one local GPU daemon, which unloads after 15 minutes idle.

## Commands

| Command | What it does |
|---|---|
| `/fern <question>` | Ask in chat. Your agent also calls Fern on its own. |
| `fern ask "<question>"` | Ask from the terminal. |
| `fern link <path>` | Add a folder, repo or paper library to memory. |
| `fern status` | Show what is indexed. |
| `fern daemon unload` | Free the GPU now instead of waiting for the idle timer. |

## License

Apache-2.0. Fern-LS1 is trained from [ByteDance/Ouro-1.4B](https://huggingface.co/ByteDance/Ouro-1.4B).
