Token导航 LogoToken导航TokenDH.com
效率敏感数据clawhub未标认证来源可访问clear审计提醒

credex-protocol信用协议

Agent Skill

credex-protocol 用于辅助前端页面、组件、样式和交互逻辑开发,适合在 OpenClaw 中需要维护前端项目、生成组件或检查界面实现时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

35,642

周安装

1,531

GitHub Stars

公开资料未说明

下载量

12,493
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:credex-protocol(信用协议)
来源仓库:https://github.com/capgoblin/credex-protocol
安装命令:
openclaw skills install credex-protocol
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install credex-protocol

简介

使用 Credex 协议获取 Arc 网络上AI Agent的无担保信用额度。用于以声誉借入 USDC、偿还债务以增加信用额度、作为 LP 提供流动性或通过 Circle Bridge 管理跨链 USDC。触发“从 credex 借款”、“偿还债务”、“存入资金池”、“检查信用状态”、“提供流动性”或 Arc 上的任何信用/贷款任务。

SKILL.md

name
credex-protocol
description
Access unsecured credit lines for AI agents on the Arc Network using the Credex Protocol. Use for borrowing USDC against reputation, repaying debt to grow credit limits, providing liquidity as an LP, or managing cross-chain USDC via Circle Bridge. Triggers on "borrow from credex", "repay debt", "deposit to pool", "check credit status", "provide liquidity", or any credit/lending task on Arc.

Credex Protocol Skill

Interact with the Credex Protocol—a decentralized credit system for AI agents on the Arc Network.


Usage

Base Directory: {baseDir} (the directory containing this SKILL.md)

Run all commands from the project root:

cd {baseDir}
npx ts-node scripts/client.ts <command> [args]   # Borrower commands
npx ts-node scripts/lp.ts <command> [args]       # LP commands

Output Format: All scripts return JSON for machine readability. Parse the output to extract fields like creditLimit, txHash, debt, etc.


Environment Variables

Required (Must Be Set)

VariableDescription
WALLET_PRIVATE_KEYPrivate key for signing transactions. Without this, all commands fail.
RPC_URLArc Network RPC. Default: https://rpc.testnet.arc.network

Optional

VariableDescriptionDefault
CREDEX_POOL_ADDRESSPool contract address0x32239e52534c0b7e525fb37ed7b8d1912f263ad3
CREDEX_AGENT_URLCredex agent server URLhttp://localhost:10003

Pre-Flight Check: Before running any command, verify WALLET_PRIVATE_KEY is set. If missing, prompt the user.


Contract Addresses (Arc Testnet)

ContractAddress
CredexPool0x32239e52534c0b7e525fb37ed7b8d1912f263ad3
USDC (Arc)0x3600000000000000000000000000000000000000
USDC (Base Sepolia)0x036CbD53842c5426634e7929541eC2318f3dCF7e

Client Commands (Borrower)

Script: scripts/client.ts Run as: npx ts-node scripts/client.ts <command> [args]


status

Check credit status for an agent.

Usage:

npx ts-node scripts/client.ts status <address>

Args:

  • address (optional): Wallet address. Defaults to WALLET_PRIVATE_KEY address.

Returns: JSON

{
  "creditLimit": "100.000000",
  "principal": "5.000000",
  "interest": "0.050000",
  "debt": "5.050000",
  "availableCredit": "95.000000",
  "active": true,
  "frozen": false
}

Action: Use availableCredit to check if sufficient funds before calling borrow.


borrow

Borrow USDC from the pool.

Usage:

npx ts-node scripts/client.ts borrow <amount>

Args:

  • amount (required): USDC amount as decimal string (e.g., "5.0").

Returns: JSON

{
  "success": true,
  "txHash": "0x...",
  "borrowed": "5.000000",
  "newDebt": "5.000000",
  "availableCredit": "95.000000"
}

Fails if: amount > availableCredit. Check status first.


repay

Repay debt to the pool.

Usage:

npx ts-node scripts/client.ts repay <amount|all>

Args:

  • amount: Specific USDC amount to repay (e.g., "5.0").
  • all: Calculates total debt + 1% buffer and repays fully. The contract caps at actual debt owed.

Returns: JSON

{
  "success": true,
  "txHash": "0x...",
  "repaid": "5.050000",
  "remainingDebt": "0.000000",
  "newCreditLimit": "110.000000"
}

Note: Repayments pay interest first, then principal. Each successful repayment increases credit limit by 10%.


bridge

Bridge USDC between Arc Testnet and Base Sepolia.

Usage:

npx ts-node scripts/client.ts bridge <amount> <from> <to>

Args:

  • amount: USDC amount (e.g., "10.0").
  • from: Source chain (arc or base).
  • to: Destination chain (arc or base).

Returns: JSON

{
  "success": true,
  "amount": "10.000000",
  "from": "Arc_Testnet",
  "to": "Base_Sepolia",
  "estimatedArrival": "5-10 minutes"
}

Fails if: from === to. Chains must be different.


balance

Check wallet balance on both chains.

Usage:

npx ts-node scripts/client.ts balance

Returns: JSON

{
  "arc": "50.000000",
  "base": "25.000000",
  "total": "75.000000"
}

LP Commands (Liquidity Provider)

Script: scripts/lp.ts Run as: npx ts-node scripts/lp.ts <command> [args]


pool-status

Check overall pool health and metrics.

Usage:

npx ts-node scripts/lp.ts pool-status

Returns: JSON

{
  "totalAssets": "1000.000000",
  "totalLiquidity": "800.000000",
  "totalDebt": "200.000000",
  "totalShares": "950.000000",
  "sharePrice": "1.052631",
  "utilizationPercent": 20
}

deposit

Deposit USDC to receive LP shares.

Usage:

npx ts-node scripts/lp.ts deposit <amount>

Args:

  • amount: USDC to deposit (e.g., "100.0").

Returns: JSON

{
  "success": true,
  "txHash": "0x...",
  "deposited": "100.000000",
  "sharesReceived": "95.000000",
  "totalShares": "95.000000"
}

withdraw

Burn LP shares to withdraw USDC.

Usage:

npx ts-node scripts/lp.ts withdraw <shares|all>

Args:

  • shares: Number of shares to burn (e.g., "50.0").
  • all: Withdraw maximum possible based on available liquidity.

Returns: JSON

{
  "success": true,
  "txHash": "0x...",
  "sharesBurned": "50.000000",
  "usdcReceived": "52.631579",
  "remainingShares": "45.000000"
}

Note: Withdrawal may be capped if liquidity is fully utilized (all USDC lent out).


lp-balance

Check LP position for an address.

Usage:

npx ts-node scripts/lp.ts lp-balance [address]

Returns: JSON

{
  "shares": "95.000000",
  "value": "100.000000"
}

Protocol Mechanics

Interest Accrual

  • Rate: 0.1% per interval (10 basis points)
  • Interval: 1 minute (testnet accelerated)
  • Formula: debt = principal + accrued_interest

Credit Limit Growth

After each repayment:

newLimit = currentLimit × 1.10

Maximum: 10,000 USDC.

Available Credit

availableCredit = creditLimit - principal

Interest does NOT reduce borrowing power—only principal.

Share Price (LP)

sharePrice = totalAssets / totalShares

Where totalAssets = liquidity + outstandingDebt.


Workflow Examples

Borrower Flow

1. Check status     → npx ts-node scripts/client.ts status
2. Borrow           → npx ts-node scripts/client.ts borrow 5
3. Use funds        → (perform task on Arc or bridge to Base)
4. Bridge back      → npx ts-node scripts/client.ts bridge 5 base arc
5. Repay            → npx ts-node scripts/client.ts repay all
6. Verify growth    → npx ts-node scripts/client.ts status (limit increased!)

LP Flow

1. Check pool       → npx ts-node scripts/lp.ts pool-status
2. Deposit          → npx ts-node scripts/lp.ts deposit 100
3. Monitor          → npx ts-node scripts/lp.ts lp-balance
4. Withdraw         → npx ts-node scripts/lp.ts withdraw all

Common Errors & Recovery

ErrorCauseRecovery
WALLET_PRIVATE_KEY requiredEnv var missingSet WALLET_PRIVATE_KEY before running
Exceeds credit limitamount > availableCreditCall status, borrow less
Insufficient balanceWallet has no USDCBridge funds or acquire testnet USDC
Insufficient liquidityPool is fully utilizedWait for borrowers to repay or LPs to deposit
Nonce too lowTransaction conflictWait 10 seconds and retry
Bridge timeoutCircle Bridge delayWait 5-10 minutes, check balances on both chains
Same chain errorfrom === to in bridgeUse different source and destination

References

  • See references/contracts.md for full ABIs and type definitions.
  • See scripts/client.ts and scripts/lp.ts for implementation.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

80.85%
按下载量换算10,101

安全审计

VirusTotal

可疑

ClawScan

可疑

Static analysis

未展示

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills