Points from work
Input, output, cache, model, and runtime signals become game resources.
Agent token city game
TokenCity converts Codex, Claude, and OpenCode token usage into points, resources, districts, buildings, and a shareable low-poly 3D city.
Project
Input, output, cache, model, and runtime signals become game resources.
Local projects become anonymous zones with editable public aliases.
The tokencity skill uses JSON commands to plan, build, upgrade, and sync.
Supported local sources
Reads local Codex thread token totals and turns terminal work into automation-heavy city growth.
Reads Claude Code JSONL usage and maps long research sessions into knowledge districts.
Reads OpenCode local session usage and adds another terminal-native civilization to the city.
CLI install
git clone https://github.com/ericyangpan/tokencity.gitcd tokencity && pnpm install --ignore-scriptspnpm --filter tokencity dev -- configure --codex-path ~/.codex/state_5.sqlite --claude-projects-path ~/.claude/projects --opencode-data-path ~/.local/share/opencode --sync-token <token> --api-url https://tokencity.app/api/sync --jsonpnpm --filter tokencity dev -- preview --jsonpnpm --filter tokencity dev -- sync --include-device --jsonPrivacy boundary
Raw prompts, code, titles, and project paths stay on your machine.
The CLI uploads anonymized session batches with a scoped bearer token.
The site renders City DSL snapshots, aliases, resources, and city growth.
Community