claude-cost-cliQuery Claude API usage and cost reports from the command line. Secure macOS Keychain storage for Admin API key. Table/JSON output.
Install via ClawdBot CLI:
clawdbot install cyberash-dev/claude-cost-cliInstall claude-cost-cli via npm:
Install claude-cost-cli via npmRequires:
Grade Fair — based on market validation, documentation quality, package completeness, maintenance status, and authenticity signals.
Calls external URL not in known-safe list
https://github.com/cyberash-dev/claude-cost-cliUses known external API (expected, informational)
api.anthropic.comAudited Apr 17, 2026 · audit v1.0
Generated Mar 1, 2026
A freelance developer uses the CLI to monitor API usage and costs for multiple client projects, ensuring they stay within budget and can invoice accurately. By filtering by API key IDs and grouping by model, they track expenses per client and model type, with JSON output for automated reporting.
A startup offering a SaaS product integrated with Claude uses the CLI to analyze usage patterns and costs over the last 30 days, optimizing resource allocation. They use custom date ranges and grouping by workspace to identify high-cost features and adjust pricing tiers accordingly.
An enterprise IT team uses the CLI to audit Claude API usage across departments for compliance and cost control. They leverage hourly granularity and filtering by model to detect anomalies, with secure Keychain storage ensuring sensitive API keys are protected on macOS systems.
A university research team uses the CLI to track Claude API costs for a long-term AI study, using period flags and sum outputs to manage grant funds. They rely on JSON output for integration with budgeting tools and ensure no data is cached for security.
A digital marketing agency uses the CLI to generate cost reports for clients using Claude-powered services, customizing outputs with group-by flags for transparency. They automate reports via scripting with JSON flags and verify installation via provenance attestation for trust.
Offer a free tier with basic usage tracking and charge for advanced features like custom date ranges, multi-group reporting, or automated alerts. Revenue comes from subscription upgrades as users scale their Claude API monitoring needs.
Provide consulting services to help businesses integrate the CLI into their workflows, offering custom scripts, training, and support. Revenue is generated through hourly rates or project-based fees for setup and optimization.
License the CLI as a white-label tool for large organizations to rebrand and use internally, with added features like enhanced security audits or API extensions. Revenue comes from licensing fees and ongoing maintenance contracts.
💬 Integration Tip
Use the --json flag for easy integration with data pipelines or dashboards, and ensure Node.js >= 18 is installed on macOS for compatibility.
Scored Apr 19, 2026
Remote-control tmux sessions for interactive CLIs by sending keystrokes and scraping pane output.
Runs shell commands inside a dedicated tmux session named claw, captures, and returns the output, with safety checks for destructive commands.
Capture, inspect, and compare screenshots of screens, windows, regions, web pages, simulators, and CI runs with the right tool, wait strategy, viewport, and...
Generate or refine agent-usable CLIs for existing software/codebases using the CLI-Anything methodology. Use when the user wants to turn a GUI app, desktop t...
Command-line tool to manage Google Workspace services including Gmail, Calendar, Drive, Sheets, Docs, Slides, Contacts, Tasks, People, Groups, and Keep.
Automate Windows GUI interactions (mouse, keyboard, windows) using PowerShell. Use when the user needs to simulate user input on the desktop, such as moving the cursor, clicking buttons, typing text in non-web apps, or managing window states.