Idle RPG for macOS and Windows
Every token your agents burn is a coin
An endless idle RPG that lives in your system tray. Your coding agents write code, the party fights, and you spend the tokens they burn on your heroes.
Free and open source under MIT. A 6.7 MB download for macOS, 2.7 MB for Windows.
Counts the tokens of
- Claude Code
- Codex
- Gemini CLI
- Qwen Code
- OpenCode
- Kilo Code
How it works
One burned token is one coin
The game reads the session logs your agents already write on your disk, counts the tokens they burn and credits one coin per token. The fight never pays. Stuck on a boss? Ship more work.
The fight
It plays itself. You decide what to buy.
-
∞
Endless stages
Packs grow by one foe every 10 stages. Every 5th stage is a boss.
-
10%
Auto battle
Heroes attack on their own. Crits hit for 2.5× damage.
-
50%
Tap to strike
Click the arena to hit the front foe for half your party's power.
-
1M
Ultimate
About an hour of agent work charges seven seconds of party damage.
-
×4
Milestones
Every 25 levels a hero's damage and health grow fourfold.
-
10 s
Gentle wipes
A fallen party is back in ten seconds. Levels and coins stay.
-
8 h
Offline progress
Close the window and the party keeps fighting for up to eight hours.
-
100
Ascension
From stage 100, start over with lasting power from your deepest stage.
Fourteen heroes
Hire a party
Strikers deal damage, tanks hold the party's health and healers undo a share of the foes' damage. Strikers and tanks each come with all four attacks: slash, arrow, bash and spell. Every hero is stronger per coin than the one before. The rare ones unlock with your lifetime burn: the Druid takes 12.8 billion tokens.
Seventy-two bosses
Eight creatures, nine elements
Every creature comes in every element. The creature brings the attack: dragons breathe fire, golems slam, wraiths swing a scythe. The element brings the palette and the weather: embers on a lava floor, snow, lightning and rain, a summoning ring.
Privacy
Your tokens stay yours
-
Only the
usagenumbers are read. Prompts and code are never stored or shown. - Your work never leaves your machine. The one request the app makes is the update check on GitHub.
-
Everything sits in
~/.token-heroes, so a reinstall keeps your progress. - Only the host adds coins. The window can spend them, never more than you have.
- macOS download
- 6.7 MB
- Memory in the tray
- 58 MB
- CPU when idle
- 0%
- Token to coin
- <1 s
Open source
Come build it
The content is plain data, one entity per file. Add a creature or an element, draw an enemy or teach the host a new agent. You don't need Rust or React to start.