能力标签
Taos本地AI记忆系统
🛠
AI工具

Taos本地AI记忆系统

基于 Python · 开源免费,本地部署,数据完全自主可控
英文名:taosmd
⭐ 44 Stars 🍴 2 Forks 💻 Python 📄 MIT 🏷 AI 7.2分
7.2AI 综合评分
本地AI离线运行边缘计算嵌入式隐私保护
✦ AI Skill Hub 推荐

Taos本地AI记忆系统 是 AI Skill Hub 本期精选AI工具之一。综合评分 7.2 分,整体质量较高。我们推荐使用将其纳入你的 AI 工具库,帮助提升工作效率。

📚 深度解析

Taos本地AI记忆系统 是一款基于 Python 的开源工具,在 GitHub 上收获 0k+ Star,是本地AI、离线运行、边缘计算、嵌入式领域中的优质开源项目。开源工具的最大优势在于代码完全透明,你可以审计每一行代码的安全性,也可以根据自身需求进行二次开发和定制。

**为什么要使用开源工具而非商业 SaaS?**
对于个人开发者和有隐私需求的用户,本地部署的开源工具意味着数据不离本机,不受第三方服务商的数据政策约束。同时,开源工具通常没有使用次数限制和月度费用,一次安装即可长期使用,对于高频使用场景的总拥有成本(TCO)远低于订阅制商业工具。

**安装与环境准备**
Taos本地AI记忆系统 依赖 Python 运行环境。建议通过 pyenv(Python)或 nvm(Node.js)管理 Python 版本,避免全局环境污染。对于新手用户,推荐先创建虚拟环境(python -m venv venv && source venv/bin/activate),再安装依赖,这样即使出现问题也可以随时删除虚拟环境重新开始,不影响系统稳定性。

**社区与维护**
GitHub Issue 和 Discussion 是获取帮助的最快渠道。在提问前建议先检查 Closed Issues(已关闭的问题),大多数常见问题都已有解答。遇到 Bug 时,提供 pip list 的输出、完整错误堆栈和最小可复现示例,能显著提高开发者响应速度。AI Skill Hub 将持续追踪 Taos本地AI记忆系统 的版本更新,及时通知重要功能变化。

📋 工具概览

离线运行的本地优先AI记忆工具,支持8GB+内存的任何设备(树莓派、迷你PC等)。提供框架无关的嵌入式AI能力,适合边缘计算和隐私保护场景的开发者。

Taos本地AI记忆系统 是一款基于 Python 开发的开源工具,专注于 本地AI、离线运行、边缘计算 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。

GitHub Stars
⭐ 44
开发语言
Python
支持平台
Windows / macOS / Linux
维护状态
轻量级项目,按需更新
开源协议
MIT
AI 综合评分
7.2 分
工具类型
AI工具
Forks
2

📖 中文文档

以下内容由 AI Skill Hub 根据项目信息自动整理,如需查看完整原始文档请访问底部「原始来源」。

离线运行的本地优先AI记忆工具,支持8GB+内存的任何设备(树莓派、迷你PC等)。提供框架无关的嵌入式AI能力,适合边缘计算和隐私保护场景的开发者。

Taos本地AI记忆系统 是一款基于 Python 开发的开源工具,专注于 本地AI、离线运行、边缘计算 等核心功能。作为 GitHub 开源项目,它拥有活跃的社区支持和持续的版本迭代,代码完全透明可审计,支持本地部署以保护数据隐私。无论是个人使用还是集成到企业工作流,都能提供稳定可靠的解决方案。

📌 核心特色
  • 开源免费,支持本地部署,数据完全自主可控
  • 活跃的 GitHub 开源社区,持续迭代更新
  • 提供详细文档和使用示例,新手友好
  • 支持自定义配置,灵活适配不同使用环境
  • 可作为基础组件集成进现有技术栈或进行二次开发
🎯 主要使用场景
  • 本地部署运行,保护数据隐私,满足合规要求
  • 自定义集成到现有系统,扩展技术栈能力
  • 作为开源基础组件进行商业化二次开发
以下安装命令基于项目开发语言和类型自动生成,实际以官方 README 为准。
安装命令
# 方式一:pip 安装(推荐)
pip install taosmd

# 方式二:虚拟环境安装(推荐生产环境)
python -m venv .venv
source .venv/bin/activate  # Windows: .venv\Scripts\activate
pip install taosmd

# 方式三:从源码安装(获取最新功能)
git clone https://github.com/jaylfc/taosmd
cd taosmd
pip install -e .

# 验证安装
python -c "import taosmd; print('安装成功')"
📋 安装步骤说明
  1. 访问 GitHub 仓库页面
  2. 按照 README 文档完成依赖安装
  3. 根据系统环境完成初始化配置
  4. 参考官方示例或文档开始使用
  5. 遇到问题可在 GitHub Issues 中查找解答
以下用法示例由 AI Skill Hub 整理,涵盖最常见的使用场景。
常用命令 / 代码示例
# 命令行使用
taosmd --help

# 基本用法
taosmd input_file -o output_file

# Python 代码中调用
import taosmd

# 示例
result = taosmd.process("input")
print(result)
以下配置示例基于典型使用场景生成,具体参数请参照官方文档调整。
配置示例
# taosmd 配置文件示例(config.yml)
app:
  name: "taosmd"
  debug: false
  log_level: "INFO"

# 运行时指定配置文件
taosmd --config config.yml

# 或通过环境变量配置
export TAOSMD_API_KEY="your-key"
export TAOSMD_OUTPUT_DIR="./output"
📑 README 深度解析 真实文档 完整度 87/100 查看 GitHub 原文 →
以下内容由系统直接从 GitHub README 解析整理,保留代码块、表格与列表结构。

简介

<p align="center"> <img src="logo.png" alt="taOSmd" width="300"> </p>

Key Features

  • 97.0% end-to-end Judge accuracy on LongMemEval-S, measured on our low-end reference stack under a strict local judge (methodology)
  • Zero cloud dependencies, runs entirely on local hardware
  • Framework-agnostic, Python API, CLI, MCP server, and local HTTP/REST API work with any agent framework
  • Hybrid search, semantic similarity + keyword overlap boosting
  • Late-interaction retrieval (opt-in), token-level MaxSim scoring lifts evidence recall from 0.64 to 0.85 on LoCoMo and runs in about 110ms per query on a 16-core CPU, no GPU or reranker needed (numbers)
  • Bulk ingest with safe re-import, POST /ingest/batch dedupes on your content hashes, plus a BM25-only search mode for instant keyword lookups
  • Built-in agent-to-agent bus, taosmd serve ships a message bus with named channels, realtime SSE wake, and a poll cursor, so several agents on one project coordinate over the same server that holds their memory. Every message is an append-only archive event, so the whole conversation is auditable and replayable, not a separate mutable log.
  • Dependency-aware task graph, taosmd tasks gives multi-agent teams a ready queue (open tasks with no open blockers) and a prime briefing endpoint for session handoffs; every mutation is an append-only archive event, so the task tables are replayable history (concept credit: beads)
  • Coordination is part of the memory, not bolted on, we are not aware of another local-first memory system that ships an auditable comms bus and a dependency-aware task graph inside the memory server itself. Both are projections of the same zero-loss archive, so who said what and who did what are reconstructable from the source of truth.
  • Temporal facts, validity windows, point-in-time queries
  • Contradiction detection, corrected facts supersede across both the typed knowledge graph (via valid_to invalidation) and the vector recall layer (matching chunks soft-hidden, not deleted); recall returns only the active fact
  • Zero-loss archive, append-only, read-only transcript of the full picture (user + agent messages, tool calls and results, decisions, errors, plus opt-in user activity); the librarian derives memory from it, never over it
  • Intent-aware retrieval, routes queries to optimal memory layer
  • 0.3ms embeddings, ONNX Runtime on CPU (ARM or x86)
  • Opt-in user tracking, browsing history, app usage, search queries

Dependencies & Acknowledgements

Core taOSmd (the 97.0% benchmark) is fully self-contained, it uses only standard packages (SQLite, numpy, ONNX Runtime) plus the MiniLM embedding model. No external servers or forked repos needed.

Optional integrations for the full taOS stack:

ComponentSourceNotes
QMD (embedding / reranking / query expansion)[jaylfc/qmd](https://github.com/jaylfc/qmd) (fork, on npm as @jaylfc/qmd)Tracks upstream [tobi/qmd](https://github.com/tobi/qmd) v2.5.3 and adds a pluggable model backend: qmd serve (HTTP model server) plus remote / Ollama-compatible backends (--server, --backend ollama) so embeddings, reranking and expansion can be served by an Ollama or NPU host.
rkllama (NPU model serving)[NotPunchnox/rkllama](https://github.com/NotPunchnox/rkllama)Upstream with minor patches for rerank endpoint
ONNX MiniLM[onnx-models/all-MiniLM-L6-v2-onnx](https://huggingface.co/onnx-models/all-MiniLM-L6-v2-onnx)Standard pre-exported model
Qwen3-4B RKLLM[dulimov/Qwen3-4B-rk3588-1.2.1-base](https://huggingface.co/dulimov/Qwen3-4B-rk3588-1.2.1-base)Community RK3588 conversion

Getting Started

Let your agent install it

The cleanest way to install taOSmd is to ask your agent to do it. Paste this message into Claude Code, Cursor, your OpenClaw shell, whatever:

Please install taOSmd as my memory system. The repo is github.com/jaylfc/taosmd. 1. Read the README so you understand what you're installing. 2. Run the install script: curl -fsSL https://raw.githubusercontent.com/jaylfc/taosmd/master/scripts/setup.sh | bash. Report any errors and stop if it fails. 3. Register yourself as an agent so you have your own isolated index. Pick a stable agent name (lowercase, no spaces), the same name you'll use every time you call the librarian. If I have multiple agents in this framework, ask me what to name this one before registering. 4. Verify the install: call taosmd.search("hello", agent="<your-name>"), it should return an empty result, not an error. 5. Append the "Memory, taOSmd" rules block to my agent file (CLAUDE.md / system prompt / AGENTS.md, whatever your framework reads every turn). Pull the block via python -c "import taosmd; print(taosmd.agent_rules())", the file is shipped as package data at taosmd/docs/agent-rules.md so this works from both editable and wheel installs. Replace <your-agent-name> with the name you registered as. 6. Confirm it's installed and tell me your agent name so I know how to refer to your memory. Don't summarise the repo or paraphrase the rules. Copy them verbatim, the wording is the contract.

The agent will pull the repo, run the install, register itself, append the per-turn rules block to its own instruction file, and verify everything works. After that, every turn it runs it'll check the librarian when it's uncertain, see taOSmd/docs/agent-rules.md for the rules block it installs (also available via taosmd.agent_rules()).

Multiple agents in one framework? Same install message works. The agent will ask you to name it before registering, so each agent gets its own shelf. The taOSmd service stays one process with one shared set of stores; per-agent isolation is enforced by an agent tag on every row, not by separate files. See docs/multi-agent.md for the full naming convention, project-scoped and cross-agent memory, migration scenarios, and a five-agent worked example.

Inside taOS? Don't use this. taOS provisions taOSmd automatically when you deploy an agent, and the rules block is baked into the agent template. This install path is for standalone framework users.

One-Line Setup (manual)

Install: pip install taosmd (add the MCP server with pip install "taosmd[mcp]"). For a source/dev install instead, git clone then pip install -e .. The one-line bootstrap below additionally installs Ollama and downloads the embedding and LLM models; it is newer and still being validated across clean machines, so please report issues.
curl -fsSL https://raw.githubusercontent.com/jaylfc/taosmd/master/scripts/setup.sh | bash

This will: 1. Clone the repo and install Python dependencies 2. Download the all-MiniLM-L6-v2 ONNX embedding model (90MB) 3. Install Ollama and pull Qwen3-4B for fact extraction + answering (2.6GB) 4. On RK3588: download the NPU-optimised Qwen3-4B RKLLM model instead (4.6GB) 5. Create the data directory and run a self-test

Manual Install

```bash git clone https://github.com/jaylfc/taosmd.git cd taosmd pip install -e .

Install rkllama: https://github.com/NotPunchnox/rkllama

hf download dulimov/Qwen3-4B-rk3588-1.2.1-base \ Qwen3-4B-rk3588-w8a8-opt-1-hybrid-ratio-0.0.rkllm \ --local-dir ~/.rkllama/models/qwen3-4b-chat ```

Install hygiene (avoid a shadowed install)

Always install taOSmd into a virtual environment, and never with sudo into the system Python. A system-wide copy under /usr/lib/python3/dist-packages/taosmd (left by an earlier sudo pip install) will shadow a venv editable install, so import taosmd resolves to the stale system copy instead of your checkout. To check what is actually being imported and remove a stale system copy:

```bash

Install and start (binds 0.0.0.0:7900, installs systemd / LaunchAgent)

./scripts/install-server.sh

Install the client package and point it at the server

./scripts/install-client.sh http://pi.local:7900

Reference Setup (Orange Pi 5 Plus)

This is the author's primary deployment and the exact stack the 97.0% benchmark was measured on. Other tiers (Pi 4B, Intel mini, Mac mini, GPU box) run the same code, they swap the runtime (Ollama instead of rkllama, CPU/GPU instead of NPU) but keep the same models and the same architecture.

ComponentModelPurposeRuntime
**Embedding**all-MiniLM-L6-v2 (22M params)Semantic vector searchONNX Runtime on ARM CPU (0.3ms/embed)
**Embedding (alt)**embeddinggemma-300MHigher-quality 768-dim embeddings (vs MiniLM 384-dim)qmd serve (llama.cpp, CPU)
**Reranker**Qwen3-Reranker-0.6BResult rerankingrkllama on RK3588 NPU
**Query Expansion**qmd-query-expansion 1.7BSearch query enrichmentrkllama on RK3588 NPU
**LLM (extraction + answering)**Qwen3-4BFact extraction (72% recall) + QA from contextrkllama on RK3588 NPU (17s/turn)
**Vector Store**SQLite + numpyCosine similarity searchCPU
**Full-Text Search**SQLite FTS5Keyword search over archiveCPU
**Knowledge Graph**SQLiteTemporal entity-relationship triplesCPU

Everything in this reference stack runs on the Pi itself; no external server needed for this tier. The Qwen3-4B handles both fact extraction and question answering on the NPU. The ONNX embedding model runs in-process on the CPU. An optional GPU worker (e.g. Fedora with RTX 3060) can accelerate LLM tasks ~10x but is not required, the Pi is fully self-contained.

Platform-Specific Setup

Install rkllama (serves models on the NPU)

The setup script handles this automatically, or manually:

hf download dulimov/Qwen3-4B-rk3588-1.2.1-base \ Qwen3-4B-rk3588-w8a8-opt-1-hybrid-ratio-0.0.rkllm \ --local-dir ~/.rkllama/models/qwen3-4b-chat ```

Install the taOSmd-a2a skill

taosmd install-skill

Copies the bundled taosmd-a2a agent-setup skill into ~/.claude/skills/taosmd-a2a/ so it is available across all Claude Code projects. Pass --force to overwrite an existing installation.

Quick Start

```python from taosmd import KnowledgeGraph, VectorMemory, Archive

Option A (default): any Linux/macOS box with or without a GPU, use Ollama

curl -fsSL https://ollama.com/install.sh | sh ollama pull qwen3:4b

Option B (NPU acceleration): Orange Pi / Rock 5 / Radxa with RK3588, use rkllama

If it points at /usr/lib/... or /usr/local/... instead of your venv, remove it:

sudo python3 -m pip uninstall -y taosmd # the SYSTEM python, outside any venv ```

Running taosmd serve as a systemd unit? Point the unit at your venv's interpreter (ExecStart=/path/to/.venv/bin/python -m taosmd serve ...); a PyPI or venv install needs no WorkingDirectory and no repo checkout to start.

Tag each turn with its position (and optional group, e.g. session)

for i, turn in enumerate(turns): await vmem.add(turn["text"], metadata={"position": i, "session": "conv1"})

hits = await retrieve( "what was discussed about the deploy?", sources={"vector": vmem}, adjacent_neighbors=2, # default 0, opt in for the lever position_key="position", group_key="session", # confine neighbours to the same session )

when the hit lacks the configured position/group keys).

```

Recipes (tier-aware config profiles)

A recipe is a named, declared config bundle (retrieval + ingest + generator + librarian settings) that carries its own benchmark scores, target hardware tier, and pros/cons. Instead of leaving the retrieval levers at their defaults, taOSmd ships a small registry of recipes we have actually measured (for example the maxsim-rerank-9b leader for a 12 GB GPU and a lite-pi no-LLM-ingest profile for an Orange Pi / CPU), and a fresh install auto-detects your hardware and applies the best affordable recipe on first use, so you run a benchmarked configuration rather than unconfigured defaults. No taOS or network is required: the hardware probe is local, and the reranker model (when a recipe asks for one) downloads on first use with progress and degrades gracefully if it is not yet present.

```python import taosmd

Checking and clearing the config

taosmd config show          # print server_url, whether a token is set, memory_model
taosmd config set-server --clear   # revert to local mode

Optional bearer token auth

By default there is no authentication. If the server is on a trusted private network (Tailscale, a home LAN), the network boundary is the access control. For defence in depth, you can require a bearer token:

```bash

Or, to keep the token out of config.json:

export TAOSMD_TOKEN=<your-secret-token> ```

The token is sent as Authorization: Bearer <token> on every request. GET /health and the web inspector (GET /) are always public so monitoring probes keep working. Never commit the token to version control.

Optional: GPU Worker (x86 + NVIDIA)

Not required for any tier, the LLM runs locally on whatever you've got. A GPU worker accelerates LLM tasks ~10x if you want to offload from a smaller node:

```bash

How the Python API and MCP server interact with remote mode

The RemoteClient class (taosmd.remote) mirrors the same async interface as the local service module (taosmd.service). The CLI, Python API, and MCP server all check TAOSMD_SERVER_URL (and config.json) at startup and delegate to RemoteClient when a URL is configured. From the caller's perspective nothing changes: the same taosmd.ingest(), taosmd.search(), and A2A calls work in both modes.

API

taosmd serve starts a local HTTP/REST server (default 127.0.0.1:7900, stdlib only, no new dependencies). It is a thin JSON shell over the same service layer as the Python API and CLI, so behaviour is identical across surfaces. Every endpoint that takes an agent parameter forwards it to the service layer, honouring the same per-agent isolation as the Python API.

Security note: the server binds 127.0.0.1 by default, no auth is needed because only local processes can reach it. If you pass --host 0.0.0.0 to expose it on a LAN, there is no authentication; put it behind your own network controls.

Endpoints

MethodPathRequestResponse
GET/health(none){"status": "ok", "version": <str>}
POST/ingest{"text": str, "agent": str, "project"?: str}{"archived": int, "agent": str, "project": str\|null, "data_dir": str}
POST/ingest/batch{"items": [{"text": str, "id"?: str, "metadata"?: obj}], "agent": str, "project"?: str}{"ingested": int, "skipped": int, ...}
POST/search{"query": str, "agent": str, "limit"?: int, "project"?: str, "also_include"?: [str], "mode"?: "bm25"}{"hits": [...]}
GET/search?q=<query>&agent=<agent>&limit=<int>&project=<id>&also_include=a,b&mode=bm25{"hits": [...]}
GET/projects(none){"projects": [{"project_id", "agents", "last_ingest"}]}
GET/shelves?project=<id>{"shelves": [{"agent", "facts", "last_ingest"}]}
GET/pending?agent=<agent>&limit=<int>{"pending": [...]}
POST/pending/resolve{"id": str, "decision": "accept"\|"reject"\|"modify", "note"?: str}{"ok": bool, "applied_kg": bool, "resolution": str}
POST/tasks{"title": str, "body"?, "project"?, "assignee"?, "priority"?, "depends_on"?: [id]}task object
GET/tasks?status=&project=&assignee=&limit={"tasks": [...]}
GET/tasks/ready?project=&assignee=&limit=unblocked tasks, priority order
GET/tasks/prime?project=&assignee={"text": <briefing>, "tasks": [...]}
POST/tasks/{id}{"status"?, "assignee"?, "priority"?, "body"?}updated task
POST/tasks/{id}/edges (+ /edges/remove){"to_id": str, "type": "blocks"\|"parent"\|"relates"\|"duplicates"}edge receipt

Each hit in /search results has the agent-rules contract shape: {text, source, timestamp, confidence, metadata}.

/ingest/batch is the bulk-import path: each item can carry a stable id (your content hash), preserved as source_id and used to skip already-imported items, so the whole batch can be re-POSTed safely after a partial migration. mode=bm25 on /search skips query embedding entirely and returns keyword-ranked hits in about 10ms, built for search-as-you-type UIs over short-form memory; the default mode remains the full recipe-driven retrieval.

Fusion Strategy Comparison

StrategyJudge accuracyDelta
Raw cosine (same algorithm as MemPalace)95.0%baseline
Additive keyword boost96.6%+1.6
**Hybrid + query expansion (default)****97.0%****+2.0**
All-turns hybrid (harder test)93.2%-1.8

Full LongMemEval-S benchmark (500 questions)

python benchmarks/longmemeval_runner.py

LoCoMo (1540 QAs, multi-session conversations)

python benchmarks/locomo_runner.py --model gemma4:e2b

🎯 aiskill88 AI 点评 B 级 2026-06-08

创新的本地AI记忆方案,离线优先设计符合隐私趋势。框架无关性强,适配边缘设备。但社区规模小,需验证稳定性。

📚 实用指南(长尾问题)
适合谁
  • 需要 taosmd 解决具体问题的开发者与运营人员
最佳实践
  • 先在测试环境跑通最小用例,再接入生产数据
常见错误
  • API key 直接提交到 git 仓库(请用 .env 并加入 .gitignore)
  • Python 依赖冲突:建议用 venv / uv 隔离环境
部署方案
  • 云端托管:可放在 Vercel / Railway / Fly.io 等 PaaS 平台
相关搜索
taosmd 中文教程taosmd 安装报错怎么办taosmd 与同类工具对比taosmd 最佳实践taosmd 适合谁用

⚡ 核心功能

👥 适合谁
  • 需要 taosmd 解决具体问题的开发者与运营人员
⭐ 最佳实践
  • 先在测试环境跑通最小用例,再接入生产数据
⚠️ 常见错误
  • API key 直接提交到 git 仓库(请用 .env 并加入 .gitignore)
  • Python 依赖冲突:建议用 venv / uv 隔离环境

👥 适合人群

AI 技术爱好者研究人员和学生开发者和工程师技术创业者

🎯 使用场景

  • 本地部署运行,保护数据隐私,满足合规要求
  • 自定义集成到现有系统,扩展技术栈能力
  • 作为开源基础组件进行商业化二次开发

⚖️ 优点与不足

✅ 优点
  • +MIT 协议,可免费商用
  • +完全开源免费,无授权费用
  • +本地部署,数据完全自主可控
  • +开发者社区支持,遇问题可查可问
⚠️ 不足
  • 安装和初始配置可能需要一定技术基础
  • 功能完整性通常不如成熟商业产品
  • 技术支持主要依赖开源社区,响应速度不稳定
⚠️ 使用须知

AI Skill Hub 为第三方内容聚合平台,本页面信息基于公开数据整理,不对工具功能和质量作任何法律背书。

建议在沙箱或测试环境中充分验证后,再部署至生产环境,并做好必要的安全评估。

📄 License 说明

✅ MIT 协议 — 最宽松的开源协议之一,可自由商用、修改、分发,仅需保留版权声明。

🔗 相关工具推荐

🧩 你可能还需要
基于当前 Skill 的能力图谱,自动补全的工具组合

❓ 常见问题 FAQ

不需要,完全离线运行,所有处理在本地设备进行
💡 AI Skill Hub 点评

经综合评估,Taos本地AI记忆系统 在AI工具赛道中表现稳健,质量良好。如果你已有明确的使用需求,可以直接上手体验;如果还在评估阶段,建议对比同类工具后再做决策。

📚 深入学习 Taos本地AI记忆系统
查看分步骤安装教程和完整使用指南,快速上手这款工具
🌐 原始信息
原始名称 taosmd
原始描述 开源AI工具:Local-first AI memory — runs offline on any machine with 8 GB+ RAM (SBC, mini PC。⭐44 · Python
Topics 本地AI离线运行边缘计算嵌入式隐私保护
GitHub https://github.com/jaylfc/taosmd
License MIT
语言 Python
🔗 原始来源
🐙 GitHub 仓库  https://github.com/jaylfc/taosmd

收录时间:2026-06-08 · 更新时间:2026-06-11 · License:MIT · AI Skill Hub 不对第三方内容的准确性作法律背书。