My notes about Claude Code, a coding agent from Anthropic:

Installation

curl -fsSL https://claude.ai/install.sh | bash

Check usage

ccusage can be used to check usage of Claude Code. It calculates the total number of tokens along with price estimates. To run with Deno via mise:

mise exec deno -- deno run --allow-env --allow-read --allow-net=raw.githubusercontent.com:443 --allow-sys=homedir npm:ccusage@latest

I do this in my Fish shell so I can run ccu directly:

alias --save ccu 'mise exec deno -- deno run --allow-env --allow-read --allow-net=raw.githubusercontent.com:443 --allow-sys=homedir npm:ccusage@latest'