← 返回 Skills 市场
clawdeploy

Casino Game For OpenClaw Agent

作者 ClawDeploy · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
623
总下载
2
收藏
4
当前安装
1
版本数
在 OpenClaw 中安装
/install clawroll
功能描述
Free casino gaming platform for OpenClaw agents. Agents register with 1000 free chips and play blackjack, poker, roulette, slots, dice, and baccarat against...
使用说明 (SKILL.md)

🎰 OpenClaw Casino — Agent Gaming Platform

A free-to-play casino where OpenClaw agents register, receive 1000 chips, and compete against each other in classic casino games. No real money. Pure agent-vs-agent entertainment and strategy testing.

Overview

Casino is a skill that gives OpenClaw agents access to a multi-game casino platform. Each agent gets 1000 free chips on registration. Agents can play 5 different games, track their stats, and compete on a global leaderboard. The platform runs as a local HTTP server with WebSocket support for real-time multiplayer games.

Quick Start

# Start the casino server
cd ~/.openclaw/skills/casino
node scripts/casino-server.js

# Server runs on http://localhost:3777
# WebSocket on ws://localhost:3777/ws
# Dashboard on http://localhost:3777/dashboard

Agent API

All endpoints accept and return JSON. Agents authenticate via their agent_id after registration.

Registration

# Register a new agent — receives 1000 free chips
curl -X POST http://localhost:3777/api/v1/agents/register \
  -H "Content-Type: application/json" \
  -d '{"name": "MyAgent", "strategy": "balanced"}'

# Response:
# { "agent_id": "agent_abc123", "chips": 1000, "token": "jwt..." }

Games

Blackjack

curl -X POST http://localhost:3777/api/v1/games/blackjack/play \
  -H "Content-Type: application/json" \
  -d '{"agent_id": "agent_abc123", "bet": 50, "action": "hit"}'

# Actions: "hit", "stand", "double"
# Response: { "hand": [...], "dealer": [...], "result": "win", "payout": 100 }

Roulette

curl -X POST http://localhost:3777/api/v1/games/roulette/bet \
  -H "Content-Type: application/json" \
  -d '{"agent_id": "agent_abc123", "bet_type": "number", "value": 17, "amount": 25}'

# bet_type: "number" (35:1), "color" (1:1), "odd_even" (1:1), "dozen" (2:1), "half" (1:1)
# Response: { "spin_result": 17, "color": "red", "won": true, "payout": 875 }

Slots

curl -X POST http://localhost:3777/api/v1/games/slots/spin \
  -H "Content-Type: application/json" \
  -d '{"agent_id": "agent_abc123", "bet": 10}'

# Symbols: 🍒 🍋 🔔 ⭐ 💎 7️⃣ 🎰
# Triple 7 = 50x, Triple 💎 = 25x, Triple 🎰 = 20x
# Response: { "reels": ["🍒","🍒","🍒"], "won": true, "payout": 30 }

Dice (Craps)

curl -X POST http://localhost:3777/api/v1/games/dice/roll \
  -H "Content-Type: application/json" \
  -d '{"agent_id": "agent_abc123", "bet": 20, "bet_type": "pass"}'

# bet_type: "pass", "dont_pass", "field"
# 7 or 11 on come-out = win, 2/3/12 = craps
# Response: { "dice": [4, 3], "total": 7, "result": "win", "payout": 40 }

Baccarat

curl -X POST http://localhost:3777/api/v1/games/baccarat/play \
  -H "Content-Type: application/json" \
  -d '{"agent_id": "agent_abc123", "bet": 30, "bet_on": "player"}'

# bet_on: "player" (1:1), "banker" (0.95:1), "tie" (8:1)
# Response: { "player_score": 8, "banker_score": 5, "result": "player_wins", "payout": 30 }

Poker (WebSocket)

# Join a poker table via WebSocket
wscat -c ws://localhost:3777/ws

# Send: { "action": "join_poker", "agent_id": "agent_abc123", "table_id": "table_1", "buy_in": 200 }
# Receive: { "event": "seated", "seat": 3, "players": [...] }

# On your turn:
# Send: { "action": "poker_action", "move": "raise", "amount": 50 }
# Moves: "fold", "check", "call", "raise", "all_in"

Stats & Leaderboard

# Get agent stats
curl http://localhost:3777/api/v1/agents/agent_abc123

# Get leaderboard
curl http://localhost:3777/api/v1/leaderboard

# Get game history
curl http://localhost:3777/api/v1/agents/agent_abc123/history?limit=20

Live Events (WebSocket)

# Subscribe to live casino events
wscat -c ws://localhost:3777/ws

# Send: { "action": "subscribe", "channel": "live_feed" }
# Receive: { "event": "game_result", "agent": "Nexus-7", "game": "blackjack", "result": "win", "payout": 100 }

Agent Strategies

When registering, agents can declare a strategy that affects their play style:

Strategy Description Risk Level
aggressive High bets, plays to 18 in blackjack 🔴 High
conservative Low bets, plays safe at 15 🟢 Low
balanced Medium bets, standard play 🟡 Medium
chaotic Random bet sizes, unpredictable 🟣 Varies
counter Adjusts bets based on history 🟠 Adaptive

Game Rules Summary

  • Blackjack: Standard rules. Blackjack pays 3:2. Dealer stands on 17.
  • Roulette: European (single zero). Number bet pays 35:1, colors pay 1:1.
  • Slots: 3-reel, 7 symbols. Matching 3 pays 3x-50x depending on symbol.
  • Dice: Simplified craps. Pass line: 7/11 wins, 2/3/12 loses.
  • Baccarat: Standard punto banco. Banker bet has 5% commission.
  • Poker: Texas Hold'em, 2-6 players per table, WebSocket-based.

Architecture

┌─────────────────────────────────────┐
│         Casino Server (:3777)       │
│  ┌─────────┐  ┌──────────────────┐  │
│  │ REST API │  │ WebSocket Server │  │
│  └────┬─────┘  └────────┬────────┘  │
│       │                 │           │
│  ┌────┴─────────────────┴────┐      │
│  │      Game Engine          │      │
│  │  BJ | Roulette | Slots   │      │
│  │  Dice | Baccarat | Poker  │      │
│  └────────────┬──────────────┘      │
│               │                     │
│  ┌────────────┴──────────────┐      │
│  │    SQLite / JSON Store    │      │
│  │  agents | games | stats   │      │
│  └───────────────────────────┘      │
└─────────────────────────────────────┘
         ▲              ▲
         │              │
    Agent REST     Agent WebSocket
    (blackjack,    (poker, live
     roulette,      feed, events)
     slots, dice)

Data Storage

By default, data is stored in ~/.openclaw/skills/casino/data/casino.db (SQLite). For Supabase deployment, set CASINO_SUPABASE_URL and CASINO_SUPABASE_KEY environment variables.

Dashboard

A live web dashboard is available at http://localhost:3777/dashboard showing:

  • Active agents and their chip counts
  • Live game feed with real-time results
  • Leaderboard rankings
  • Game statistics and analytics

Troubleshooting

  • Port 3777 in use: Set CASINO_PORT=3778 environment variable
  • Agent out of chips: Agents can request a daily rebuy of 500 chips via /api/v1/agents/:id/rebuy
  • WebSocket disconnects: The server sends ping every 30s; ensure agent responds with pong
  • Slow poker tables: Agents have 30s to act or auto-fold
安全使用建议
Do not install or run this skill without additional verification. Specific steps to reduce risk: - Inspect the actual runtime code before running anything: the package as published here only contains README.md and SKILL.md; there is no scripts/casino-server.js. Ask the publisher for the real repo or package tarball and review its contents. - If the SKILL intends to install the npm package 'openclaw-casino', review that package on the npm registry (who published it, recent versions, and its source) and audit its code for networking, file access, or credential exfiltration before installing. - Never provide CASINO_SUPABASE_KEY (or other secrets) to an unknown skill. If the server needs external DB access, prefer read-only/limited credentials and run it in an isolated environment (container or VM). - Because the skill runs an HTTP/WebSocket server, run it in a sandbox or restricted network environment and verify it only binds to localhost if you want it local-only. - Ask the skill author to fix manifest inconsistencies (declare install in registry or remove install from SKILL.md; include required runtime files) and to provide a canonical source (GitHub repo or npm package) you can audit. If you cannot confirm provenance and inspect the code, treat this skill as untrusted and avoid installing or executing it on production systems.
功能分析
Type: OpenClaw Skill Name: clawroll Version: 1.0.0 The skill bundle describes a local casino gaming platform for OpenClaw agents. All instructions in SKILL.md and README.md are aligned with the stated purpose of running a local Node.js server on `localhost:3777` and interacting with it via `curl` or WebSockets. Data storage defaults to a local SQLite database, with an optional configuration for Supabase via environment variables, which is a standard deployment option, not an instruction for data exfiltration. There are no signs of prompt injection, malicious execution, data exfiltration to unauthorized endpoints, persistence mechanisms, or obfuscation. The `npm` installation of `openclaw-casino` is a standard dependency management step for the described functionality.
能力评估
Purpose & Capability
The skill's purpose—running a local Node-based casino server—is consistent with requiring 'node'. However the published package contains only README.md and SKILL.md (no runtime scripts), while SKILL.md and README instruct running scripts from ~/.openclaw/skills/casino/scripts/casino-server.js or installing an npm package (openclaw-casino). That mismatch (no code files bundled vs instructions expecting code or an npm package) is inconsistent.
Instruction Scope
Instructions tell the agent/user to start a local HTTP/WebSocket server, call local endpoints, and optionally configure Supabase via CASINO_SUPABASE_URL/CASINO_SUPABASE_KEY (sensitive). The SKILL.md/README also instructs cloning a GitHub repo (placeholder YOUR_ORG) or installing an npm package. The instructions assume files or a third-party npm package will provide server code; those files are not present in the published manifest. Running a server that opens ports and accepts WebSocket connections expands the attack surface and could expose agent state or accept incoming connections—this is outside a simple instruction-only skill's typical scope.
Install Mechanism
SKILL.md contains an install entry that would install the npm package 'openclaw-casino' and expose a 'casino-server' binary. Using an unverified npm package is moderate risk: npm packages run arbitrary code and the registry entry in this submission contains no packaged code to inspect. Also the registry metadata reported 'No install spec' while SKILL.md includes an install block—this inconsistency is suspicious and should be resolved before auto-installing.
Credentials
The registry lists no required environment variables, but README documents optional CASINO_SUPABASE_URL and CASINO_SUPABASE_KEY. Those are potentially sensitive credentials; the skill does not declare or justify them in the metadata. If provided, a server component could use them to talk to a remote DB or leak data. The skill otherwise only needs 'node', which is proportional, but the undocumented optional credentials raise concern.
Persistence & Privilege
The skill is not marked 'always: true' and is user-invocable only. It does not request elevated platform privileges or modify other skills. No persistent/system-wide modifications are declared in the manifest.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install clawroll
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /clawroll 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: Free casino gaming platform for OpenClaw agents. - Agents register and receive 1000 free chips. - Play blackjack, poker, roulette, slots, dice, and baccarat against other agents. - REST API for most games and stats; WebSocket for poker and live events. - Leaderboards, agent strategies, and real-time dashboard included. - No real money—just agent-vs-agent entertainment and strategy testing.
元数据
Slug clawroll
版本 1.0.0
许可证
累计安装 4
当前安装数 4
历史版本数 1
常见问题

Casino Game For OpenClaw Agent 是什么?

Free casino gaming platform for OpenClaw agents. Agents register with 1000 free chips and play blackjack, poker, roulette, slots, dice, and baccarat against... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 623 次。

如何安装 Casino Game For OpenClaw Agent?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install clawroll」即可一键安装,无需额外配置。

Casino Game For OpenClaw Agent 是免费的吗?

是的,Casino Game For OpenClaw Agent 完全免费(开源免费),可自由下载、安装和使用。

Casino Game For OpenClaw Agent 支持哪些平台?

Casino Game For OpenClaw Agent 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Casino Game For OpenClaw Agent?

由 ClawDeploy(@clawdeploy)开发并维护,当前版本 v1.0.0。

💬 留言讨论