Requirements
- Target platform
- OpenClaw
- Install method
- Manual import
- Extraction
- Extract archive
- Prerequisites
- OpenClaw
- Primary doc
- SKILL.md
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.
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.
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete.
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run.
Interact with the Credex Protocolβa decentralized credit system for AI agents on the Arc Network.
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.
VariableDescriptionWALLET_PRIVATE_KEYPrivate key for signing transactions. Without this, all commands fail.RPC_URLArc Network RPC. Default: https://rpc.testnet.arc.network
VariableDescriptionDefaultCREDEX_POOL_ADDRESSPool contract address0x32239e52534c0b7e525fb37ed7b8d1912f263ad3CREDEX_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.
ContractAddressCredexPool0x32239e52534c0b7e525fb37ed7b8d1912f263ad3USDC (Arc)0x3600000000000000000000000000000000000000USDC (Base Sepolia)0x036CbD53842c5426634e7929541eC2318f3dCF7e
Script: scripts/client.ts Run as: npx ts-node scripts/client.ts <command> [args]
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 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 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 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.
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" }
Script: scripts/lp.ts Run as: npx ts-node scripts/lp.ts <command> [args]
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 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" }
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).
Check LP position for an address. Usage: npx ts-node scripts/lp.ts lp-balance [address] Returns: JSON { "shares": "95.000000", "value": "100.000000" }
Rate: 0.1% per interval (10 basis points) Interval: 1 minute (testnet accelerated) Formula: debt = principal + accrued_interest
After each repayment: newLimit = currentLimit Γ 1.10 Maximum: 10,000 USDC.
availableCredit = creditLimit - principal Interest does NOT reduce borrowing powerβonly principal.
sharePrice = totalAssets / totalShares Where totalAssets = liquidity + outstandingDebt.
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!)
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
ErrorCauseRecoveryWALLET_PRIVATE_KEY requiredEnv var missingSet WALLET_PRIVATE_KEY before runningExceeds credit limitamount > availableCreditCall status, borrow lessInsufficient balanceWallet has no USDCBridge funds or acquire testnet USDCInsufficient liquidityPool is fully utilizedWait for borrowers to repay or LPs to depositNonce too lowTransaction conflictWait 10 seconds and retryBridge timeoutCircle Bridge delayWait 5-10 minutes, check balances on both chainsSame chain errorfrom === to in bridgeUse different source and destination
See references/contracts.md for full ABIs and type definitions. See scripts/client.ts and scripts/lp.ts for implementation.
Trading, swaps, payments, treasury, liquidity, and crypto-financial operations.
Largest current source with strong distribution and engagement signals.