Perenna

io.github.scarletkc由 GitHub 账号 scarletkc 发布v0.4.1更新于 Oct 24, 2026

A lightweight, Git-backed permanent memory for AI agents.

已验证STDIO仅桌面知识与记忆开发者工具

概览

AI 生成的概览

Perenna 是一个本地运行、以 Git 为后端的永久记忆服务器,让 AI 助手读取、写入和删除可在多个 MCP 客户端间共享的持久记忆。

可以做什么
通过独立的 MCP 工具读取、写入和删除持久记忆,记忆以可读的 Markdown 存放在独立的 Git 仓库中。让 Claude Code、Codex、Cursor、ChatGPT 等 MCP 客户端共享同一份记忆,而不是各自隔离。借助本地 Vexor 检索索引搜索记忆,该索引可随时从 Git 重建。可选地通过私有 Git 仓库导入、发布或快进记忆历史。支持多个本地代理进程通过跨进程锁访问同一存储。
适用场景
适合在多个 AI 代理或机器之间切换、希望记忆跟随自己而不是锁在某个厂商账户中的用户。也适合希望代理记忆保持为可查看、可编辑、可版本管理的 Markdown 的用户。
运行要求
以 Python 包形式通过 stdio 本地运行(需要 Python 3.12+、Git 和 uv)。需要可用的 Vexor 嵌入提供方,可交互配置,或通过 VEXOR_CONFIG_JSON 加 VEXOR_API_KEY 或所选提供方的密钥配置;本地嵌入需安装 local 附加组件。可选 Git 同步需要私有仓库和 PERENNA_GIT_REMOTE。数据默认创建在 ~/.perenna/ 下。
安装前请注意
远程嵌入或重排提供方会收到记忆文本和搜索查询,记忆内容会离开本机。VEXOR_API_KEY 和 VEXOR_REMOTE_RERANK_API_KEY 是密钥,应放在宿主环境中。服务器可写入和删除记忆,Git 同步会把记忆历史发布到远程仓库,请使用私有仓库。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Perenna,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README


A lightweight, Git-backed permanent memory for AI agents. Claude Code, Codex, ChatGPT, Cursor, and other MCP clients can share durable memories without sharing a vendor account or conversation history.

  • Separate MCP tools for reading, writing, and deleting memories
  • Local stdio, loopback-only Streamable HTTP, and OAuth-protected remote HTTP
  • Human-readable Markdown stored in an independent Git repository
  • Local Vexor retrieval index that can always be rebuilt from Git
  • Cross-process locking for multiple local agent processes

Why Perenna?

Your memory should follow you, not the agent you happen to be using.

Claude Code, Codex, Cursor, and ChatGPT keep memory in separate silos. Switch agents and your memory disappears. Switch machines and local memory stays behind.

Perenna gives them one shared, Git-backed memory. Local agents and ChatGPT can connect to the same self-hosted Perenna service, while every durable memory stays ordinary Markdown you can inspect, edit, version, and back up yourself.

Perenna stays focused on permanent memory: no required account, proprietary memory cloud, or automatic conversation extraction.

Quickstart

Install with your AI agent

Paste this into Claude Code, Codex, ChatGPT Desktop, Cursor, or another coding agent with terminal and local MCP configuration access:

text
Open the following URL, read the complete instructions, and follow them toinstall and connect Perenna:https://raw.githubusercontent.com/scarletkc/Perenna/main/docs/guides/agent-installation.md

Install a published release

Perenna requires Python 3.12+, Git, and uv.

Install Perenna
bash
uv tool install perenna
Configure retrieval

Perenna needs a working Vexor embedding provider. For interactive provider selection and configuration, run:

bash
uvx vexor init

Perenna automatically reuses ~/.vexor/config.json. When using process-level configuration, make sure the MCP server receives VEXOR_CONFIG_JSON plus VEXOR_API_KEY or the selected provider's key from its host environment. Remote providers receive memory text and search queries.

If you choose local embeddings, also install Perenna's local extra:

bash
uv tool install "perenna[local]"

Vexor provider configuration covers remote and local setup. From the environment that starts the MCP client, verify the selected provider with:

bash
uvx vexor doctor
Connect a client

For the standalone setup, configure the MCP client to start:

text
perenna mcp

Follow the Client setup guide for the exact client command or configuration file.

Codex and Claude Code can also install the optional memory behavior Skill:

bash
perenna skill install --agent codex# orperenna skill install --agent claude-code

Repeat --agent in one command when both clients should receive the skill. The configuration reference documents user and project scope, destinations, and replacement safeguards.

Codex and Claude Code can instead install the combined Skill and MCP connection from Perenna's repository Marketplace. Follow the Plugin setup guide and choose one setup path per client.

Perenna creates its local data under ~/.perenna/ unless another home is configured.

Add optional Git synchronization

To import, publish, or fast-forward compatible history through a private Git repository, run:

bash
perenna sync setup <repository-url>

Successful setup saves the selected remote in the Perenna home. Use perenna sync disable to return to saved local-only mode without removing the Git remote.

The configuration reference owns remote selection, credentials, conflict handling, and recovery details.

Install from source

bash
git clone https://github.com/scarletkc/Perenna.gitcd Perennauv tool install .

Source contributors should use the locked environment in the development guide.

Documentation

Start with the documentation index, then follow the path for your task:

License

MIT

来源:README.md,提交 3c9ee18

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v0.4.1最新Sep 16, 2026

评分

已满足适用检查项的 50%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分