Remix.run Logo
_august 3 days ago

Incredible, thank you for making this!

Can this be installed with uv? https://github.com/astral-sh/uv

Edit:

  # Install uv
  curl -LsSf https://astral.sh/uv/install.sh | sh

  # Install the required CLI tool (Node.js)
  npm install -g ccusage

  # Clone and setup
  git clone https://github.com/Maciek-roboblog/Claude-Code-Usage-Monitor.git
  cd Claude-Code-Usage-Monitor

  # Install Python deps with uv
  uv add pytz
  chmod +x ccusage_monitor.py

  # Run it
  uv run python ccusage_monitor.py --plan max20 --timezone America/New_York
whyho 3 days ago | parent | next [-]

If the repo was structured as a package e.g. with project.toml and such there would be an even faster one-liner with pipx (https://pipx.pypa.io/latest/):

> pipx install git+https://github.com/Maciek-roboblog/Claude-Code-Usage-Monitor

> ccusage_monitor

I think there is a similar command for uv; uvx? Although, I am not sure if uvx has the same functionality / purpose as pipx.

throwaway314155 3 days ago | parent | prev [-]

This is appreciated but FWIW basically anything that can be installed with pip is also trivial (easier, even) to install with uv.