Note
An early MVP of the Worker application is included in /peerhost_app as a preview of upcoming work,
demonstrating continued progress and showcasing planned scope for PeerHost.
PeerHost is a next-generation serverless platform that evolves the cloud in two revolutionary ways:
- Unstoppable Execution: A distributed, censorship-resistant worker network coordinated on Polygon.
- Native Monetization: The first platform where developers can price their API endpoints using the x402 Protocol.
Workers maintain persistent WebSocket connections to Polygon RPC endpoints and listen for ExecutionRequest events emitted by the ExecutionCoordinator contract. Upon an event, all workers execute the serverless function inside isolated sandboxes and submit results on-chain along with proofs. The contract rewards the fastest valid worker, enabling a trust-minimized, performance-driven execution model.
While PeerHost is the native execution layer for the Agentic Economy, its open monetization standard is universally compatible. Whether accessed by an AI Agent, a dApp, or a human developer, PeerHost gets you paid.
Protocol Economics & Sustainability
Currently, PeerHost is subsidized—users can deploy and execute serverless functions for free, with the
ExecutionCoordinatortreasury (already funded) covering worker fees. Also the payment from the paid endpoints gets directly into theOwnerswallet.Future Roadmap: We will transition to a fully self-sustaining system:
- Free Tier: Users will continue to enjoy a free execution quota.
- Treasury Funding: To exceed free limits, users will deposit funds directly into the
ExecutionCoordinator.soltreasury.- No Middlemen: Smart contracts handle all coordination. You fund the treasury, and the treasury pays the workers directly.
PeerHost treats every function call as a potential transaction.
- x402 Protocol: Built-in specialized header support for HTTP 402 Payment Required.
- Agent-Optimized: AI Agents can autonomously negotiate, pay for, and consume APIs using the Model Context Protocol (MCP).
- Human-Compatible: Works seamlessly with standard dApps and wallets.
Code does not run on a single server. It runs on a global grid of independent workers.
- No Single Point of Failure: Request routing is dynamic and redundant.
- Censorship Resistance: Code cannot be taken down by a single entity.
- Auto-Healing: If one node goes offline, another node takes its place automatically.
Every function execution happens inside an ephemeral, isolated sandbox:
- Docker or microVM based isolation
- Strict CPU and memory limits
- Network access only when explicitly allowed
- Filesystem isolation by default
Workers cannot persist state between executions and never receive long-lived secrets.
All function code is bundled and stored on IPFS:
- Content-addressed
- Immutable
- Globally retrievable
- Verifiable by all workers
This guarantees that the code executed at runtime is exactly the code the developer deployed, without modification.
Execution is coordinated through the Execution Coordinator smart contract on Polygon Amoy Testnet:
- Service Registration: Functions and their prices are registered on-chain.
- Payment Settlement: Uses x402 to gate execution until payment is verified.
- Result Verification: Dispute resolution and slashing happens on Polygon.
Workers compete to execute requests and must submit cryptographic proofs of result correctness. Honest execution is rewarded, and malicious behavior can be penalized via staking and slashing mechanisms.
This creates a self-incentivizing compute network.
Landing Page |
Deployment |
Configuration |
All Projects |
Worker Node |
Earnings |
Documentation |
Agentic AI Integration |
PeerHost operates as a five-layer system:
-
Application Layer Clients interact using ordinary HTTP/REST requests.
-
Gateway Layer Authenticates, validates, canonicalizes requests and triggers on-chain execution.
-
Blockchain Coordination Layer (Polygon Amoy) Smart contracts coordinate job dispatch, result submission, and incentive settlement.
-
Worker Network Distributed worker nodes execute functions inside secure sandboxes.
-
Storage Layer (IPFS) Immutable storage for bundled function code and static assets.
End-users experience a normal low-latency API. Under the hood, execution is fully decentralized.
PeerHost is designed to feel as simple as modern serverless platforms.
1. Connect GitHub repository (or public repo URL)
2. Add environment variables
3. Deploy
Behind the scenes, PeerHost:
- Extracts your
/functionsdirectory - Bundles each function using deterministic builds
- Uploads bundles to IPFS
- Registers execution metadata
- Makes the functions live instantly
Your functions become immediately accessible at:
https://<wallet>.peerhost.com/<project>/<function>
No servers to provision. No scaling rules to configure. No cold starts.
- API Backends — Fast, globally available REST APIs
- Event & Webhook Processing — Stripe, Twilio, GitHub, etc.
- dApp Backends — Off-chain compute for Web3 frontends
- Agent Skills — Monetized tools and services for AI Agents (e.g. "Search Web", "Analyze Data")
- Automation & Job Runners — Deterministic background execution
- Micro-services at Internet Scale — Without infrastructure overhead
PeerHost is a two-sided network:
Deploy backend logic without running any servers.
Contribute compute power to the network and earn rewards by:
- Running a PeerHost worker node
- Listening for on-chain execution events
- Executing functions in secure sandboxes
- Submitting verifiable results on-chain
Workers stake collateral to participate and are rewarded for correct execution, establishing economic security for the network.
PeerHost is:
- A serverless backend runtime
- A blockchain-coordinated compute network
- A developer infrastructure protocol
- An Agentic Payment Gateway
PeerHost is not:
- A traditional cloud hosting provider
- A centralized serverless platform
- A DeFi product
- A storage-only protocol
- Execution: ✅ On-chain coordinated
- Storage: ✅ IPFS-backed
- Workers: ✅ Distributed sandboxed runtime
- Gateway: ✅ HTTP + WebSocket orchestration
You can participate as both a user and a contributor:
- Start Building — Deploy your first decentralized backend
- Run a Worker — Contribute to the execution layer and earn rewards
- Contribute to the Protocol — Open-source, community-driven development
PeerHost is the missing infrastructure layer between Web2 backends and Web3 trust guarantees. It brings serverless execution into the decentralized era — without sacrificing developer experience, performance, or security.
PeerHost — The Backend for the Unstoppable Web.







