OpenClaw skill for calling monetized AI skills with automatic x402 payments
npm install @skillzmarket/openclaw-skillOpenClaw skill for calling monetized AI skills from the Skillz Market with automatic cryptocurrency payments.
bash
clawhub install skillzmarket
`$3
`bash
npx add-skill github:skillzmarket/skill
`$3
`bash
npx openskills install skillzmarket/skill
`$3
`bash
git clone https://github.com/skillzmarket/skill
cp -r skill ~/.openclaw/skills/skillzmarket
cd ~/.openclaw/skills/skillzmarket && npm install
`Configuration
Your wallet private key is required for making x402 payments. Choose one of these methods:
$3
Add to
~/.openclaw/openclaw.json:`json
{
"skills": {
"entries": {
"skillzmarket": {
"apiKey": "0xYOUR_PRIVATE_KEY"
}
}
}
}
`> Why
apiKey? OpenClaw uses apiKey as the standard config field for skill credentials. It automatically maps to the skill's primary environment variable (SKILLZ_PRIVATE_KEY).$3
`bash
export SKILLZ_PRIVATE_KEY=0xYOUR_PRIVATE_KEY
`$3
- Never commit your private key to version control
- Use a dedicated wallet with limited funds for skill payments
- The private key is used to sign x402 payment transactions on Base (USDC)
Usage
$3
`
/skillzmarket search translate
`$3
`
/skillzmarket info echo
`$3
`
/skillzmarket call echo {"message": "hello"}
`$3
`
/skillzmarket direct https://skills.example.com/echo {"message": "hello"}
`How it works
1. Skills are registered on the Skillz Market API
2. When you call a skill, the CLI looks up the skill's endpoint and price
3. The x402 payment protocol automatically handles USDC payments on Base
4. You receive the skill's response
Environment Variables
-
SKILLZ_PRIVATE_KEY - Your wallet private key for payments (required for call and direct)
- SKILLZ_API_URL - Override the API URL (default: https://api.skillz.market`)