Install
openclaw skills install agent-commercial-contractClawHub Security found sensitive or high-impact capabilities. Review the scan results before using.
Enables AI agents to autonomously negotiate, sign, execute, and enforce legally binding commercial contracts with escrow, milestone payments, and dispute res...
openclaw skills install agent-commercial-contractEnglish | 中文
Tagline: The Legal Layer for Agent-to-Agent Commerce
Category: Automation / Legal Tech
Version: 1.0.0
Agent Commercial Contract is a comprehensive smart contract framework that enables AI agents to autonomously negotiate, sign, execute, and enforce commercial agreements. It provides the legal and financial infrastructure necessary for agent-to-agent commerce.
Contract Management
Agent Identity & Authentication
Escrow & Payment
Dispute Resolution
AI Agent Marketplaces Build marketplaces where AI agents can buy and sell services with automatic contract enforcement.
Multi-Agent Collaboration Enable multiple agents to work together on projects with clear terms, milestone-based payments, and automated conflict resolution.
API-as-a-Service Networks Create networks where agents monetize their APIs with usage tracking, billing automation, and SLA enforcement.
Data Exchange Platforms Build secure platforms for agents to buy/sell datasets with quality guarantees, escrow protection, and provenance tracking.
Installation:
npm install agent-commercial-contract
Basic Usage:
import AgentCommercialContract from 'agent-commercial-contract';
const sdk = new AgentCommercialContract();
// Register agents
const provider = await sdk.identity.registerAgent('Provider AI', ['data-processing']);
const consumer = await sdk.identity.registerAgent('Consumer AI', ['analytics']);
// Create contract with escrow
const result = await sdk.createContractWithEscrow(
provider.data.identity,
consumer.data.identity,
{
title: 'Data Processing Service',
service: { type: 'data-processing', specification: '...' },
payment: { amount: 5000, currency: 'USD', structure: 'milestone' },
timeline: { duration: 30 },
}
);
CLI Commands:
# Register agent
agent-contract agent register --name "My Agent" --capabilities "data-processing"
# Create contract
agent-contract contract create \
--provider agent_xxx \
--consumer agent_yyy \
--title "Service Agreement" \
--amount 1000 \
--with-escrow
# View dashboard
agent-contract dashboard --agent agent_xxx
Autonomous Agent Workflow:
class AutonomousAgent {
constructor(private sdk: AgentCommercialContract) {}
async offerService() {
await this.sdk.identity.registerAgent('My Service Bot', ['data-processing']);
}
async acceptContract(contractId: string) {
const contract = this.sdk.contracts.getContract(contractId);
if (this.canFulfill(contract)) {
const signature = this.generateSignature(contract);
await this.sdk.contracts.signContract({
contractId,
agentId: this.agentId,
signature,
credentials: this.credentials,
});
}
}
async deliverWork(contractId: string, milestoneId: string) {
await this.sdk.completeMilestoneAndPay(contractId, milestoneId, this.agentId);
}
}
Cryptographic Security:
Legal Enforceability:
Best Practices:
ContractManager:
createContract() - Create new contractsignContract() - Sign with digital signatureactivateContract() - Activate signed contractcompleteContract() - Mark as completedEscrowManager:
createEscrow() - Create escrow accountdeposit() - Deposit fundsrelease() - Release paymentrefund() - Process refundDisputeManager:
raiseDispute() - Raise disputesubmitEvidence() - Submit evidenceresolveDispute() - Resolve with rulingMIT License - Free for commercial and personal use
<a name="中文版本"></a>
标语: AI Agent 商业交易的法律层
分类: 自动化 / 法律科技
版本: 1.0.0
Agent Commercial Contract 是一个综合性智能合约框架,使 AI Agent 能够自主协商、签署、执行和强制执行商业协议。它为 Agent 之间的商业交易提供必要的法律和金融基础设施。
合同管理
Agent 身份与认证
托管与支付
纠纷解决
AI Agent 市场 构建 AI Agent 可以买卖服务的市场,具有自动合同执行功能。
多 Agent 协作 使多个 Agent 能够在项目上协作,具有明确的条款、基于里程碑的付款和自动冲突解决。
API 即服务网络 创建 Agent 将其 API 货币化的网络,具有使用跟踪、自动计费和 SLA 执行。
数据交换平台 构建 Agent 买卖数据集的安全平台,具有质量保证、托管保护和来源跟踪。
安装:
npm install agent-commercial-contract
基本用法:
import AgentCommercialContract from 'agent-commercial-contract';
const sdk = new AgentCommercialContract();
// 注册 Agent
const provider = await sdk.identity.registerAgent('提供者 AI', ['数据处理']);
const consumer = await sdk.identity.registerAgent('消费者 AI', ['分析']);
// 创建带托管的合同
const result = await sdk.createContractWithEscrow(
provider.data.identity,
consumer.data.identity,
{
title: '数据处理服务',
service: { type: 'data-processing', specification: '...' },
payment: { amount: 5000, currency: 'USD', structure: 'milestone' },
timeline: { duration: 30 },
}
);
CLI 命令:
# 注册 Agent
agent-contract agent register --name "我的 Agent" --capabilities "data-processing"
# 创建合同
agent-contract contract create \
--provider agent_xxx \
--consumer agent_yyy \
--title "服务协议" \
--amount 1000 \
--with-escrow
# 查看仪表板
agent-contract dashboard --agent agent_xxx
自主 Agent 工作流:
class AutonomousAgent {
constructor(private sdk: AgentCommercialContract) {}
async offerService() {
await this.sdk.identity.registerAgent('我的服务机器人', ['数据处理']);
}
async acceptContract(contractId: string) {
const contract = this.sdk.contracts.getContract(contractId);
if (this.canFulfill(contract)) {
const signature = this.generateSignature(contract);
await this.sdk.contracts.signContract({
contractId,
agentId: this.agentId,
signature,
credentials: this.credentials,
});
}
}
async deliverWork(contractId: string, milestoneId: string) {
await this.sdk.completeMilestoneAndPay(contractId, milestoneId, this.agentId);
}
}
加密安全:
法律可执行性:
最佳实践:
ContractManager(合同管理器):
createContract() - 创建新合同signContract() - 使用数字签名签署activateContract() - 激活已签署的合同completeContract() - 标记为已完成EscrowManager(托管管理器):
createEscrow() - 创建托管账户deposit() - 存入资金release() - 释放付款refund() - 处理退款DisputeManager(纠纷管理器):
raiseDispute() - 提出纠纷submitEvidence() - 提交证据resolveDispute() - 以裁决解决MIT 许可证 - 可免费用于商业和个人用途
为 AI Agent 提供法律和金融自主权 🤖⚖️