Tallybook

Calcula el precio de tus sesiones de Claude Code y Codex a partir de las transcripciones en disco, muestra cuánto costó cada agente en cualquier período y te dice en lenguaje sencillo qué habría sido más barato. CLI, interfaz de navegador y servidor MCP.

Documentación

Tallybook logo

Tallybook

Precios para cada sesión de Claude Code y Codex en tu disco, muestra cuánto costó cada agente en cualquier período, y te dice en lenguaje sencillo qué habría sido más barato.

CI Latest release MCP server MIT License Glama Quality

Documentación


Sin proxy, sin clave de API, nada sale de tu máquina. Ejecútalo como CLI, abre el mismo informe en tu navegador con tallybook --serve, o añade tallybook-mcp a Claude Code o Codex y pregúntale al agente mismo cuánto está gastando y qué sería más barato.

tallybook --serve: the same report in your browser
En tu navegador · tallybook --serve

tallybook in the terminal: the report, a week-on-week comparison, and spend by sub-agent
En tu terminal · tallybook

Más en la documentación.

Instalación

brew install --cask magna-nz/tap/tallybook

También disponible vía go install github.com/magna-nz/tallybook/cmd/tallybook@latest, o como descarga de lanzamiento. Funciona en macOS, Linux y Windows.

Añade el servidor MCP para que tu agente pueda revisar su propio gasto durante la sesión — tallybook-mcp se incluye junto con tallybook, así que no requiere instalación por separado:

claude mcp add tallybook -- tallybook-mcp   # Claude Code

Para Codex, añádelo a ~/.codex/config.toml:

[mcp_servers.tallybook]
command = "tallybook-mcp"

Uso

tallybook                         # this period's report: the five biggest findings
tallybook --serve                 # the same report, findings and sessions in your browser, on localhost
tallybook findings                # every finding, grouped by what kind of change it asks for
tallybook --since 7d --compare    # this week against last week: spend, sessions, cache hit rate
tallybook finding 1               # finding #1 in full: what happened, why, what to change
tallybook finding 1 --evidence    # the same, with the sessions behind it
tallybook finding 1 --patch       # finding #1's fix, as an applyable diff
tallybook agents                  # spend by sub-agent type, with the model and effort each ran at
tallybook sessions --sort cost    # sessions ranked by what they cost
tallybook changes                 # did a past model swap actually save money?
tallybook setup hook              # record sessions automatically as they end

Documentación

La referencia de comandos, las herramientas del servidor MCP, la configuración y el modelo de privacidad viven en el sitio de documentación.

Licencia

MIT