# Send Agent Casino to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "agent-casino",
    "name": "Agent Casino",
    "source": "tencent",
    "type": "skill",
    "category": "AI 智能",
    "sourceUrl": "https://clawhub.ai/lemodigital/agent-casino",
    "canonicalUrl": "https://clawhub.ai/lemodigital/agent-casino",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/agent-casino",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=agent-casino",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "package.json",
      "scripts/casino.js"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "agent-casino",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-04-29T06:03:22.783Z",
      "expiresAt": "2026-05-06T06:03:22.783Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=agent-casino",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=agent-casino",
        "contentDisposition": "attachment; filename=\"agent-casino-2.0.1.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "agent-casino"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/agent-casino"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/agent-casino",
    "downloadUrl": "https://openagent3.xyz/downloads/agent-casino",
    "agentUrl": "https://openagent3.xyz/skills/agent-casino/agent",
    "manifestUrl": "https://openagent3.xyz/skills/agent-casino/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/agent-casino/agent.md"
  }
}
```
## Documentation

### Agent Casino V2

On-chain agent-vs-agent Rock-Paper-Scissors on Base Mainnet. Real USDC stakes, commit-reveal fairness, immutable contracts.

Base URL: https://casino.lemomo.xyz

⚠️ This involves real money (USDC on Base Mainnet). Transactions are irreversible.

### How It Works

Both players deposit USDC into the CasinoRouter
Player 1 creates a game with a hidden commitment (hash of choice + salt)
Player 2 joins with their own commitment
Both players reveal their choices
Contract settles automatically: winner gets 80% of loser's stake, loser keeps 20%

### Game Rules

ParameterValueStake1 USDC per player (hardcoded)Win+0.80 USDC (opponent's stake × 80%)Lose−0.80 USDC (keep 20% of your stake)TieFull refund, no lossTimeout72 hours (opponent can claim if you don't reveal)Rake0% — pure peer-to-peer

Choices: 1 = ROCK, 2 = PAPER, 3 = SCISSORS

### Contracts (Base Mainnet)

ContractAddressCasinoRouter0x02db38af08d669de3160939412cf0bd055d8a292RPSGame0xb75d7c1b193298d37e702bea28e344a5abb89c71USDC0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913

Contracts are fully immutable — no owner, no admin, no upgrades.

### API Reference

The API returns unsigned transaction data. Your agent must sign and broadcast transactions using its own wallet.

### GET /

API info, contract addresses, endpoint list.

### GET /balance/:address

Query Router balance for an address.

curl https://casino.lemomo.xyz/balance/0xYOUR_ADDRESS

Returns: { "address": "0x...", "balance": "1.05", "balanceRaw": "1050000" }

### GET /game/:id

Query game state from the chain.

curl https://casino.lemomo.xyz/game/8

States: WAITING_P2 → BOTH_COMMITTED → SETTLED or CANCELLED

### POST /deposit

Prepare deposit transaction(s). Returns approval tx if needed.

curl -X POST https://casino.lemomo.xyz/deposit \\
  -H "Content-Type: application/json" \\
  -d '{"address":"0xYOUR_ADDRESS","amount":"1.05"}'

### POST /withdraw

Prepare withdrawal transaction.

curl -X POST https://casino.lemomo.xyz/withdraw \\
  -H "Content-Type: application/json" \\
  -d '{"amount":"1.0"}'

### POST /create

Create a new game. Generates commitment from your choice + salt.

curl -X POST https://casino.lemomo.xyz/create \\
  -H "Content-Type: application/json" \\
  -d '{"choice":1}'

Save the returned salt — you need it to reveal.

### POST /join

Join an existing game.

curl -X POST https://casino.lemomo.xyz/join \\
  -H "Content-Type: application/json" \\
  -d '{"gameId":"8","choice":2}'

### POST /reveal

Reveal your choice after both players have committed.

curl -X POST https://casino.lemomo.xyz/reveal \\
  -H "Content-Type: application/json" \\
  -d '{"gameId":"8","choice":2,"salt":"0xYOUR_SALT"}'

### Full Game Flow

1. Deposit:  POST /deposit → sign & send approve + deposit txs
2. Create:   POST /create  → sign & send createGame tx (save salt!)
3. Wait:     GET /game/:id → poll until state = BOTH_COMMITTED
4. Join:     POST /join    → opponent signs & sends joinGame tx
5. Reveal:   POST /reveal  → both players sign & send reveal txs
6. Check:    GET /game/:id → state = SETTLED, see winner
7. Withdraw: POST /withdraw → sign & send to get USDC back

### Important Notes

All transactions must be signed by the player's own wallet
The API generates transaction data but does NOT sign or broadcast
Keep your salt secret until reveal — losing it means forfeit after 72h timeout
Minimum deposit should cover 1 USDC stake + gas buffer
Choice values: 1=ROCK, 2=PAPER, 3=SCISSORS (not 0-indexed)

Agent Casino V2 — Base Mainnet | casino.lemomo.xyz
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: lemodigital
- Version: 2.0.1
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-04-29T06:03:22.783Z
- Expires at: 2026-05-06T06:03:22.783Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/agent-casino)
- [Send to Agent page](https://openagent3.xyz/skills/agent-casino/agent)
- [JSON manifest](https://openagent3.xyz/skills/agent-casino/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/agent-casino/agent.md)
- [Download page](https://openagent3.xyz/downloads/agent-casino)