SkillHub

decentralized-agent-cloud

v1.0.0

Decentralized compute and data marketplace for AI agents with spot pricing | 去中心化 AI Agent 计算和数据市场,支持 Spot 动态定价

Sourced from ClawHub, Authored by Justin Liu

Installation

Please help me install the skill `decentralized-agent-cloud` from SkillHub official store. npx skills add ZhenStaff/decentralized-agent-cloud

Decentralized Agent Cloud

去中心化 Agent 云平台

Decentralized compute and data marketplace for AI agents with spot pricing

为 AI Agent 提供去中心化计算和数据市场,支持动态 Spot 定价


🌟 What is This? | 这是什么?

English: A peer-to-peer marketplace where AI agents can discover and execute computational skills (video generation, data processing, ML inference, etc.) with real-time spot pricing. Like Uber for AI compute - agents can instantly buy computing resources at market prices.

中文: 一个点对点的市场平台,AI Agent 可以发现和执行计算技能(视频生成、数据处理、机器学习推理等),使用实时 Spot 定价。就像 Uber 一样,但用于 AI 计算 - Agent 可以按市场价格即时购买计算资源。


🎯 Core Features | 核心功能

English:

  • 🤖 Agent-First Design - Built for autonomous AI agents
  • 💰 Spot Pricing - Dynamic pricing saves 60-90% vs on-demand
  • 🔄 Decentralized - No single point of failure
  • 📦 Skill Marketplace - Discover and execute 100+ pre-built skills
  • Instant Execution - Smart matching finds optimal provider in <1s
  • 💳 Pay-Per-Second - Granular billing, no minimum commitment

中文:

  • 🤖 AI Agent 优先设计 - 专为自主 AI Agent 构建
  • 💰 Spot 动态定价 - 相比按需定价节省 60-90% 成本
  • 🔄 去中心化 - 无单点故障
  • 📦 技能市场 - 发现并执行 100+ 预构建技能
  • 即时执行 - 智能匹配在 1 秒内找到最优提供者
  • 💳 按秒计费 - 精细计费,无最低承诺

🚀 Quick Start | 快速开始

Installation | 安装

English:

# Via npm
npm install openclaw-decentralized-agent-cloud

# Via ClawHub
clawhub install decentralized-agent-cloud

中文:

# 通过 npm
npm install openclaw-decentralized-agent-cloud

# 通过 ClawHub
clawhub install decentralized-agent-cloud

Usage Example | 使用示例

English:

import { createAgentClient } from 'openclaw-decentralized-agent-cloud';

// Initialize client
const client = createAgentClient({
  apiKey: 'your-api-key',
  agentId: 'my-agent',
});

// Execute video generation skill
const task = await client.executeSkill('video-generator', {
  script: 'AI is changing the world. Three breakthroughs happened today.',
  voice: 'nova',
  speed: 1.15,
});

// Wait for result
const result = await client.waitForTask(task.id);
console.log(result.output.videoUrl);
// Output: https://storage.agent-cloud.io/videos/abc123.mp4

中文:

import { createAgentClient } from 'openclaw-decentralized-agent-cloud';

// 初始化客户端
const client = createAgentClient({
  apiKey: 'your-api-key',
  agentId: 'my-agent',
});

// 执行视频生成技能
const task = await client.executeSkill('video-generator', {
  script: 'AI 正在改变世界。今天发生了三个突破。',
  voice: 'nova',
  speed: 1.15,
});

// 等待结果
const result = await client.waitForTask(task.id);
console.log(result.output.videoUrl);
// 输出: https://storage.agent-cloud.io/videos/abc123.mp4

💡 Use Cases | 使用场景

English:

1. AI Video Generation

// Generate professional short videos from text
const video = await client.executeSkill('video-generator', {
  script: 'Your marketing message here...',
  voice: 'nova',
});

2. Data Processing

// Process large datasets with auto-scaling compute
const result = await client.executeSkill('data-processor', {
  dataset: 's3://my-bucket/data.csv',
  operation: 'analyze',
  resourceRequirements: {
    compute: { type: 'GPU', memory: 16 }
  }
});

3. ML Model Inference

// Run inference on available GPU clusters
const prediction = await client.executeSkill('llm-inference', {
  model: 'gpt-4',
  prompt: 'Explain quantum computing',
  maxPrice: 0.50 // bid up to $0.50/hour
});

中文:

1. AI 视频生成

// 从文本生成专业短视频
const video = await client.executeSkill('video-generator', {
  script: '您的营销信息...',
  voice: 'nova',
});

2. 数据处理

// 使用自动扩展计算处理大型数据集
const result = await client.executeSkill('data-processor', {
  dataset: 's3://my-bucket/data.csv',
  operation: 'analyze',
  resourceRequirements: {
    compute: { type: 'GPU', memory: 16 }
  }
});

3. ML 模型推理

// 在可用的 GPU 集群上运行推理
const prediction = await client.executeSkill('llm-inference', {
  model: 'gpt-4',
  prompt: '解释量子计算',
  maxPrice: 0.50 // 出价最高 $0.50/小时
});

📊 Pricing Comparison | 价格对比

English:

Traditional Cloud (AWS): - On-Demand GPU: $3.06/hour - Reserved GPU (1 year): $1.50/hour

Decentralized Agent Cloud: - Spot GPU: $0.30-1.20/hour (60-90% savings) - Dynamic pricing based on real-time market conditions

Resource Traditional Spot Price Savings
CPU (4 cores, 8GB) $0.20/hr $0.05/hr 75%
GPU (V100 16GB) $3.06/hr $0.50/hr 84%
GPU (A100 40GB) $5.50/hr $1.20/hr 78%

中文:

传统云(AWS): - 按需 GPU:$3.06/小时 - 预留 GPU(1年):$1.50/小时

去中心化 Agent 云: - Spot GPU:$0.30-1.20/小时(节省 60-90%) - 基于实时市场状况的动态定价

资源 传统云 Spot 价格 节省
CPU (4核, 8GB) $0.20/时 $0.05/时 75%
GPU (V100 16GB) $3.06/时 $0.50/时 84%
GPU (A100 40GB) $5.50/时 $1.20/时 78%

🏗️ Architecture | 架构

English:

┌─────────────────────────────────────────────────┐
│       DECENTRALIZED AGENT CLOUD                 │
│                                                 │
│  ┌──────────────┐  ┌──────────────┐           │
│  │Skill Registry│  │Spot Pricing  │           │
│  │              │  │   Engine     │           │
│  │• Discovery   │  │• Supply/     │           │
│  │• Validation  │  │  Demand      │           │
│  └──────────────┘  └──────────────┘           │
│                                                 │
│  ┌──────────────┐  ┌──────────────┐           │
│  │Task Scheduler│  │Resource      │           │
│  │              │  │Marketplace   │           │
│  │• Matching    │  │• Providers   │           │
│  │• Execution   │  │• Consumers   │           │
│  └──────────────┘  └──────────────┘           │
└─────────────────────────────────────────────────┘
         ▲                    ▲
         │                    │
    ┌────┴────┐         ┌─────┴─────┐
    │ Agents  │         │ Providers │
    │(Buyers) │         │ (Sellers) │
    └─────────┘         └───────────┘

Core Components: 1. Skill Registry - Central catalog of available skills 2. Spot Pricing Engine - Dynamic pricing based on supply/demand 3. Task Scheduler - Matches tasks with optimal providers 4. Agent SDK - Client library for easy integration

中文:

┌─────────────────────────────────────────────────┐
│       去中心化 AGENT 云                         │
│                                                 │
│  ┌──────────────┐  ┌──────────────┐           │
│  │技能注册表    │  │Spot 定价     │           │
│  │              │  │   引擎       │           │
│  │• 发现        │  │• 供需        │           │
│  │• 验证        │  │  关系        │           │
│  └──────────────┘  └──────────────┘           │
│                                                 │
│  ┌──────────────┐  ┌──────────────┐           │
│  │任务调度器    │  │资源          │           │
│  │              │  │市场          │           │
│  │• 匹配        │  │• 提供者      │           │
│  │• 执行        │  │• 消费者      │           │
│  └──────────────┘  └──────────────┘           │
└─────────────────────────────────────────────────┘
         ▲                    ▲
         │                    │
    ┌────┴────┐         ┌─────┴─────┐
    │ Agent   │         │ 提供者    │
    │(买家)   │         │ (卖家)    │
    └─────────┘         └───────────┘

核心组件: 1. 技能注册表 - 可用技能的中心目录 2. Spot 定价引擎 - 基于供需的动态定价 3. 任务调度器 - 将任务匹配到最优提供者 4. Agent SDK - 便于集成的客户端库


📦 Available Skills | 可用技能

English:

Category Skill Description Base Price
Video video-generator Text-to-video with TTS + effects $0.10/video
Audio transcription Speech-to-text (Whisper) $0.006/min
Audio tts-synthesis Text-to-speech (11 voices) $0.015/1K chars
Image image-generator AI image generation (DALL-E) $0.02/image
Text llm-inference LLM inference (GPT-4, Claude) $0.50/hour
ML model-training Custom model training Spot price
Data data-pipeline ETL and analytics Spot price

中文:

类别 技能 描述 基础价格
视频 video-generator 文本转视频(TTS + 特效) $0.10/视频
音频 transcription 语音转文本(Whisper) $0.006/分钟
音频 tts-synthesis 文本转语音(11种声音) $0.015/1K字符
图像 image-generator AI 图像生成(DALL-E) $0.02/图像
文本 llm-inference LLM 推理(GPT-4, Claude) $0.50/小时
ML model-training 自定义模型训练 Spot 价格
数据 data-pipeline ETL 和分析 Spot 价格

🔑 Key Concepts | 关键概念

English:

Skills Executable capabilities (video generation, ML inference, data processing) that agents can discover and execute.

Spot Pricing Dynamic pricing based on real-time supply and demand. Prices fluctuate like cloud spot instances but can be 60-90% cheaper than on-demand.

Task Scheduler Matches tasks with providers based on: - Resource requirements - Budget constraints - Provider reputation - Current availability

Resource Providers Anyone can monetize idle compute by registering as a provider. The platform handles task routing, payment processing, and reputation tracking.

中文:

技能 可执行的能力(视频生成、ML 推理、数据处理),Agent 可以发现和执行。

Spot 定价 基于实时供需的动态定价。价格像云 Spot 实例一样波动,但比按需定价便宜 60-90%。

任务调度器 根据以下条件将任务匹配到提供者: - 资源需求 - 预算约束 - 提供者声誉 - 当前可用性

资源提供者 任何人都可以通过注册为提供者来变现闲置计算资源。平台处理任务路由、支付处理和声誉跟踪。


🛠️ For Developers | 开发者指南

Register Your Own Skill | 注册自己的技能

English:

import { skillRegistry } from 'openclaw-decentralized-agent-cloud/core';

// Define your skill
const mySkill = {
  id: 'image-classifier',
  name: 'Image Classification',
  version: '1.0.0',
  category: 'ml',
  inputSchema: {
    type: 'object',
    properties: {
      imageUrl: { type: 'string' }
    }
  },
  outputSchema: {
    type: 'object',
    properties: {
      label: { type: 'string' },
      confidence: { type: 'number' }
    }
  },
  pricing: {
    strategy: 'spot',
    basePrice: 0.05
  }
};

// Register
await skillRegistry.registerSkill(mySkill);

中文:

import { skillRegistry } from 'openclaw-decentralized-agent-cloud/core';

// 定义你的技能
const mySkill = {
  id: 'image-classifier',
  name: '图像分类',
  version: '1.0.0',
  category: 'ml',
  inputSchema: {
    type: 'object',
    properties: {
      imageUrl: { type: 'string' }
    }
  },
  outputSchema: {
    type: 'object',
    properties: {
      label: { type: 'string' },
      confidence: { type: 'number' }
    }
  },
  pricing: {
    strategy: 'spot',
    basePrice: 0.05
  }
};

// 注册
await skillRegistry.registerSkill(mySkill);

Become a Resource Provider | 成为资源提供者

English:

import { taskScheduler } from 'openclaw-decentralized-agent-cloud/core';

// Register your compute resources
await taskScheduler.registerProvider({
  id: 'my-provider',
  name: 'My GPU Server',
  specs: {
    type: 'GPU',
    gpuModel: 'RTX 4090',
    gpuMemory: 24,
    cores: 16,
    memory: 64
  },
  pricing: {
    strategy: 'spot',
    basePrice: 0.80 // USD/hour
  }
});

中文:

import { taskScheduler } from 'openclaw-decentralized-agent-cloud/core';

// 注册你的计算资源
await taskScheduler.registerProvider({
  id: 'my-provider',
  name: '我的 GPU 服务器',
  specs: {
    type: 'GPU',
    gpuModel: 'RTX 4090',
    gpuMemory: 24,
    cores: 16,
    memory: 64
  },
  pricing: {
    strategy: 'spot',
    basePrice: 0.80 // 美元/小时
  }
});

🔐 Security & Trust | 安全与信任

English:

For Agents (Buyers) - Escrow payments - Funds locked until completion - Reputation system - Provider ratings - Refund policy - Get money back if task fails

For Providers (Sellers) - Guaranteed payment - No chargebacks - Sandboxed execution - Code can't escape - Rate limiting - Prevent abuse

For Platform - Encryption - All data in transit - Auditing - Complete transaction logs - Compliance - GDPR, SOC 2

中文:

对 Agent(买家) - 托管支付 - 资金锁定直到完成 - 声誉系统 - 提供者评分 - 退款政策 - 任务失败退款

对提供者(卖家) - 保证支付 - 无退单 - 沙箱执行 - 代码无法逃逸 - 速率限制 - 防止滥用

对平台 - 加密 - 所有传输数据加密 - 审计 - 完整的交易日志 - 合规 - GDPR, SOC 2


📚 Resources | 资源

English:

  • GitHub: https://github.com/openclaw/openclaw-decentralized-agent-cloud
  • npm: https://www.npmjs.com/package/openclaw-decentralized-agent-cloud
  • Documentation: See README.md in the repository
  • Examples: Check examples/complete-demo.ts

中文:

  • GitHub: https://github.com/openclaw/openclaw-decentralized-agent-cloud
  • npm: https://www.npmjs.com/package/openclaw-decentralized-agent-cloud
  • 文档: 查看仓库中的 README.md
  • 示例: 查看 examples/complete-demo.ts

🎯 Roadmap | 路线图

English:

Phase 1: Core Platform (Current) ✅ - Skill registry - Spot pricing engine - Task scheduler - Agent SDK - Video generation skill

Phase 2: Enhanced Features (Q2 2026) 🚧 - Web dashboard - Real HTTP API - More skills (audio, image, ML) - Provider onboarding

Phase 3: Full Decentralization (Q4 2026) 🔮 - Blockchain settlement - IPFS storage - DAO governance

中文:

阶段 1:核心平台(当前) ✅ - 技能注册表 - Spot 定价引擎 - 任务调度器 - Agent SDK - 视频生成技能

阶段 2:增强功能(2026年第2季度) 🚧 - Web 控制台 - 真实 HTTP API - 更多技能(音频、图像、ML) - 提供者入驻

阶段 3:完全去中心化(2026年第4季度) 🔮 - 区块链结算 - IPFS 存储 - DAO 治理


📄 License | 许可证

MIT License


🤝 Contributing | 贡献

English: We welcome contributions! Create new skills, improve documentation, or add features.

中文: 我们欢迎贡献!创建新技能、改进文档或添加功能。


Built with ❤️ for the autonomous agent economy

为自主 Agent 经济构建 ❤️