Sane Claude Code installation

I'm just starting to learn to use Claude Code and, like most software, it requires some fiddling to have a relatively sane experience. This is a short checklist of useful things.

ActionReason
Install through package managerAvoid npm or installation bash scripts
CLAUDE_CONFIG_DIR="${XDG_CONFIG_HOME}"/claudeRespect the XDG spec
CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1Disable auto-updates, error reporting, telemetry and the \bug command

*Claude Code version 2.0.28