JarvisClaw AI & Prediction Market SDK — x402 machine payments
Project description
JarvisClaw SDK
Python SDK for JarvisClaw AI & Prediction Market APIs with x402 machine payments.
Install
pip install jarvisclaw
Quick Start
AI Agent (x402 direct payment — no API key needed)
from jarvisclaw import JarvisClawClient
# Your agent's wallet (needs USDC on Base chain)
client = JarvisClawClient(private_key="0x<your-wallet-private-key>")
# AI model call — SDK handles 402 → sign → retry automatically
response = client.post("/v1/chat/completions", json={
"model": "openai/gpt-5.4-nano",
"messages": [{"role": "user", "content": "Hello!"}]
})
print(response["choices"][0]["message"]["content"])
# Prediction market data
markets = client.get("/v1/prediction/polymarket/markets", params={"limit": 10})
print(markets)
# Sports betting odds
sports = client.get("/v1/prediction/sports/markets", params={"category": "soccer"})
API Key (traditional — for human users)
If you have an API key, you don't need this SDK. Just use the standard OpenAI SDK:
from openai import OpenAI
client = OpenAI(
base_url="https://api.jarvisclaw.ai/v1",
api_key="sk-your-api-key"
)
response = client.chat.completions.create(
model="auto",
messages=[{"role": "user", "content": "Hello!"}]
)
Requirements
- Python >= 3.9
- Wallet with USDC on Base chain (Chain ID 8453)
- No ETH needed (facilitator pays gas)
Pricing
- AI models: per-token (see https://api.jarvisclaw.ai/pricing)
- Prediction GET: $0.001/request
- Prediction POST: $0.005/request
- Zero markup on upstream costs
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
jarvisclaw-0.1.1.tar.gz
(3.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jarvisclaw-0.1.1.tar.gz.
File metadata
- Download URL: jarvisclaw-0.1.1.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
af90f7ded9b1b261a6887ae162c31f9a7ae2169bba8021a82bdb55cfb367ad2c
|
|
| MD5 |
66729a8ca96ffcae2314373f6406d460
|
|
| BLAKE2b-256 |
f49a5fcbe0d81556431a40429a4d4ef4d8ff52eb691d3045a927d249cc9d41cf
|
File details
Details for the file jarvisclaw-0.1.1-py3-none-any.whl.
File metadata
- Download URL: jarvisclaw-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
44690c8057f1f1a96480aad4cb039acea2672aa19f59ce4bedf12aabb0252cf4
|
|
| MD5 |
86140a2db115339591533a85b3ccbada
|
|
| BLAKE2b-256 |
47f3d6e8dc4550b30818b29e67774aa7ee07eb6261091a2fc8aa15c24384fa6d
|