| Crates.io | claude_market |
| lib.rs | claude_market |
| version | 0.1.1 |
| created_at | 2025-07-13 15:23:28.196601+00 |
| updated_at | 2025-07-13 15:23:28.196601+00 |
| description | P2P marketplace for trading Claude API tokens with escrow and reputation |
| homepage | |
| repository | https://github.com/ruvnet/Synaptic-Mesh |
| max_upload_size | |
| id | 1750588 |
| size | 341,250 |
A decentralized, peer-to-peer marketplace for Claude AI capacity trading with full Anthropic ToS compliance.
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.
[dependencies]
claude_market = "0.1"
tokio = { version = "1.0", features = ["full"] }
use claude_market::{ClaudeMarket, MarketConfig};
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
// Initialize market with local SQLite database
let config = MarketConfig::default();
let market = ClaudeMarket::new(config).await?;
// Check wallet balance
let balance = market.wallet().get_balance().await?;
println!("RUV Token Balance: {}", balance);
// Create a compute capacity offer
market.create_offer(
100, // 100 ruv tokens
chrono::Duration::hours(1), // 1 hour availability
"High-performance Claude Max capacity".to_string()
).await?;
Ok(())
}
Claude Market operates as a peer compute federation, not a resale service:
โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ โโโโโโโโโโโโโโโโโโโ
โ 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 โ
โโโโโโโโโโโโโโโโโโโ
use claude_market::{ClaudeMarket, OfferBuilder};
// Create capacity offer
let offer = OfferBuilder::new()
.price(50) // 50 ruv tokens
.duration(chrono::Duration::hours(2))
.description("Premium Claude Max with 2-hour availability")
.max_concurrent_tasks(3)
.build();
market.create_offer(offer).await?;
use claude_market::{BidBuilder, TaskPayload};
// Submit encrypted task bid
let task = TaskPayload::new("Analyze this dataset for trends");
let bid = BidBuilder::new()
.task(task.encrypt(&provider_pubkey)?)
.max_price(75)
.timeout(chrono::Duration::minutes(30))
.build();
let result = market.submit_bid(bid).await?;
// Create escrow for secure trading
let escrow_id = market.escrow()
.create_escrow(
provider_peer_id,
client_peer_id,
100, // amount
chrono::Duration::hours(1) // timeout
).await?;
// Release escrow after successful completion
market.escrow().release(escrow_id, &signatures).await?;
We welcome contributions to Claude Market! Areas of interest:
Licensed under either of:
at your option.
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.