Skip to main content

Protocol for Recursive Scientific Modeling - A decentralized AI-powered scientific research platform

Project description

PRSM: Sovereign-Edge AI Protocol

The code goes to the data. Not the other way around.

PRSM is a decentralized protocol that turns idle consumer hardware — gaming PCs, consoles, laptops, phones — into a distributed AI compute fabric. Instead of uploading your data to a cloud provider, PRSM sends lightweight WASM mobile agents to the nodes that already have the data. The computation happens at the edge, the results come back, and nobody in between sees your query or your data.

Version 1.0.0 | PyPI | Getting Started | Architecture Spec

PyPI version License: MIT Tests MCP Tools


Why PRSM Exists

The problem: Frontier AI is a "brain in a vat" — incredibly smart, but with no hands to touch real-world data securely and no wallet to pay for its own compute. Every query you send to a centralized API is logged, stored, and potentially trained on. Meanwhile, 300 million gaming PCs sit idle 90% of the day.

The PRSM solution:

Centralized AI (today) PRSM
You upload data to their cloud WASM agents travel to the data
They see your query Zero-persistence sandbox — nothing logged
One datacenter processes everything Thousands of edge nodes work in parallel
You pay per token Hybrid pricing — commodity compute + market-rate data
Vendor lock-in Works with any LLM via MCP

The result: A network where the model is open but the computation is private. You can read every weight, but you can't see what anyone asked or what it answered.


Quick Start

# Install
pip install prsm-network

# See it work (no config needed)
prsm demo

# Check your hardware
prsm node benchmark

# Start your node
export OPENROUTER_API_KEY=your-key    # Free at openrouter.ai/keys
prsm node start

# Run a query through the full pipeline
prsm compute run --query "What causes climate change?" --budget 1.0

FTNS tokens required: PRSM's distributed compute requires FTNS tokens to pay providers. New nodes receive a 100 FTNS welcome grant. Use prsm compute quote to estimate costs first.

See the full Getting Started Guide for detailed setup.


How It Works

The 10-Ring Architecture

PRSM is built as concentric capability rings. Each ring wraps and enriches the ones inside it.

Ring Name What It Does
1 The Sandbox WASM runtime with Wasmtime — sandboxed execution with memory/time limits
2 The Courier Mobile agent dispatch — agents travel to data via P2P gossip + bidding
3 The Swarm Semantic sharding — data split by meaning, parallel map-reduce across nodes
4 The Economy Hybrid pricing — deterministic compute rates + market-rate data + 80/15/5 revenue splits
5 The Brain Agent Forge — LLM decomposes queries into WASM agent instructions
6 The Polish Production hardening — dynamic gas, RPC failover, CLI commands
7 The Vault Confidential compute — TEE abstraction + differential privacy noise
8 The Shield Model sharding — tensor parallelism + randomized pipelines + collision detection
9 The Mind NWTN training pipeline — collect traces, evaluate quality, deploy fine-tuned models
10 The Fortress Security — integrity verification, privacy budgets, hash-chained audit logs

End-to-End Flow

Researcher: prsm compute run --query "EV adoption trends in NC" --budget 10.0

  → Ring 5:  AgentForge decomposes query via LLM
  → Ring 3:  Finds relevant semantic shards by embedding similarity
  → Ring 4:  Quotes cost: compute + data + network fee
  → Ring 3:  Fans out parallel agents to shard-holding nodes
  → Ring 2:  Each agent dispatched via gossip bidding
  → Ring 1:  Executed in WASM sandbox on provider hardware
  → Ring 7:  Differential privacy noise applied
  → Ring 3:  Results aggregated when quorum met
  → Ring 4:  FTNS settled: 80% data owner / 15% compute / 5% treasury
  → Ring 9:  AgentTrace saved for NWTN fine-tuning

  ← Result returned to researcher

MCP Integration

Any LLM can use PRSM as a compute backend via the Model Context Protocol. 17 tools are exposed:

prsm mcp-server    # Start the MCP server

Configure in Claude Desktop (~/.claude/claude_desktop_config.json):

{"mcpServers": {"prsm": {"command": "python", "args": ["scripts/prsm_mcp_server.py"]}}}

Then Claude (or any MCP-compatible LLM) can:

Tool What It Does
prsm_analyze Full Ring 1-10 pipeline — query in, answer out
prsm_quote Cost estimate before committing (free)
prsm_create_agent Build custom agent with 11 data operations
prsm_dispatch_agent Execute agent on the network
prsm_decompose Preview how a query would be decomposed
prsm_upload_dataset Publish data with pricing
prsm_list_datasets Browse available datasets
prsm_search_shards Find relevant data shards
prsm_yield_estimate "What would I earn?"
prsm_stake Staking tier info
prsm_revenue_split Calculate 80/15/5 distribution
prsm_hardware_benchmark GPU, TFLOPS, tier, TEE detection
prsm_node_status Ring 1-10 health check
prsm_agent_status Check running agent
prsm_settlement_stats FTNS settlement queue
prsm_privacy_status Differential privacy budget
prsm_training_status NWTN training corpus quality

For Data Providers

Publish a dataset and earn 80% of every query against it:

prsm marketplace list-dataset \
  --title "NADA NC Vehicle Registrations 2025" \
  --dataset-id nada-nc-2025 \
  --base-fee 5.0 \
  --per-shard 0.5 \
  --shards 12 \
  --require-stake 100

Revenue split: 80% to you, 15% to compute providers, 5% to PRSM treasury.


For Compute Providers

Check what you'd earn and start providing:

prsm node benchmark                           # See your hardware tier
prsm ftns yield-estimate --hours 8 --stake 1000   # Monthly earnings estimate
prsm node start                                # Start earning

Staking tiers:

Tier Stake Yield Boost
Casual 0 FTNS 1.0x
Pledged 100 FTNS 1.25x
Dedicated 1,000 FTNS 1.5x
Sentinel 10,000 FTNS 2.0x + aggregator fees

Privacy Architecture

PRSM provides three layers of privacy by construction — not by policy:

  1. WASM Zero-Persistence — The sandbox has no filesystem, no network, no state after execution. The agent literally cannot persist data.
  2. Semantic Data Sharding — No single node holds the full dataset. Each node sees only its assigned shard.
  3. Differential Privacy — Calibrated Gaussian noise on all intermediate activations (configurable ε: 8.0 standard, 4.0 high, 1.0 maximum).

For proprietary models, tensor-parallel model sharding distributes weights across nodes so no single operator can reconstruct the model. Randomized pipeline assignment changes the topology per inference. Collision detection catches tampering.

See Confidential Compute Spec for details.


SDKs

Language Install Docs
Python pip install prsm-network SDK Guide
JavaScript npm install prsm-sdk sdks/javascript/
Go go get github.com/Ryno2390/PRSM/sdks/go@v0.37.0 sdks/go/
from prsm.sdk import PRSMClient

client = PRSMClient("http://localhost:8000")
result = await client.query("EV trends in NC", budget=10.0, privacy="standard")
quote = await client.quote("EV trends", shards=5, tier="t2")

Production Deployment

# Systemd service
sudo cp deploy/production/prsm-node.service /etc/systemd/system/
sudo cp deploy/production/prsm.env.template /opt/prsm/.env
sudo systemctl enable prsm-node && sudo systemctl start prsm-node

# Docker (2-node demo)
docker-compose -f docker/docker-compose.demo.yml up

See Deployment Guide for full instructions.


Project Stats

Metric Value
Version 1.0.0
Tests 479 passing
MCP Tools 17
SDKs Python, JavaScript, Go
FTNS Token Base mainnet
Bootstrap wss://bootstrap1.prsm-network.com:8765
License MIT

Documentation

Document Description
Getting Started Install → configure → first query in 5 minutes
Sovereign-Edge AI Spec Phase 1 architecture (Rings 1-6)
Confidential Compute Spec Phase 2 architecture (Rings 7-10)
Implementation Status Subsystem status and test coverage
Deployment Guide Production deployment walkthrough
SDK Developer Guide Building on PRSM

Contributing

git clone https://github.com/Ryno2390/PRSM.git
cd PRSM && pip install -e ".[dev]"
pytest --timeout=120    # Run test suite

See CONTRIBUTING.md for guidelines.


License: MIT | Website: prsm-network.com | PyPI: prsm-network

Project details


Release history Release notifications | RSS feed

This version

1.2.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

prsm_network-1.2.0.tar.gz (5.9 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

prsm_network-1.2.0-py3-none-any.whl (5.0 MB view details)

Uploaded Python 3

File details

Details for the file prsm_network-1.2.0.tar.gz.

File metadata

  • Download URL: prsm_network-1.2.0.tar.gz
  • Upload date:
  • Size: 5.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for prsm_network-1.2.0.tar.gz
Algorithm Hash digest
SHA256 4a4a44440dda7925d06208896020cb7a6d7a00a6f4c6c736473ea4bf79d10486
MD5 e94e62ad2e95c97a1dc6fe4c915fb87f
BLAKE2b-256 eb8e5f1789c3257b1c5d60a94a28e7ca91505641950ae4e4a2f144f47a73efa9

See more details on using hashes here.

File details

Details for the file prsm_network-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: prsm_network-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 5.0 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for prsm_network-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 52463501b444758066bc3d3d988b9a457bc665f976a8bfa59c095289f8743bd8
MD5 5f4c48ca4404088c69372c1aee25d175
BLAKE2b-256 b0628e5656dbc31024808bf81b31f7995e83c830c5f49337fcc64fc2d05e1ee1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page