JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 276
  • Score
    100M100P100Q92974F
  • License MIT

Track and analyze Claude Code usage

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (tokenuse) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    tokenuse

    Track and analyze your Claude Code usage with TokenUse.

    Quick Start

    # One command - auto signs in if needed
    npx tokenuse@latest

    Installation

    One-time execution (no install needed)

    # npx (recommended)
    npx tokenuse@latest
    
    # bunx
    bunx tokenuse@latest
    
    # pnpm
    pnpm dlx tokenuse@latest

    Global installation

    # npm
    npm install -g tokenuse
    
    # yarn
    yarn global add tokenuse
    
    # pnpm
    pnpm add -g tokenuse
    
    # bun
    bun add -g tokenuse

    Homebrew (macOS/Linux)

    brew tap tokenuse/tap
    brew install tokenuse

    Usage

    # Start tracking (auto signs in if needed)
    tokenuse
    
    # Check tracking status
    tokenuse status
    
    # Show version
    tokenuse version

    Commands

    • tokenuse - Start tracking (auto signs in if not authenticated)
    • tokenuse status - Show tracking status
    • tokenuse version - Show version information

    Requirements

    • Node.js 18 or later
    • macOS or Linux
    • Claude Code installed and used at least once

    How It Works

    TokenUse monitors your Claude Code session logs and tracks:

    • Token usage (input, output, cache)
    • Session activity
    • Model usage

    Data is securely streamed to the TokenUse API for analysis and visualization.

    License

    MIT