token-cost-computation

Community

Compute API token costs accurately.

Authortankygranny05
Version1.0.0
Installs0

System Documentation

What problem does it solve?

This Skill helps you understand and estimate the costs associated with using AI models by computing token usage from log files.

Core Features & Use Cases

  • Token Usage Calculation: Aggregates input and output tokens for both Codex (OpenAI) and Claude (Anthropic) models.
  • Cost Estimation: Calculates estimated API costs based on fetched or pinned pricing data.
  • Use Case: Analyze your monthly AI spending by feeding your SSE JSONL logs into this skill to get a detailed breakdown of token consumption and associated costs for different models.

Quick Start

Run the compute_token_costs.py script with paths to your Codex and Claude SSE logs.

Dependency Matrix

Required Modules

None required

Components

scripts

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: token-cost-computation
Download link: https://github.com/tankygranny05/agent-box/archive/main.zip#token-cost-computation

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.