Catalog PyPI
PACKAGE EXPLORERView in registry

ai-gambling

PyPI

AI gambling API SDK by Agent Casino (Rollhub) — provably fair dice, crypto betting, zero-trust verification for autonomous agents. 99% RTP, 70+ chains.

agentaiai-agent-casinoai-agent-gambling-apiautonomous-gambling-agentcasinocryptocrypto-betting-apidicegamblingprovably-fairzero-trust-gambling
Versions collected1
Direct dependencies2From release 0.7.0
Last observed21 Oct, 10:45 UTC

README

Version 0.7.0 documentation

🎲 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

PackageRegistryDescription
rollhub-dicePyPICore Python SDK for AI agent gambling API
rollhub-dicenpmCore JS/TS SDK for AI agent gambling API
rollhub-dice-mcpnpmMCP server casino for Claude Desktop & Cursor
rollhub-affiliate-mcpnpmAffiliate marketing MCP server
langchain-rollhubPyPILangChain gambling tool
crewai-rollhubPyPICrewAI gambling tool
rollhub-openai-toolsnpmOpenAI function calling gambling
rollhub-ai-toolsnpmVercel AI SDK tools
eliza-rollhubnpmElizaOS plugin
autogpt-rollhubPyPIAutoGPT 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

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 1

Collected releases
VersionPublishedDirect dependenciesOpen version
0.7.026 Feb 20262

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
rollhub/rollhub-dice-python

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 10:45 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:adf6ed670d785fc9282ce89735cac2674ee567d9025e4e27c2ab708ce542c830