claude-times
Analiza el historial JSONL de Claude Code para generar reportes detallados de:
- ⏱ Tiempo de trabajo por sesión e instrucción
- 🔢 Consumo de tokens (input, cache read, cache write, output)
- 💰 Costos estimados por modelo
- 🛠 Uso de herramientas (Read, Write, Bash, etc.)
- 📊 Exportación a CSV y JSON
🎯 Objetivo
Proveer transparencia y control técnico sobre el uso real de Claude Code:
- Identificar instrucciones costosas
- Optimizar uso de modelos
- Detectar desperdicio por errores API
- Analizar eficiencia del cache
- Medir productividad asistida por IA
📦 Requisitos
- Python 3.8+
- Claude Code instalado
- Acceso al directorio
~/.claude/projects
🚀 Uso
claude-times
Opciones principales
--list # Lista proyectos
--project NOMBRE # Filtrar proyecto
--all # Todas las sesiones
--days 30 # Últimos 30 días
--detail # Timeline detallado
--csv # Exportar CSV
--json # Exportar JSON
Ejemplo:
claude-times --project lego --days 30 --detail
🧠 Modelos soportados
Incluye pricing estimado para:
- Claude Opus 4.6
- Claude Opus 4.5
- Claude Sonnet 4.5
- Claude Haiku 4.5
Los costos mostrados corresponden a precios API públicos como referencia comparativa.
🔐 Licencia
Este proyecto está licenciado bajo:
GNU Affero General Public License v3.0 (AGPL-3.0-or-later)
Esto significa que:
- ✔ Puedes usarlo
- ✔ Puedes modificarlo
- ✔ Puedes redistribuirlo
- ✔ Puedes usarlo comercialmente
- ✔ Puedes integrarlo en SaaS
Pero:
- ⚠ Debes mantener esta misma licencia
- ⚠ Debes publicar el código fuente si lo distribuyes o lo ofreces como servicio
Texto completo: https://www.gnu.org/licenses/agpl-3.0.html
👤 Autor
J. Fernando Gallarday V.
Innova a tu Manera Soluciones Digitales S.A.C. (A Tu Manera Digital)
Perú
⚠ Descargo de responsabilidad
Este software se proporciona "tal cual", sin garantía de ningún tipo. Los cálculos de costo son estimaciones basadas en precios públicos y pueden no reflejar el costo real en planes de suscripción.
⭐ Contribuciones
Pull requests y mejoras son bienvenidas. Al contribuir aceptas que tu código será distribuido bajo AGPL-3.0.
Metadata
Release files for claude-times 1.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| claude_times-1.0.2.tar.gz | 24.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| claude_times-1.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 49.3 kB
Release files / claude_times-1.0.2.tar.gz
| Download URL | claude_times-1.0.2.tar.gz |
|---|---|
| Size | 24.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5c10d6cff0836a6addfe1190ad581023ba3f2a2fafd955768d72db2830cdcb34
|
|
BLAKE2b-256 checksum How to use checksums |
733f4ab768932f807666ed5dfc66d032a0b82e785d39a3cd6685886d48be36ac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 22, 2026.
Transparency logRelease files / claude_times-1.0.2-py3-none-any.whl
| Download URL | claude_times-1.0.2-py3-none-any.whl |
|---|---|
| Size | 24.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7dc6ca83cbb18b79cdef6cfd754a571aef73efff4f8972198e84f50371ac73b8
|
|
BLAKE2b-256 checksum How to use checksums |
fd69639882efb3eb3c62439cd96849536b98d2190b51432f5cc3c85014988062
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 22, 2026.
Transparency log