Repository navigation
mcc v0.5.0
mcc usage --all looks every account's usage up live for one run, the default profile included, without a config change and with a risk notice each time, and saves what it finds to the mcc statusline cache, so plain mcc usage, mcc list and mcc run show those numbers afterwards with their age.
Added
mcc usage --alllooks every account's usage up live for one run, the default profile included, with each profile's own login instead of themcc statuslinecache, without turning on[usage] live = trueor changing the config. Because it reads and sends each profile's OAuth access token to Anthropic's undocumented usage endpoint, it prints a risk notice on stderr every time it runs (with-qtoo;--jsonon stdout is unaffected), andmcc usage --helpshows that notice in full. What it finds is saved to~/.mcc/state/<profile>/usage.json, the same cachemcc statuslinewrites, so a latermcc usagewithout--all(andmcc listandmcc run) shows those numbers with their age until a window resets or newer numbers are cached; an account it can't read keeps what was cached.--allcan't be combined with a profile name (exit 2), andMCC_NO_USAGE=1still turns usage off. Without--all,mcc usagebehaves as before. (#94)
Full Changelog: v0.4.0...v0.5.0
Install
The install script downloads the prebuilt binary for your platform, checks its SHA-256 checksum and installs it into ~/.local/bin, so you don't need Rust:
curl -fsSL https://raw.githubusercontent.com/luongnv89/mcc/main/install.sh | shOr with Homebrew, which builds mcc from source with its own Rust:
brew install luongnv89/tap/mccThis release carries mcc-<target>.tar.gz archives for macOS and Linux on x86_64 and arm64 (x86_64-apple-darwin, aarch64-apple-darwin, x86_64-unknown-linux-musl, aarch64-unknown-linux-musl; the Linux builds are static), each with a .sha256 file, plus SHA256SUMS. To build from source, see the README.