AI代理金融服务

CAYPO为AI代理提供基于Canton Network的银行账户服务,支持五种账户类型(支票、储蓄、信用、交易、投资),使用USDCx稳定币和Machine Payments Protocol(MPP),无需信用卡或API密钥,实现自动支付和结算。

  • by anilkaracay
  • TypeScript
  • 本地部署
  • 1 星标
  • 更新于
在 GitHub 查看 anilkaracay/Caypo

使用说明

caypo.xyz · mpp.caypo.xyz · npm · Docs · GitHub


什么是CAYPO?

人工智能代理需要为API调用、计算、数据和服务付费。但代理人不能自己持有资金、授权付款或结算交易。

CAYPO在Canton Network上为AI代理商提供了自己的银行账户。 五个账户——支票、储蓄、信贷、外汇、投资——均由USDCx稳定币和 机器支付协议(MPP) Stripe和Tempo。没有信用卡,没有API密钥,没有人在循环中。

Canton Network是由Digital Asset建立的机构区块链,由DTCC、高盛、摩根大通和法国巴黎银行支持。CAYPO是广州与代理经济之间的桥梁。

为什么是广州?

  • 默认隐私 --只有发件人和收件人才能看到付款详细信息。没有公共分类账风险。
  • 机构合规性 --戴德梁行、高盛、摩根大通、法国巴黎银行已经在广州上市。符合巴塞尔协议III。
  • USDCx(按圆圈) --机构级稳定币,1:1 USDC通过xReserve支持,通过CCTP跨链。
  • 原子和解 --在一笔交易中付款和结算。没有未决状态,没有退款。
  • 广州币奖励 --应用程序根据使用情况获得CC挖矿奖励(Cantonomics)。

快速开始

# Install the CLI
npm install -g @caypo/canton-cli

# Set up your agent wallet
caypo init

# Check balance
caypo balance

# Send USDCx
caypo send 10.00 to Bob::1220abcdef...

# Pay for an API call (auto-handles 402 flow)
caypo pay https://mpp.caypo.xyz/openai/v1/chat/completions --max-price 0.05

# Install MCP server for Claude Desktop
caypo mcp install

运作原理

sequenceDiagram
    participant Agent
    participant Gateway as CAYPO Gateway
    participant Canton as Canton Network

    Agent->>Gateway: POST /openai/v1/chat/completions
    Gateway-->>Agent: 402 Payment Required<br/>amount="0.003" currency="USDCx"
    Agent->>Canton: TransferFactory.Transfer (0.003 USDCx)
    Canton-->>Agent: { updateId, completionOffset }
    Agent->>Gateway: POST /openai/v1/chat + credential
    Gateway->>Canton: Verify transaction
    Canton-->>Gateway: Confirmed
    Gateway-->>Agent: 200 OK + Payment-Receipt + response

包裹

软件包 安装 说明
@caypo/州sdk npm i @caypo/canton-sdk 核心SDK-广州API客户端,USDCx,钱包,安全措施,MPP自动通行证
@caypo/mpp州 npm i @caypo/mpp-canton MPP的广州付款方式——接受并支付USDCx付款
@caypo/广州cli npm i -g @caypo/canton-cli CLI——36个命令:初始化、余额、发送、支付、储蓄、信用、兑换、投资
@caypo/mcp州 npx @caypo/canton-mcp MCP服务器——35个工具+20个提示,用于Claude、Cursor、Windsurf
@卡波/广州门户 npm i @caypo/canton-gateway API网关-17个服务,46个端点,按请求付费

代码示例

接受付款(服务器端):

import { cantonServer } from "@caypo/mpp-canton/server";

const server = cantonServer({
  ledgerUrl: "http://localhost:7575",
  token: process.env.CANTON_JWT,
  userId: "ledger-api-user",
  recipientPartyId: "Gateway::1220...",
  network: "mainnet",
});

const receipt = await server.verify({ credential });
// { method: "canton", reference: updateId, status: "success" }

付款(代理方):

import { CantonAgent } from "@caypo/canton-sdk";

const agent = await CantonAgent.create();
const { available } = await agent.checking.balance();

const result = await agent.mpp.pay("https://mpp.caypo.xyz/openai/v1/chat/completions", {
  method: "POST",
  body: JSON.stringify({ model: "gpt-4o", messages: [{ role: "user", content: "Hello" }] }),
  maxPrice: "0.05",
});
// result.response.status → 200
// result.receipt → { updateId, amount: "0.003", ... }

MCP集成

caypo mcp install

然后问克劳德: “我的CAYPO余额是多少?” 或 “向爱丽丝发送5 USDCx:1220…”

35工具 --余额、发送、支付、储蓄、信贷、交换、投资、保障、流量等。 20个提示 --早间简报、财务报告、安全审计、支出分析。

Gateway Services — 17 services, 46 endpoints

按请求付费访问。不需要API密钥-只需要USDCx。

服务 端点 价格
开放人工智能 聊天、嵌入、图像、音频 0.001-0.05美元
Anthropic 消息 0.01美元
fal.ai 图像生成、音频、视频 0.01-0.10美元
火爬 抓取、爬行、绘制地图、提取 0.005-0.02美元
谷歌双子星 聊天、推理、嵌入 0.005-0.02美元
格罗克 聊天、嵌入 0.001-0.005美元
困惑度 与搜索聊天 0.01美元
勇敢搜索 网络、图片、新闻、视频 0.001-0.005美元
深度求索 聊天 0.005美元
重发 批量发送电子邮件 $0.005
共同AI 聊天、嵌入、图像 0.001-0.02美元
十一实验室 TTS,语音克隆 0.02-0.05美元
开放天气 当前预测 0.001美元
谷歌地图 地理编码、地点、方向 $0.005
判断0 执行代码、语言 $0.002
重新加载 礼品卡 0.01+美元
龙虾 明信片、信件、地址验证 $0.01-$0.50

建筑

┌─────────────┐  ┌─────────────┐  ┌─────────────┐
│  MCP Server │  │     CLI     │  │   Gateway   │
│  35 tools   │  │  36 commands│  │ 17 services │
│  20 prompts │  │             │  │  46 endpts  │
└──────┬──────┘  └──────┬──────┘  └──────┬──────┘
       └────────────────┼────────────────┘
               ┌────────▼────────┐
               │ @caypo/canton-sdk│
               │                 │
               │ CantonAgent     │
               │ 5 Accounts      │
               │ Keystore (AES)  │
               │ SafeguardMgr    │
               └────────┬────────┘
                        │
               ┌────────▼────────┐
               │ @caypo/mpp-canton│
               │                 │
               │ cantonMethod    │
               │ cantonClient    │
               │ cantonServer    │
               └────────┬────────┘
                        │
               ┌────────▼────────┐
               │  Canton Network │
               │  USDCx (CIP-56) │
               │  CC · Privacy   │
               └─────────────────┘

已在Canton DevNet上验证

312 tests — 100% passing
 14 E2E tests against live Canton DevNet (Splice v0.5.12)
 35 MCP tools — all live
 20 MCP prompts — all implemented
 46 gateway endpoints — /health returns 200

跑 pnpm verify 在本地复制所有支票。

路线图

版本 功能 状态
v0.1 MPP支付方式、核心SDK、CLI(8 cmds)、MCP服务器(14个工具)、网关 完成
v0.2 储蓄、信贷、外汇、投资、35个MCP工具、36个CLI命令、代理技能、网关实时、登录页面 完成
v1.0 生产硬化,全广州主网支持 下一篇
v1.1 会话意图(流式支付、按令牌付费) 计划
v2.0 真正的DeFi协议适配器,Temple DEX集成 计划中

发展

pnpm install        # Install dependencies
pnpm build          # Build all packages
pnpm test           # Run 312 tests
pnpm test:e2e       # E2E tests (needs Canton sandbox)
pnpm verify         # Full verification suite

贡献

我们欢迎捐款。请 打开一个问题 或提交PR。请参阅 建筑.md 代码结构概述。

由Cayvox实验室建造

广州网络主网验证器。 坎顿催化剂2026-第一名得主。

许可证

双重许可 Apache 2.0 和 麻省理工学院版权所有2026 Cayvox实验室。


caypo.xyz · mpp.caypo.xyz · Canton Network · MPP Protocol