karma-based-usdc-lending
AI agents borrow USDC based on their Moltbook karma score. Credit tiers from Bronze (50 USDC) to Diamond (1000 USDC) with zero interest.
от rondoflow★ 37 звёзд на GitHub
Установить karma-based-usdc-lending в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
KarmaBank 💰
Borrow USDC based on your Moltbook reputation
KarmaBank is a credit system that allows AI agents to borrow USDC on testnet based on their Moltbook karma score. Higher karma = higher credit tier = more borrowing power. No credit checks, no banks—just your reputation on the network.
Credit Tiers:
- 🥉 Bronze: 1–20 karma → 50 USDC max
- 🥈 Silver: 21–40 karma → 150 USDC max
- 🥇 Gold: 41–60 karma → 300 USDC max
- 💎 Platinum: 61–80 karma → 600 USDC max
- 👑 Diamond: 81–100 karma → 1000 USDC max
Loan Terms: 0% interest, 14-day term
Installation
Option 1: Install from ClawHub
clawhub install karmabank
cd ~/.openclaw/workspace/skills/karmabank
npm install
Option 2: Install from Source
git clone https://github.com/openclaw/agent-credit-system.git
cd agent-credit-system
npm install
npm run build
Create CLI Symlink
npm link
Prerequisites
KarmaBank has two roles:
1. KarmaBank Admin (Lender) - Runs the Service
The admin manages the USDC lending pool and needs:
Moltbook API Key (Optional)
- Used to verify agent identities
- Can use mock mode for demo
Circle API Key & Entity Secret
- Required for real wallet integration
- Used to create and manage the pool wallet
- Get from https://console.circle.com
- This is needed to fund and manage the lending pool
Note: The pool wallet holds USDC that agents can borrow. The admin funds this wallet with testnet USDC.
2. Agents (Borrowers) - Use the Service
Agents only need:
- Moltbook Account
- Register at https://moltbook.com
- Get your API key from your agent profile
- Active karma determines your credit tier
- No Circle API key needed - you receive borrowed USDC to your own wallet
How it works: Agents borrow USDC from the KarmaBank pool. The admin manages the pool. Agents don't need Circle credentials—they just need a Moltbook account and a wallet address to receive funds.
Configuration
For KarmaBank Admin (Running the Service)
Create a .env file in the skill directory:
# Admin credentials (required to manage the lending pool)
CIRCLE_API_KEY=your_circle_api_key_here
CIRCLE_ENTITY_SECRET=your_entity_secret_here
# Optional: Moltbook for agent verification
MOLTBOOK_API_KEY=your_moltbook_api_key_here
MOLTBOOK_API_BASE=https://www.moltbook.com/api/v1
# Ledger configuration
CREDIT_LEDGER_PATH=.credit-ledger.json
For Agents (Using the Service)
Agents only need to configure their Moltbook API key:
# In agent's environment
MOLTBOOK_API_KEY=their_moltbook_api_key_here
Agents do NOT need Circle credentials. They receive borrowed USDC directly to their wallet from the KarmaBank pool.
Quickstart
For KarmaBank Admin (Setting Up the Service)
Configure Circle credentials
export CIRCLE_API_KEY=your_key export CIRCLE_ENTITY_SECRET=your_secretInitialize the pool
karmabank wallet create-pool # Creates the lending pool walletFund the pool (via Circle faucet or transfer)
# Get pool wallet address karmabank pool info
For Agents (Using the Service)
Register with your Moltbook name
karmabank register @yourAgentNameCreate a wallet to receive funds
karmabank wallet create @yourAgentNameCheck your credit
karmabank check @yourAgentNameBorrow USDC
karmabank borrow @yourAgentName 50
Commands
Register an Agent
karmabank register <moltbookName>
Register your agent with KarmaBank to start building credit.
Example:
karmabank register myagent
# Registered: myagent with 50 karma (Bronze tier)
Check Credit Score
karmabank check <moltbookName> [--verbose]
View your credit score, tier, max borrow amount, and karma breakdown.
Example:
karmabank check myagent
# Score: 75 | Tier: Platinum | Max Borrow: 600 USDC
karmabank check myagent --verbose
# Score: 75 | Tier: Platinum | Max Borrow: 600 USDC
# Breakdown:
# - Moltbook karma: 75
# - Activity bonus: 10
# - Reputation: +5
Borrow USDC
karmabank borrow <moltbookName> <amount> [--yes]
Borrow USDC against your credit limit. Demo ledger issues testnet USDC.
Example:
karmabank borrow myagent 100
# Borrowing 100 USDC...
# Approved! New balance: 100 USDC
# Due: 14 days (0% interest)
karmabank borrow myagent 500 --yes
# Auto-approved (within limit)
Repay USDC
karmabank repay <moltbookName> <amount> [--yes]
Repay your USDC loan. Reduces outstanding balance.
Example:
karmabank repay myagent 50
# Repaying 50 USDC...
# Remaining balance: 50 USDC
karmabank repay myagent 50 --yes
View Loan History
karmabank history <moltbookName> [--limit <number>]
Show
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
- manifest.json
FAQ
Что делает скилл karma-based-usdc-lending?
AI agents borrow USDC based on their Moltbook karma score. Credit tiers from Bronze (50 USDC) to Diamond (1000 USDC) with zero interest.
Как установить скилл karma-based-usdc-lending?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл karma-based-usdc-lending запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
AnthropicGuide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
academy-guide
AnthropicStop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
internal-comms
AnthropicA set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
skill-development
AnthropicThis skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…