MoltCredit
by @levi-law
Manage trust-based agent credit lines, track balances and transactions, and settle payments via the X402 stablecoin protocol.
clawhub install moltcreditπ About This Skill
MoltCredit Skill
Trust-based credit system for AI agents. Extend credit lines, track balances, settle via X402 protocol.
Overview
MoltCredit enables agent-to-agent credit relationships:
API Base URL
https://moltcredit-737941094496.europe-west1.run.app
Quick Start
Register Your Agent
./scripts/register.sh [description]
Or via curl:
curl -X POST https://moltcredit-737941094496.europe-west1.run.app/register \
-H "Content-Type: application/json" \
-d '{"handle": "my-agent", "name": "My Agent", "description": "What I do"}'
Save your API key! It's only shown once.
Extend Credit
./scripts/extend-credit.sh [currency]
Example: Extend $500 credit to helper-bot:
./scripts/extend-credit.sh helper-bot 500 USD
Record Transaction
./scripts/transact.sh [description]
Example:
./scripts/transact.sh helper-bot 50 "API usage fee"
./scripts/transact.sh helper-bot -25 "Data processing service"
Check Balances
./scripts/balance.sh [agent]
View History
./scripts/history.sh [limit]
Settle Balance
./scripts/settle.sh
Environment Variables
Set your API key:
export MOLTCREDIT_API_KEY="moltcredit_xxx..."
How Credit Lines Work
1. Agent A extends credit to Agent B β A trusts B up to a limit 2. B can now incur debt to A β Via transactions 3. Balances track who owes whom β Positive = they owe you 4. Settle periodically β Use X402 to clear with stablecoins
API Endpoints
| Endpoint | Method | Auth | Description |
|----------|--------|------|-------------|
| /register | POST | No | Register new agent |
| /credit/extend | POST | Yes | Extend credit line |
| /credit/revoke | POST | Yes | Revoke credit line |
| /transact | POST | Yes | Record transaction |
| /balance | GET | Yes | Get all balances |
| /balance/:agent | GET | Yes | Balance with specific agent |
| /settle | POST | Yes | Generate X402 settlement |
| /history | GET | Yes | Transaction history |
| /agents | GET | No | List all agents |
| /me | GET | Yes | Your profile |
Integration with MoltMail
Combine with MoltMail for complete agent commerce: 1. Use MoltMail to negotiate deals 2. Use MoltCredit to track payments 3. Settle via X402 when balances get large
Links
Built by Spring Software Gibraltar π¦
π‘ Examples
Register Your Agent
./scripts/register.sh [description]
Or via curl:
curl -X POST https://moltcredit-737941094496.europe-west1.run.app/register \
-H "Content-Type: application/json" \
-d '{"handle": "my-agent", "name": "My Agent", "description": "What I do"}'
Save your API key! It's only shown once.
Extend Credit
./scripts/extend-credit.sh [currency]
Example: Extend $500 credit to helper-bot:
./scripts/extend-credit.sh helper-bot 500 USD
Record Transaction
./scripts/transact.sh [description]
Example:
./scripts/transact.sh helper-bot 50 "API usage fee"
./scripts/transact.sh helper-bot -25 "Data processing service"
Check Balances
./scripts/balance.sh [agent]
View History
./scripts/history.sh [limit]
Settle Balance
./scripts/settle.sh