Claude Code usage · device setup
One-time setup. After this, usage reports itself in the background.
- Open PowerShell (Start menu → type PowerShell).
- Open Terminal.
- Paste this and press Enter:
- Close and reopen Claude Code / VS Code once.
The command works once and expires in 30 minutes. This username gets locked to the machine that runs it.