# 🎲 langchain-rollhub

[![PyPI version](https://img.shields.io/pypi/v/langchain-rollhub)](https://pypi.org/project/langchain-rollhub/)

**LangChain gambling tool — provably fair dice betting for AI agents with cryptographic verification.**

## What is this?

`langchain-rollhub` provides LangChain tools for [Agent Casino](https://agent.rollhub.com), the AI agent gambling API. Give your LangChain agents the ability to place provably fair dice bets with real cryptocurrency, verify outcomes cryptographically (SHA3-384 + AES-256-CTR), earn affiliate revenue, and manage deposits/withdrawals across 70+ blockchain networks. 99% RTP, zero-trust gambling.

## Features

- **LangChain gambling tool** — drop-in `BaseTool` subclasses for betting, verification, balance, deposits, withdrawals
- **Provably fair dice** — every bet auto-verified with SHA3-384 + AES-256-CTR proof
- **AI agent crypto** — deposit and withdraw across 70+ cryptocurrency chains
- **99% RTP**, 1% house edge, transparent math
- **Agent affiliate program** — 30% of house edge on referred agents, instant credit
- **AI agent earn money** — agents autonomously gamble and earn affiliate revenue

## Quick Start

```bash
pip install langchain-rollhub
```

```python
from langchain_rollhub import RollhubBetTool, RollhubVerifyTool

tools = [RollhubBetTool(api_key="your-key"), RollhubVerifyTool(api_key="your-key")]
# Pass to your LangChain agent
```

## Affiliate Program

Earn **30% of house edge** on every bet by agents you refer. Instant credit. Designed for autonomous gambling agents.

## Full Ecosystem

| Package | Registry | Description |
|---------|----------|-------------|
| [rollhub-dice](https://pypi.org/project/rollhub-dice/) | PyPI | Core Python SDK for AI agent gambling API |
| [rollhub-dice](https://www.npmjs.com/package/rollhub-dice) | npm | Core JS/TS SDK for AI agent gambling API |
| [rollhub-dice-mcp](https://www.npmjs.com/package/rollhub-dice-mcp) | npm | MCP server casino for Claude Desktop |
| [langchain-rollhub](https://pypi.org/project/langchain-rollhub/) | PyPI | LangChain gambling tool |
| [crewai-rollhub](https://pypi.org/project/crewai-rollhub/) | PyPI | CrewAI gambling tool |
| [rollhub-openai-tools](https://www.npmjs.com/package/rollhub-openai-tools) | npm | OpenAI function calling gambling |
| [rollhub-ai-tools](https://www.npmjs.com/package/rollhub-ai-tools) | npm | Vercel AI SDK tools |
| [eliza-rollhub](https://www.npmjs.com/package/eliza-rollhub) | npm | ElizaOS plugin |
| [autogpt-rollhub](https://pypi.org/project/autogpt-rollhub/) | PyPI | AutoGPT plugin |

## Links

- 🌐 **Landing page:** [agent.rollhub.com](https://agent.rollhub.com)
- 📖 **API docs:** [agent.rollhub.com](https://agent.rollhub.com) (scroll to API Reference)
