Chapter 30 · CLI
Costs, privacy, troubleshooting and full index
The final chapter closes the CLI part: cost management and usage tracking, privacy and security principles, common troubleshooting, and a full index of commands, settings, environment variables and tools for self-lookup.
Video
Steps
- Track usage and costs with the built-in monitoring tools; build saving habits: right model, clean context and timely compact.
- Apply privacy principles: minimal permissions, secrets in a vault or secret manager, and awareness of what goes to the cloud.
- For issues, walk the troubleshooting page: install, auth, network and performance problems with ordered fixes.
- Keep the reference pages at hand: commands, settings, env vars and tools are the dictionary you return to.
Common pitfall: Unmonitored usage produces a surprising bill at month end; a short weekly check costs less than one surprise.
Hands-on exercise: Check your usage report and record where most consumption goes. Identify one habit change that saves the most.
Filmed demo · Video is added in the media phase
Recap
Comprehension check
What is the best way to control Claude Code costs?
Recap
- Usage tracking prevents surprises
- Privacy: minimal permissions and managed secrets
- Reference pages are your dictionary