Kite Agent Smart Wallet Permissionless Protocol

为 AI 代理提供可模块化、权限控制的智能钱包,支持会话密钥与支出限额。

已扫描
适合谁
AI 开发者、去中心化应用开发者
不适合谁
无区块链开发经验的普通用户、不使用 Kite AI 网络的用户
国内可用性
需网络配置。可能需要网络配置或第三方服务可访问。
安装难度
中等(★★☆)。基于终端操作、依赖、API Key 和本地环境要求的初步判断。

安装与下载

openclaw skills install @nihaovand/kite-agent-smart-wallet-permissionless-protocol

Skill 说明

命令、参数、文件名以原文为准

Kite AI Agent 智能钱包无许可协议

版本:1.0.0

基于 Kite AI 测试网构建

专为 AI 代理设计的模块化智能钱包协议

概述

Kite AI 代理钱包协议使 AI 代理能够在 Kite AI 网络上创建和管理智能钱包。该协议受 Biconomy Nexus 设计启发,为自主运行的 AI 代理提供可扩展、安全的钱包基础设施。

架构

┌─────────────────────────────────────────────────────────────┐
│              AgentSmartWalletFactory                         │
│         (钱包工厂 - 批量创建)                               │
└─────────────────────┬───────────────────────────────────────┘
                      │
                      ▼
┌─────────────────────────────────────────────────────────────┐
│              AgentSmartWallet                                │
│  - owner: 人类用户(根权限)                                 │
│  - agent: AI 代理(委托权限)                                │
│  - sessionKeys: 临时密钥(用于自动化操作)                   │
└─────────────────────┬───────────────────────────────────────┘
                      │
          ┌───────────┴───────────┐
          ▼                       ▼
┌─────────────────┐    ┌─────────────────┐
│SpendingLimit    │    │SessionKey       │
│Module           │    │Module           │
└─────────────────┘    └─────────────────┘

核心功能

  • 🔐 会话密钥 - 具有细粒度权限的临时授权密钥
  • 💰 支出限额 - 可编程的交易额度限制
  • 🧩 模块化架构 - 可扩展的模块系统
  • 🔄 迭代能力 - 支持升级与新模块添加

安全特性

  1. 分层权限机制:所有者 > 代理 > 会话密钥
  2. 限额保护:交易金额不可超过设定上限
  3. 可撤销性:所有者可随时撤销会话密钥
  4. 模块隔离:功能模块可独立替换

已部署合约(测试网)

合约名称地址
ModuleRegistry0xfdf654b7dDbdFf0C7ec9017Aece166a75a5197B5
SpendingLimitModule0x00E593eA476DfC0b22d9DF0A8fe436e5323Ae05F
SessionKeyModule0x5b6C45EC7C9d7C688413d6bB2CC3B0A35f5B79B8
AgentSmartWalletFactory0x0fa9F878B038DE435b1EFaDA3eed1859a6Dc098a

网络配置

测试网(Ozone)

  • 链 ID:2368
  • RPC 地址:https://rpc-testnet.gokite.ai
  • 浏览器:https://testnet.kitescan.ai
  • 代币发放器:https://faucet.gokite.ai

主网

  • 链 ID:2366
  • RPC 地址:https://rpc.gokite.ai
  • 浏览器:https://kitescan.ai

使用方法

1. 创建钱包

const factory = await ethers.getContractFactory("AgentSmartWalletFactory");
const wallet = await factory.createWallet(agentAddress, ethers.utils.parseEther("1"));

2. 添加会话密钥

const wallet = await ethers.getContractAt("AgentSmartWallet", walletAddress);
await wallet.addSessionKey(
    sessionKeyAddress,      // 代理的会话密钥地址
    ethers.utils.parseEther("0.1"), // 限额
    [bytes4("0x...")]     // 允许调用的函数选择器
);

3. 代理执行交易

// 代理使用会话密钥发起交易
await wallet.executeWithSessionKey(
    encodedData,  // (目标地址、金额、调用数据)
    signature     // 所有者签名
);

可扩展性

该协议支持:

  • 添加新模块(如时间锁、多签)
  • 升级钱包逻辑
  • 跨链兼容(通过协议桥接实现)

参考资料

  • [Kite AI 文档](https://docs.gokite.ai)
  • [Biconomy Nexus](https://docs.biconomy.io/new/learn-about-biconomy/nexus)
  • [ERC-4337](https://eips.ethereum.org/EIPS/eip-4337)
  • [ERC-7579](https://eips.ethereum.org/EIPS/eip-7579)

版本历史

  • v1.0.0(2026-02-25):首次在 Kite AI 测试网部署
N
@nihaovand

已收录 2 个 Skill

相关推荐