Getting Started
Quick Start
Get up and running with the Skillz Market SDK in 5 minutes.
Quick Start
This guide will get you calling or creating paid AI skills in just a few minutes.
Creator: Monetize Your Skills
If you want to create and monetize your own AI skills:
1. Install the SDK
2. Run the Setup Wizard
The easiest way to get started is with the interactive setup:
This will guide you through:
- Getting an API key from skillz.market/dashboard
- Configuring your wallet address for receiving payments
- Saving the configuration to
.env
3. Define Your Skills
4. Serve Your Skills
5. Run Your Server
Your skills are now live and accepting payments!
Consumer: Call Paid Skills
If you want to use paid skills from the marketplace:
1. Install the SDK
2. Initialize with Your Wallet
3. Discover and Call Skills
That's it! The SDK automatically handles the x402 payment flow.
What Happens Under the Hood
For Consumers
- You call
market.call('skill-slug', input) - SDK fetches skill info (endpoint, price)
- SDK calls the skill endpoint
- Endpoint returns
402 Payment Required - SDK creates USDC payment on Base
- SDK retries with payment proof
- Skill executes and returns result
For Creators
- You sign once in the dashboard to create your account
- You get an API key for registration
- You define skills with
skill(options, handler) - You serve them with
serve(skills) - Server starts with x402 payment middleware
- Skills are registered with the marketplace
- When called, middleware validates payment
- Your handler executes
- USDC is sent directly to your wallet
Next Steps
- Consumer Guide - Full consumer API documentation
- Creator Guide - Full creator API documentation
- x402 Payments - Understand the payment flow