# Send synapse to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "synapse",
    "name": "synapse",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/Pendzoncymisio/synapse",
    "canonicalUrl": "https://clawhub.ai/Pendzoncymisio/synapse",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/synapse",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=synapse",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "HEARTBEAT.md",
      "README.md",
      "SKILL.md",
      "client.py",
      "pyproject.toml",
      "requirements.txt"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "synapse",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-12T17:59:02.358Z",
      "expiresAt": "2026-05-19T17:59:02.358Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=synapse",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=synapse",
        "contentDisposition": "attachment; filename=\"synapse-0.2.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "synapse"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/synapse"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/synapse",
    "downloadUrl": "https://openagent3.xyz/downloads/synapse",
    "agentUrl": "https://openagent3.xyz/skills/synapse/agent",
    "manifestUrl": "https://openagent3.xyz/skills/synapse/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/synapse/agent.md"
  }
}
```
## Documentation

### Synapse Protocol - Installation & Usage

P2P file sharing with semantic search. Share any file, find it by content similarity.

For features and architecture, see README.md.

### Prerequisites

Python: 3.10 or higher
uv: Package manager (install)

### Quick Install

# 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.

### Seeder Daemon Control

# 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 Files

# 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

### Stop Sharing

# 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 Network

# Search by content similarity
uv run python client.py search \\
  --query "kubernetes deployment guide" \\
  --limit 10

# Returns: ranked results with similarity scores

### Download Files

# Download using magnet link from search results
uv run python client.py download \\
  --magnet "magnet:?xt=urn:btih:..." \\
  --output ./downloads

### Environment Variables

export SYNAPSE_PORT=6881
export SYNAPSE_DATA_DIR="./synapse_data"

### Tracker Configuration

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"

### 🔍 Testing Installation

# 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

### 🆘 Troubleshooting

Issue: ModuleNotFoundError: No module named 'libtorrent'

Solution: Add to pyproject.toml or install: uv pip install libtorrent

Issue: sentence-transformers not found error

Solution: Use uv run python instead of python3. System Python doesn't have the dependencies.
Alternative: Manually activate: source .venv/bin/activate && python client.py ...

Issue: Port 6881 already in use

Solution: Change port: export SYNAPSE_PORT=6882

Issue: Seeder daemon won't start

Solution: Check logs: cat ~/.openclaw/seeder.log

Issue: Search returns 0 results

Solution: Ensure file was shared WITH embedding registration (check tracker logs)

### 📚 Available Commands

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

### 📖 Next Steps

Read README.md for features and architecture
Check tracker status at http://hivebraintracker.com:8080/api/stats
Join the network and start sharing!
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: Pendzoncymisio
- Version: 0.2.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-12T17:59:02.358Z
- Expires at: 2026-05-19T17:59:02.358Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/synapse)
- [Send to Agent page](https://openagent3.xyz/skills/synapse/agent)
- [JSON manifest](https://openagent3.xyz/skills/synapse/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/synapse/agent.md)
- [Download page](https://openagent3.xyz/downloads/synapse)