Back to skills
SKILL.md
Cli Cost Usage
ASecurityView cost breakdowns, token usage, and call logs from the CLI. Filter by provider, model, or date range. Export usage reports and inspect per-connection spending.
- 30 stars
- 0 votes
- 0 copies
- 3 views
- Added November 8, 2026
Works with
Security analysis
96/100- Installs packages at runtime which could introduce malicious dependencies
npx -y skills add majiayu000/claude-skill-registry-data --skill cli-cost-usage --agent claude-codeAre you the author of Cli Cost Usage?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/majiayu000-cli-cost-usage)---
name: cli-cost-usage
description: View cost breakdowns, token usage, and call logs from the CLI. Filter by provider, model, or date range. Export usage reports and inspect per-connection spending.
---
<!-- generated by src/lib/agentSkills/generator.ts; manual edits will be overwritten -->
## Overview
View cost breakdowns, token usage, and call logs from the CLI. Filter by provider, model, or date range. Export usage reports and inspect per-connection spending.
## Quick install
```bash
npm install -g nextroute # or: npx nextroute
nextroute --version
```
## Subcommands
### `cost`
**Flags:**
- `--period <range>`
- `--since <date>`
- `--until <date>`
- `--group-by <field>`
- `--api-key <key>`
- `--limit <n>`
**Example:**
```bash
nextroute cost
```
### `pricing`
**Example:**
```bash
nextroute pricing
```
### `pricing sync`
**Flags:**
- `--provider <p>`
- `--force`
**Example:**
```bash
nextroute pricing sync
```
### `pricing list`
**Flags:**
- `--provider <p>`
- `--model <m>`
- `--limit <n>`
**Example:**
```bash
nextroute pricing list
```
### `pricing get <model>`
**Example:**
```bash
nextroute pricing get <model>
```
### `pricing defaults`
**Example:**
```bash
nextroute pricing defaults
```
### `pricing show`
**Example:**
```bash
nextroute pricing show
```
### `pricing set`
**Flags:**
- `--input <p>`
- `--output <p>`
- `--cache-read <p>`
- `--cache-write <p>`
**Example:**
```bash
nextroute pricing set
```
### `pricing diff`
**Flags:**
- `--model <m>`
**Example:**
```bash
nextroute pricing diff
```
### `usage`
**Example:**
```bash
nextroute usage
```
### `usage analytics`
**Flags:**
- `--period <range>`
- `--provider <id>`
**Example:**
```bash
nextroute usage analytics
```
### `usage budget`
**Example:**
```bash
nextroute usage budget
```
### `usage list`
**Example:**
```bash
nextroute usage list
```
### `usage get [scope]`
**Example:**
```bash
nextroute usage get [scope]
```
### `usage set <amount>`
**Flags:**
- `--scope <s>`
- `--period <p>`
**Example:**
```bash
nextroute usage set <amount>
```
### `usage reset [scope]`
**Example:**
```bash
nextroute usage reset [scope]
```
### `usage quota`
**Flags:**
- `--provider <id>`
- `--check`
**Example:**
```bash
nextroute usage quota
```
### `usage logs`
**Flags:**
- `--limit <n>`
- `--search <q>`
- `--since <ts>`
- `--follow`
- `--api-key <k>`
**Example:**
```bash
nextroute usage logs
```
### `usage utilization`
**Flags:**
- `--api-key <k>`
**Example:**
```bash
nextroute usage utilization
```
### `usage history`
**Flags:**
- `--limit <n>`
**Example:**
```bash
nextroute usage history
```
### `usage proxy-logs`
**Flags:**
- `--limit <n>`
**Example:**
```bash
nextroute usage proxy-logs
```
Attribution
Related skills
View all in ai-agents →Comments
Loading comments…
Newsletter
Get the weekly list of safe new skills, and the ones we pulled.