JSPM

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

CLI tool to view your MPP spending history powered by paylog.dev

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 (@kakedashi/paylog) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    paylog

    CLI tool to view your MPP spending history, powered by paylog.dev.

    Usage

    npx @kakedashi/paylog report --days 7
    npx @kakedashi/paylog report --days 30 --enrich
    npx @kakedashi/paylog wallet
    npx @kakedashi/paylog balance

    Commands

    paylog report

    Show a spending report for your Tempo wallet.

    Options:
      -d, --days <n>      Past N days (default: 7)
      --from <date>       Start date YYYY-MM-DD
      --to <date>         End date YYYY-MM-DD
      --wallet <address>  Override auto-detected wallet
      --enrich            Enrich Locus payments using local history

    The --enrich flag reads your shell history and Claude Code chat logs to identify which Locus MPP services you used, since all Locus services share a single on-chain recipient address.

    paylog wallet

    Display the auto-detected wallet address and its source.

    paylog balance

    Run tempo wallet whoami (requires the Tempo CLI).

    Wallet Auto-Detection

    The wallet address is resolved in this order:

    1. ~/.agentcash/wallet.jsonaddress field
    2. ~/.mppx/wallet.jsonaddress field
    3. ~/.tempo/wallet/keys.tomlwallet_address field
    4. --wallet 0x... option

    --enrich Details

    Locus routes 40+ services through a single on-chain recipient (0x060b0fb0...), making them indistinguishable from on-chain data alone. The --enrich flag uses local history to estimate which service was used:

    History sources scanned:

    • ~/.zsh_history (with timestamps)
    • ~/.bash_history
    • ~/.local/share/fish/fish_history
    • ~/.claude/projects/*/chat.jsonl

    Matching logic:

    Confidence Condition
    High Timestamp matches within ±30 seconds
    Medium Timestamp matches within ±60 seconds + price match
    Low Price match only

    Example output:

      Locus (paywithlocus.com)    $0.048   4 txns
          ┌─ Estimated breakdown (from local history) ──────────
          │ ✓ Brave Search      $0.010  1 txn   confidence: high
          │ ✓ Perplexity        $0.010  1 txn   confidence: high
          │ ? DeepSeek          $0.020  1 txn   confidence: medium
          └─ * estimated via local history correlation ─────────

    Cost

    Reports cost $0.001 USDC per call via MPP (Tempo chain). Your wallet must be funded.

    License

    MIT