github ryoppippi/ccusage v17.0.0

latest releases: v17.0.2, v17.0.1
8 hours ago

What's Changed

blocks-live

✨ New Features

  • Full OpenAI Codex support via new @ccusage/codex package
  • Added 1M token context window pricing support for Sonnet

⚠️ Breaking Changes

  • npx ccusage mcp ➡️ npx @ccusage/mcp

🚀 Performance

  • 2/3 bundle size reduction
  • Migrated from Zod to Valibot for improved performance

📝 Installation

# Codex Analysis
bunx @ccusage/codex@latest  # ⚠️ Must include @latest with bunx
npx @ccusage/codex           # npx/pnpx work without @latest

# MCP Server  
npx @ccusage/mcp@latest --type http --port 8080 # for remote mcp
npx @ccusage/mcp@latest # for stdio

# The Original
bunx ccusage
npx ccusage

⚠️ Important for bunx users: When using bunx with @ccusage/codex, you MUST include the @latest suffix (e.g., bunx @ccusage/codex@latest).

Reason: Bun 1.2.x's bunx has a behavior where it prioritizes binaries matching the package name suffix when given a scoped package. For example, with @ccusage/codex, bunx looks for a codex binary in PATH first. If you have an existing codex command installed, that will be executed instead of the intended package. Adding @latest forces bunx to fetch and run the correct package. This issue does not affect npx or pnpx.


   🚀 Features

   🐞 Bug Fixes

    View changes on GitHub

Don't miss a new ccusage release

NewReleases is sending notifications on new releases.