From the course: Build AI-Enhanced CI/CD Pipelines: Automate Code Reviews, PR Summaries & GitHub Issues with Copilot & Claude

Unlock this course with a free trial

Join today to access over 24,900 courses taught by industry experts.

Monitor Claude Code expenses

Monitor Claude Code expenses

- [Narrator] Now, one of the things that we saw on GitHub Copilot is how do we know how much premium request we have? Something similar in Claude Code is how to know how much our usage has costed us. And if you remember when we were setting up Claude Code that there are two ways to install it, either through Claude AI Subscription or you use Claude Console and pay per the API usage. In either case, there is a command or slash command called /cost, And when you enter, I'm currently on Claude AI Subscription Max plan, which is why it says, "With your Claude API subscription, "no need to monitor cost - "your subscription includes Claude Code usage," which means since I'm on a Max plan with 5x usage, I have not hit the limit so that they will block me for few hours. But if you're using a Claude API Console, you will see how many tokens you have consumed by sending the input and getting the output tokens by writing the…

Contents