Skip to main content

AI agent gambling API SDK — provably fair dice, crypto betting, zero-trust verification for autonomous agents. 99% RTP, 70+ chains.

Project description

🎲 rollhub-dice

PyPI version npm version Python License: MIT MCP Compatible

The AI agent gambling API SDK for Python — provably fair dice & coinflip, crypto betting, and zero-trust verification for autonomous agents.

🎰 Agent Casino — The first provably fair crypto casino built for AI agents

What is this?

rollhub-dice is the core Python SDK for Agent Casino, the first provably fair crypto betting API built specifically for AI agents. Every dice roll is cryptographically verified using SHA3-384 + AES-256-CTR commit-reveal, giving autonomous gambling agents zero-trust guarantees. Supports 70+ cryptocurrency chains for deposits and withdrawals with 99% RTP.

Features

  • Provably fair dice & coinflip gambling for AI agents — every bet auto-verified client-side
  • Zero-trust gambling — SHA3-384 + AES-256-CTR commit-reveal cryptographic proof
  • 70+ cryptocurrency chains for deposits and withdrawals (SOL, ETH, BTC, USDT, USDC...)
  • 99% RTP, 1% house edge, transparent math
  • 30% affiliate earnings on every bet by agents you refer — instant credit
  • AI agent earn money — agents can gamble, verify, and earn affiliate revenue autonomously
  • Typed responses, async-ready, lightweight with zero heavy dependencies

Quick Start

pip install rollhub-dice
from rollhub_dice import DiceAgent

agent = DiceAgent(api_key="your-key")

# Dice bet
result = agent.bet(target=50, direction="over", amount=100)
print(f"Roll: {result.roll}, Won: {result.won}, Verified: {result.proof.verified}")

# Coinflip
flip = agent.coinflip(side="heads", amount=50)
print(f"Result: {flip.side}, Won: {flip.won}")

🤖 Claude Desktop / MCP Integration

Use Agent Casino directly from Claude Desktop with rollhub-dice-mcp:

{
  "mcpServers": {
    "rollhub-dice": {
      "command": "npx",
      "args": ["-y", "rollhub-dice-mcp"],
      "env": {
        "ROLLHUB_API_KEY": "your-api-key"
      }
    }
  }
}

🔗 LangChain Integration

pip install langchain-rollhub
from langchain_rollhub import RollhubDiceTool

tool = RollhubDiceTool(api_key="your-key")
# Use with any LangChain agent

💰 Affiliate Program — Earn Crypto with AI

Earn 30% of house edge on every bet by agents you refer. This is the agent affiliate program — instant credit, no minimums, designed for autonomous agents to earn money by referring other AI agents.

Use rollhub-affiliate-mcp for automated affiliate marketing via MCP.

Full Ecosystem

Package Registry Description
rollhub-dice PyPI Core Python SDK for AI agent gambling API
rollhub-dice npm Core JS/TS SDK for AI agent gambling API
rollhub-dice-mcp npm MCP server casino for Claude Desktop & Cursor
rollhub-affiliate-mcp npm Affiliate marketing MCP server
langchain-rollhub PyPI LangChain gambling tool
crewai-rollhub PyPI CrewAI gambling tool
rollhub-openai-tools npm OpenAI function calling gambling
rollhub-ai-tools npm Vercel AI SDK tools
eliza-rollhub npm ElizaOS plugin
autogpt-rollhub PyPI AutoGPT plugin

Keywords

AI agent gambling API, provably fair dice, crypto betting SDK, Python casino API, zero-trust verification, autonomous agent betting, Solana gambling, coinflip API, LangChain gambling, CrewAI casino, MCP server casino

Links

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

rollhub_dice-0.6.1.tar.gz (13.8 kB view details)

Uploaded Source

Built Distribution

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

rollhub_dice-0.6.1-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

Details for the file rollhub_dice-0.6.1.tar.gz.

File metadata

  • Download URL: rollhub_dice-0.6.1.tar.gz
  • Upload date:
  • Size: 13.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for rollhub_dice-0.6.1.tar.gz
Algorithm Hash digest
SHA256 62ecff601c567952393c756f6570bd1886dc2ff0e714ac8caa797d7ace5d0c04
MD5 6b5690f09aae460bd4e0fb302a16cba2
BLAKE2b-256 080f087fbee7a0d7249568a2d8de9d9052f78897463067d8984913507445d10a

See more details on using hashes here.

File details

Details for the file rollhub_dice-0.6.1-py3-none-any.whl.

File metadata

  • Download URL: rollhub_dice-0.6.1-py3-none-any.whl
  • Upload date:
  • Size: 11.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.6

File hashes

Hashes for rollhub_dice-0.6.1-py3-none-any.whl
Algorithm Hash digest
SHA256 20d23765e3b0270885e6cac3f47fea0f8c977a9b2e8693bdf9927da1ea79c1da
MD5 9d068581a2f7302cf1009c287d94fc76
BLAKE2b-256 d1fb226c12496f2a4ad6288698cd78751b73209a8e52aaa684927a264b29445f

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