Skip to main content

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

Project details


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.2.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jarvisclaw-0.1.2-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file jarvisclaw-0.1.2.tar.gz.

File metadata

  • Download URL: jarvisclaw-0.1.2.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for jarvisclaw-0.1.2.tar.gz
Algorithm Hash digest
SHA256 711d84c594f6c2947a64ceefb5ada93d8d6dbe59da6c1f8efbd24fd3430fed27
MD5 7d249e8079aa24871b65b683afa59ac0
BLAKE2b-256 f6136411b390256dcaff79d2180298f8eb690115fcf7fa48245f06fb5df556ec

See more details on using hashes here.

File details

Details for the file jarvisclaw-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: jarvisclaw-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.15

File hashes

Hashes for jarvisclaw-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0d417e62b09aaa12593bb0e4c1a79d8f40d5957ad38342e225b920ddfdbe535e
MD5 10dab6d332d8b9edc26cc6ff8bd5bf75
BLAKE2b-256 c3250af6470cc6c903af8df0a90f8e56cca3733e41b7f19a94b7b8578c20dacf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page