ClaudeMods
☰
JA
● 0 人がオンライン ・閲覧 0 回
スポンサー作品を投稿
GitHub リポジトリ · 投稿者 szarkans

gamble-with-claude-code

ターミナルでスロット、ヨーロピアンルーレット、ブラックジャック。今日 Claude Code が消費した token を賭ける。現金はなく、判断だけが怪しい。

翻訳済み

この mod について

<h1 align="center">gamble with claude code</h1> <p align="center"><a href="README.ru.md">[🇷🇺 →]</a> · <a href="README.zh.md">[🇨🇳 →]</a> </p> <p align="center"><img src="docs/demo.gif" alt="slots, roulette and blackjack inside Claude Code" width="720"></p>

Claude Code の中にカジノがあります。スロット、ルーレット、ブラックジャックで、今日 Claude Code が実際に消費した token を賭けます。

<h2 align="center">これは何?</h2>

どうせ毎日何百万 token も使うのだから、賭けてもよいでしょう。

  • 深夜から Claude Code が消費した各 token が、ウォレットの token になります。
  • 全部失ったら仕事に戻ります。prompt ごとにウォレットは補充されます。
  • ウォレットは深夜に消えます。context window のように、ただし毎日です。

[!IMPORTANT] 現金は使いません。本物の token でもありません。消費も獲得もできず、「ギャンブル token」は今日 Claude が作業で消費した token にすぎません。

<h2 align="center">インストール</h2>
/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>

スロット——3 リール、777 は ×20、rm -rf ×3 は ×50。

ルーレット——ヨーロピアン、0–36。赤黒、偶奇、半分、ダース、列、単一番号に賭けます。

ブラックジャック——ディーラーは 17 で止まり、ブラックジャックは 3:2、ダブルダウンが可能です。スプリットはまだありません。

<h2 align="center">操作</h2>

z x c——スロット、ルーレット、ブラックジャック
1–4——10%、25%、50%、オールイン
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 をどうぞ。同じカジノをブラウザで遊べます。

gamble-your-tokens


Anthropic とは無関係です。token に問題を抱えたファンが作りました。

インストール

まず作者の README で marketplace とプラグイン名を確認してください。コマンドはリポジトリの構成によって変わる場合があります。

claude plugin marketplace add szarkans/gamble-with-claude-code
claude plugin install gamble-with-claude-code
原文 / README
<h1 align="center">gamble with claude code</h1> <p align="center"><a href="README.ru.md">[🇷🇺 →]</a> · <a href="README.zh.md">[🇨🇳 →]</a> </p> <p align="center"><img src="docs/demo.gif" alt="slots, roulette and blackjack inside Claude Code" width="720"></p>

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.

  • every token Claude Code burned since midnight is a token in your wallet.
  • lost it all? go back to work. the wallet refills with every prompt.
  • the wallet burns at midnight. like your context window, but daily.

[!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.

<h2 align="center">install</h2>
/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.

<h2 align="center">games</h2>

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!

gamble-your-tokens


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

関連作品