All shelves / Mods / Play
gamble-with-claude-code
By szarkans
gamble-with-claude-code is a Claude Code play mod by szarkans.
Opens a casino pane with slots, roulette, and blackjack, where you bet the tokens Claude Code burned today. No real money, and nothing you can win.
Draws
Install
The marketplace name is gamble-with-claude-code.
/plugin marketplace add szarkans/gamble-with-claude-code /plugin install gamble-with-claude-code@gamble-with-claude-code
It runs inside the Claude Code process. The side panel is only what the author's README names. Read the repo before you install, or run claude plugin validate on the plugin folder.
- Version
- 0.1.0
- License
- MIT
- Repo stars
- 6
- Last change
- 2026-10-03
What it can reach
- Draws in the session
- Reads usage or context figures
- Calls another program on this machine
Claude Code 2.1.287 or later and python3. After the install, /reload-plugins or a restart, then /casino. Make the terminal about 50 rows tall, or scroll the panel with PageDown. The other install form: claude plugin marketplace add szarkans/gamble-with-claude-code, then claude plugin install gamble-with-claude-code@gamble-with-claude-code. Keys: z, x, and c pick the game, 1 to 4 bet 10%, 25%, 50%, or all in, s spins, deals, or stands, h hits, d doubles, and Esc or q goes back to work; mouse clicks work where the terminal reports them.
The marketplace name is gamble-with-claude-code, and it lists this one plugin, from the repository. A game while Claude works is why this page files it under play. cc-arcade draws nine games and a pet above the prompt. arcade offers a game above the prompt once Claude has worked for 10 seconds. This one is a casino whose wallet is today's tokens: input, cache writes, and output from Claude Code's own session logs, without cache reads. Lose it all and it refills with every prompt; it burns at midnight. The author says nothing leaves your machine and the mod makes no network calls. The same casino runs in a browser as gamble-your-tokens.
Demo
What it hooks into
session.startWhen a session startscommand.runWhen you run its slash command/casinoui.renderDraws into the sessionPaneui.messageAdds a message to the sessionPaneui.closeWhen its pane closessession.endWhen a session ends
Read from the on() calls in its hook modules. Open its source under Files to check what each one does.
Slash commands 1
/casinoSlots, roulette and blackjack on today's Claude Code tokens
Files
The author's README and source, 4 files. They load when you open them.
Facts
- Author
- szarkans
- Category
- Play
- Marketplace
- gamble-with-claude-code
- Version
- 0.1.0
- License
- MIT
- Repo stars
- 6
- Last change
- 2026-10-03
- Language
- TypeScript
- Files
- 51