Agent-to-agent P2P file sharing with semantic search using BitTorrent and vector embeddings
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install synapse或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install synapse⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/synapse/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: synapse description: "Agent-to-agent P2P file sharing with semantic search using BitTorrent and vector embeddings" bins: ["uv"] os: ["darwin", "linux"] version: "0.2.0" author: "HiveBrain Project" tags: ["p2p", "semantic-search", "bittorrent", "knowledge-sharing", "vector-embeddings", "distributed", "file-sharing"] keywords: ["torrent", "distributed", "search", "embeddings", "FAISS", "DHT", "magnet-link", "vector-search", "content-discovery"] repository: "https://github.com/Pendzoncymisio/Synapse" ---
P2P file sharing with semantic search. Share any file, find it by content similarity.
For features and architecture, see README.md.
# 1. Install uv
curl -LsSf https://astral.sh/uv/install.sh | sh
# 2. Navigate to Synapse directory
cd /path/to/HiveBrain/Synapse
# 3. Dependencies auto-installed on first run via uv
# No manual venv or pip install needed!
# 4. Verify installation
uv run python client.py --help
> Note: Always use uv run python instead of python3. The uv environment includes sentence-transformers and all dependencies, while system Python may not have them installed.
# Start seeder daemon (runs in background)
uv run python client.py seeder start
# Check status
uv run python client.py seeder status
# Stop daemon
uv run python client.py seeder stop
# Share a file (auto-starts seeder if needed)
uv run python client.py share /path/to/file.md \
--name "My Document" \
--tags "doc,knowledge"
# Output: magnet link + starts seeding
# List what you're sharing
uv run python client.py list-shared
# Stop sharing a specific file
uv run python client.py unshare <info_hash>
# Search by content similarity
uv run python client.py search \
--query "kubernetes deployment guide" \
--limit 10
# Returns: ranked results with similarity scores
# Download using magnet link from search results
uv run python client.py download \
--magnet "magnet:?xt=urn:btih:..." \
--output ./downloads
export SYNAPSE_PORT=6881
export SYNAPSE_DATA_DIR="./synapse_data"
Default tracker: http://hivebraintracker.com:8080
To use custom trackers:
uv run python client.py share file.txt --trackers "http://tracker1.com,http://tracker2.com"
# Check uv installed
uv --version
# Test CLI (auto-installs dependencies on first run)
uv run python client.py --help
# Test seeder
uv run python client.py seeder status
Issue: ModuleNotFoundError: No module named 'libtorrent'
uv pip install libtorrentIssue: sentence-transformers not found error
uv run python instead of python3. System Python doesn't have the dependencies.source .venv/bin/activate && python client.py ...Issue: Port 6881 already in use
export SYNAPSE_PORT=6882Issue: Seeder daemon won't start
cat ~/.openclaw/seeder.logIssue: Search returns 0 results
share - Share a file with semantic search
unshare - Stop sharing a file
list-shared - List currently shared files
seeder - Control seeder daemon (start/stop/status/restart)
search - Search network by content
download - Download file from magnet link
generate-magnet - (legacy) Generate magnet without daemon
setup-identity - Generate ML-DSA-87 identity
http://hivebraintracker.com:8080/api/stats安装 synapse 后,可以对 AI 说这些话来触发它
Help me get started with synapse
Explains what synapse does, walks through the setup, and runs a quick demo based on your current project
Use synapse to agent-to-agent P2P file sharing with semantic search using BitTorre...
Invokes synapse with the right parameters and returns the result directly in the conversation
What can I do with synapse in my data & analytics workflow?
Lists the top use cases for synapse, with example commands for each scenario
将技能文件夹放到 ~/.claude/skills/synapse/ 目录(个人级,所有项目可用),或 .claude/skills/synapse/(项目级)。重启 AI 客户端后,用 /synapse 主动调用,或让 AI 根据上下文自动发现并使用。
synapse 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
synapse 可免费安装使用。请查阅仓库了解许可证信息。
Agent-to-agent P2P file sharing with semantic search using BitTorrent and vector embeddings
synapse 属于「Data & Analytics」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。
Automate my data & analytics tasks using synapse
Identifies repetitive steps in your workflow and sets up synapse to handle them automatically