Claude Market
A decentralized, peer-to-peer marketplace for Claude AI capacity trading with full Anthropic ToS compliance.
๐ช Overview
Claude Market enables secure, decentralized trading of Claude AI compute capacity using ruv tokens. Built on the Synaptic Neural Mesh network, it provides a compliant way for Claude Max subscribers to share their capacity through a peer compute federation model.
โจ Key Features
- ๐ Anthropic ToS Compliant - No API key sharing, peer-orchestrated execution
- ๐ฆ Secure Escrow - Multi-signature escrow with automatic settlement
- ๐ฏ First-Accept Auctions - Fast, competitive pricing mechanisms
- ๐ Reputation System - SLA tracking and provider trust scores
- ๐ก๏ธ Privacy-Preserving - Encrypted task payloads and secure execution
- ๐พ SQLite Persistence - Local data storage with full transaction history
๐ Quick Start
[]
= "0.1"
= { = "1.0", = ["full"] }
use ;
async
๐ Compliance & Security
Claude Market operates as a peer compute federation, not a resale service:
- โ No API Key Sharing - Each participant uses their own Claude subscription
- โ Local Execution - Tasks run locally on provider's Claude account
- โ Voluntary Participation - Full user control with opt-in mechanisms
- โ Token Rewards - RUV tokens reward contribution, not access purchase
๐ Core Components
Wallet System
- SQLite-based token storage
- Cryptographically signed transfers
- Escrow lock/unlock mechanisms
- Complete transaction history
Escrow Service
- Multi-signature contract support
- Time-based automatic release
- Dispute resolution system
- Byzantine fault tolerance
Market Engine
- First-accept auction model
- Real-time price discovery
- Reputation-weighted matching
- SLA enforcement
Reputation Tracker
- Performance-based scoring
- Historical success rates
- Provider trust metrics
- Automatic reputation updates
๐ ๏ธ Architecture
โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ
โ Wallet API โ โ Escrow Service โ โ Market Engine โ
โโโโโโโโโโโโโโโโโโโค โโโโโโโโโโโโโโโโโโโค โโโโโโโโโโโโโโโโโโโค
โ โข Balance Mgmt โ โ โข Multi-sig โ โ โข Auctions โ
โ โข Transfers โ โ โข Auto-release โ โ โข Price Disc. โ
โ โข Escrow Locks โ โ โข Disputes โ โ โข Order Match โ
โ โข History โ โ โข Timeouts โ โ โข SLA Track โ
โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ
โ โ โ
โโโโโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโ
โ
โโโโโโโโโโโโโโโโโโโ
โ SQLite Database โ
โโโโโโโโโโโโโโโโโโโค
โ โข Transactions โ
โ โข Escrows โ
โ โข Orders โ
โ โข Reputation โ
โโโโโโโโโโโโโโโโโโโ
๐งช Examples
Provider Mode - Offering Capacity
use ;
// Create capacity offer
let offer = new
.price // 50 ruv tokens
.duration
.description
.max_concurrent_tasks
.build;
market.create_offer.await?;
Client Mode - Bidding for Capacity
use ;
// Submit encrypted task bid
let task = new;
let bid = new
.task
.max_price
.timeout
.build;
let result = market.submit_bid.await?;
Escrow Operations
// Create escrow for secure trading
let escrow_id = market.escrow
.create_escrow.await?;
// Release escrow after successful completion
market.escrow.release.await?;
๐ Performance
- Auction Settlement: <500ms average
- Database Operations: <10ms for typical queries
- Memory Usage: ~32MB per market instance
- Concurrent Orders: 1000+ supported
- Network Efficiency: 73% price discovery accuracy
๐ค Contributing
We welcome contributions to Claude Market! Areas of interest:
- ๐ Security Audits - Cryptographic and smart contract review
- โก Performance - Optimization of auction and matching algorithms
- ๐งช Testing - Additional test scenarios and edge cases
- ๐ Documentation - Examples, tutorials, and API docs
๐ License
Licensed under either of:
- Apache License, Version 2.0 (LICENSE-APACHE)
- MIT License (LICENSE-MIT)
at your option.
๐ Related Projects
- Synaptic Neural Mesh - Distributed neural network framework
- synaptic-qudag-core - Quantum-resistant DAG networking
- synaptic-mesh-cli - Command-line interface
Legal Notice: Claude Market facilitates peer compute federation, not API access resale. All participants must maintain their own Claude subscriptions and comply with Anthropic's Terms of Service.