szarkans/gamble-with-claude-code

在终端玩老虎机、欧洲轮盘和二十一点。押上 Claude Code 今天烧掉的 token。没有真钱,只有值得怀疑的决定。
szarkans/gamble-with-claude-code

Claude Code 里面就有一间赌场。老虎机、轮盘和二十一点——押上的是真正由 Claude Code 今天烧掉的 token。
<h2 align="center">这是什么?</h2>反正你每天都会烧掉几百万 token,不如拿来赌。
<h2 align="center">安装</h2>[!IMPORTANT] 没有真钱,也没有真实 token:你不会花掉它们,也不可能赢得它们。“赌博 token”只是 Claude 今天工作时烧掉的 token。
/plugin marketplace add szarkans/gamble-with-claude-code
/plugin install gamble-with-claude-code@gamble-with-claude-code
或者:
claude plugin marketplace add szarkans/gamble-with-claude-code
claude plugin install gamble-with-claude-code@gamble-with-claude-code
然后执行 /reload-plugins(或重启 Claude Code),再执行:
/casino
要求:Claude Code 2.1.287+(带 mods 的版本)和 python3。让终端高度约为 50 行,或者使用 PageDown 滚动面板。
想不动手就获得新游戏?依次选择 /plugin → Marketplaces → gamble-with-claude-code → Enable auto-update。
<h2 align="center">游戏</h2>老虎机——三条转轴,777 赔付 ×20,rm -rf ×3 赔付 ×50。
轮盘——欧洲轮盘,0–36。红黑、单双、两半、十二列、数十组,或单个数字。
二十一点——庄家在 17 点停牌,blackjack 以 3:2 赔付,可以加倍下注;暂时不能分牌。
<h2 align="center">操作</h2>z x c——老虎机、轮盘、二十一点
1–4——下注 10%、25%、50%,或 all in
s——旋转 / 发牌 / 停牌
h——要牌,d——加倍
esc 或 q——回去工作
如果终端报告支持鼠标,鼠标点击也能操作。
<h2 align="center">token 如何计算?</h2>数据来自你电脑上 Claude Code 自己的会话日志(~/.claude/projects 或 $CLAUDE_CONFIG_DIR):今天的输入、cache writes 和输出。cache reads 不计入——重新读取相同上下文不算工作。
任何内容都不会离开你的电脑。这个 mod 完全不发出网络请求。
<h2 align="center">另外</h2>不是 Claude Code 用户,或者不喜欢终端视图?看看 gamble-your-tokens——同一间赌场,但在浏览器里运行!

与 Anthropic 没有关系,只是一个有 token 问题的粉丝。
请先查看作者 README 确认 marketplace 和插件名称;命令可能随仓库结构改变。
claude plugin marketplace add szarkans/gamble-with-claude-code claude plugin install gamble-with-claude-code
a casino right inside Claude Code. slots, roulette and blackjack — and you bet the tokens Claude Code actually burned today.
<h2 align="center">what's this about?</h2>you burn millions of tokens a day anyway. might as well gamble them.
<h2 align="center">install</h2>[!IMPORTANT] no real money. not real tokens either: you don't spend them and you can't win them. your "gambling tokens" are just the tokens Claude burned working today.
/plugin marketplace add szarkans/gamble-with-claude-code
/plugin install gamble-with-claude-code@gamble-with-claude-code
or
claude plugin marketplace add szarkans/gamble-with-claude-code
claude plugin install gamble-with-claude-code@gamble-with-claude-code
then /reload-plugins (or restart Claude Code) and
/casino
requirements: Claude Code 2.1.287+ (the one with mods) and python3.
make the terminal ~50 rows tall, or scroll the panel with PageDown.
want new games without lifting a finger? /plugin → Marketplaces → gamble-with-claude-code → Enable auto-update.
slots — three reels, 777 pays ×20, rm -rf ×3 pays ×50.
roulette — european, 0–36. red/black, even/odd, halves, dozens, or a single number
blackjack — dealer stands on 17, blackjack pays 3:2, double down. no split. yet.
<h2 align="center">controls</h2>z x c — slots, roulette, blackjack
1–4 — bet 10%, 25%, 50%, all in
s — spin / deal / stand
h — hit, d — double
esc or q — back to work
mouse clicks work too, where your terminal reports them.
<h2 align="center">how are tokens counted?</h2>from Claude Code's own session logs on your machine (~/.claude/projects, or $CLAUDE_CONFIG_DIR). today's input + cache writes + output. cache reads don't count — re-reading the same context isn't work.
nothing leaves your machine. the mod makes zero network calls.
<h2 align="center">also</h2>not claude code's user or don't like in-terminal view? check out gamble-your-tokens - same casino but in browser!

not affiliated with Anthropic. just a fan with a token problem.