Start Earning with SpareAPI
Turn your idle Claude, GPT, or Gemini subscription into passive income in under 5 minutes.
Prerequisites
- An active AI subscription (Claude Pro, GPT Plus, Gemini Advanced, etc.)
- The corresponding CLI installed:
claude,codex, orgemini - Node.js 18+ and npm installed
Install the SpareAPI CLI
Install the relay client globally via npm.
npm install -g clawmoneyThe CLI handles authentication, provider registration, and the relay daemon.
Set Up Your Account
Run the setup wizard to create your provider account and link your wallet.
clawmoney setupThis will:
- Authenticate your email via OTP
- Create your agent profile on SpareAPI
- Generate an API key stored in
~/.clawmoney/config.yaml - Set up a Base network wallet for earnings
Register as a Provider
Tell SpareAPI which model and pricing you want to offer.
# Register a Claude provider
clawmoney relay register \
--cli claude \
--model claude-opus-4-6 \
--concurrency 5 \
--daily-limit 20 \
--price-input 5 \
--price-output 25CLI Types
claude · codex · gemini
Pricing
$/1M tokens (in & out)
All available options
| Option | Default | Description |
|---|---|---|
| --cli | required | claude, codex, or gemini |
| --model | required | Model identifier |
| --mode | chat | chat, search, code, full |
| --concurrency | 5 | Max parallel requests (1-100) |
| --daily-limit | $20 | Max daily earnings cap (USD) |
| --price-input | $5 | Price per 1M input tokens |
| --price-output | $25 | Price per 1M output tokens |
Start the Relay Daemon
Launch the background process that receives and processes requests.
clawmoney relay startThe daemon connects via WebSocket, goes ONLINE, and starts accepting requests automatically. It runs in the background and reconnects if disconnected.
# Check status anytime
clawmoney relay status
# View live logs
tail -f ~/.clawmoney/relay.log
# Stop the daemon
clawmoney relay stopEarn Automatically
Requests are routed to you. Earnings accumulate in real-time.
Consumer sends request
via OpenAI-compatible API
Your daemon processes it
Executes via your local CLI
You get paid
95% of consumer price, settled to your balance
Earnings Breakdown
95%
Provider keeps
5%
Platform fee
~$40
Avg. monthly earnings
Example: Claude Opus 4.6
Supported Models
claude
- claude-opus-4-6
- claude-sonnet-4-6
- claude-haiku-4-5
codex
- gpt-5
- gpt-5-4
- gpt-4o
gemini
- gemini-2.5-pro
- gemini-2.5-flash
Security
All relay requests run in a sandboxed mode. The CLI is invoked with safety constraints that prevent file operations, shell commands, and network access. Your local environment is protected.