explaingit

ratelworks/token-horse

Analysis updated 2026-05-18

13JavaScriptAudience · developerComplexity · 2/5LicenseSetup · easy

TLDR

A fun terminal statusline animation of a pixel horse that gallops faster the more tokens your Claude Code or Codex CLI session is generating.

Mindmap

mindmap
  root((Token Horse))
    What it does
      Pixel horse animation
      Reacts to token speed
      Taxi meter inspired
    Tech stack
      JavaScript
      Node.js
      ANSI terminal blocks
    Use cases
      Claude Code statusline
      Codex CLI session watch
      Fun token speed gauge
    Audience
      AI coding tool users
      Terminal enthusiasts
    Install
      npm install global
      npx try without install

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Add a fun visual indicator of AI token throughput to your Claude Code statusline.

USE CASE 2

Watch Codex CLI session token usage in a separate terminal pane or tmux split.

USE CASE 3

Get an at-a-glance sense of how fast your current AI session is working.

What is it built with?

JavaScriptNode.jsANSI terminal graphics

How does it compare?

ratelworks/token-horse09catho/axonabdulrdeveloper/react--tic-tac-toe
Stars131313
LanguageJavaScriptJavaScriptJavaScript
Setup difficultyeasymoderateeasy
Complexity2/54/51/5
Audiencedeveloperresearcherdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

Single npm global install, or try it instantly with npx.

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

In plain English

Token Horse is a small terminal animation that shows a pixel-art horse reacting to how fast an AI model is generating tokens. When the AI is writing quickly the horse gallops, and when work stops the horse stands still and blinks occasionally while waiting for the next task. The project is inspired by the tiny horses that used to appear on old taxi meters, running faster as the fare increased. The tool works with two AI coding environments: Claude Code and the Codex CLI from OpenAI. For Claude Code it plugs into the status line shown at the bottom of the session, configured through a settings.json file with a one-second refresh interval. For Codex CLI, which does not allow external commands in its built-in status area, Token Horse instead reads the session log files that Codex writes to disk and runs separately in a different terminal pane or tmux split. In Claude Code mode, the horse responds to the actual tokens the current session has used. It reads the session transcript file, adds up input and output tokens (excluding cache reads), calculates the rate of change between updates, and maps that number to the horse's speed. The speed is a smooth continuum rather than discrete steps: near 20 tokens per second the horse trots slowly, and above around 900 tokens per second it runs at full gallop. A burst of tokens is reflected immediately in the animation. The horse is drawn using colored terminal blocks (truecolor ANSI) in shades of green, so it looks consistent across different monospace fonts. The default size is 32 characters wide by 8 lines tall. A smaller option at half that size is available with a flag. Installation is a single npm global install. The package can also be tested without installing it using npx. It is licensed under MIT by Ratelworks Inc.

Copy-paste prompts

Prompt 1
Show me how to install Token Horse and wire it into my Claude Code statusline.json.
Prompt 2
Explain how Token Horse calculates the horse's speed from the session transcript.
Prompt 3
Help me set up Token Horse to watch a Codex CLI session in a tmux split.
Prompt 4
What input JSON formats does Token Horse accept for driving the animation speed?

Frequently asked questions

What is token-horse?

A fun terminal statusline animation of a pixel horse that gallops faster the more tokens your Claude Code or Codex CLI session is generating.

What language is token-horse written in?

Mainly JavaScript. The stack also includes JavaScript, Node.js, ANSI terminal graphics.

What license does token-horse use?

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

How hard is token-horse to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is token-horse for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.