# CLI Cost Usage

> ---

- Skill: `jaccen/cli-cost-usage` (Agent Skill)
- Install (CLI): `npx skillmds@latest add jaccen/cli-cost-usage`
- Raw SKILL.md: https://api.skillmd.com/api/skills/jaccen/cli-cost-usage/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: jaccen (https://skillmd.com/u/jaccen)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/jaccen/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 AIRoute   # or: npx AIRoute
AIRoute --version
```

## Subcommands

### `cost`

**Flags:**

- `--period <range>`
- `--since <date>`
- `--until <date>`
- `--group-by <field>`
- `--api-key <key>`
- `--limit <n>`

**Example:**

```bash
AIRoute cost
```

### `pricing`

**Example:**

```bash
AIRoute pricing
```

### `pricing sync`

**Flags:**

- `--provider <p>`
- `--force`

**Example:**

```bash
AIRoute pricing sync
```

### `pricing list`

**Flags:**

- `--provider <p>`
- `--model <m>`
- `--limit <n>`

**Example:**

```bash
AIRoute pricing list
```

### `pricing get <model>`

**Example:**

```bash
AIRoute pricing get <model>
```

### `pricing defaults`

**Example:**

```bash
AIRoute pricing defaults
```

### `pricing show`

**Example:**

```bash
AIRoute pricing show
```

### `pricing set`

**Flags:**

- `--input <p>`
- `--output <p>`
- `--cache-read <p>`
- `--cache-write <p>`

**Example:**

```bash
AIRoute pricing set
```

### `pricing diff`

**Flags:**

- `--model <m>`

**Example:**

```bash
AIRoute pricing diff
```

### `usage`

**Example:**

```bash
AIRoute usage
```

### `usage analytics`

**Flags:**

- `--period <range>`
- `--provider <id>`

**Example:**

```bash
AIRoute usage analytics
```

### `usage budget`

**Example:**

```bash
AIRoute usage budget
```

### `usage list`

**Example:**

```bash
AIRoute usage list
```

### `usage get [scope]`

**Example:**

```bash
AIRoute usage get [scope]
```

### `usage set <amount>`

**Flags:**

- `--scope <s>`
- `--period <p>`

**Example:**

```bash
AIRoute usage set <amount>
```

### `usage reset [scope]`

**Example:**

```bash
AIRoute usage reset [scope]
```

### `usage quota`

**Flags:**

- `--provider <id>`
- `--check`

**Example:**

```bash
AIRoute usage quota
```

### `usage logs`

**Flags:**

- `--limit <n>`
- `--search <q>`
- `--since <ts>`
- `--follow`
- `--api-key <k>`

**Example:**

```bash
AIRoute usage logs
```

### `usage utilization`

**Flags:**

- `--api-key <k>`

**Example:**

```bash
AIRoute usage utilization
```

### `usage history`

**Flags:**

- `--limit <n>`

**Example:**

```bash
AIRoute usage history
```

### `usage proxy-logs`

**Flags:**

- `--limit <n>`

**Example:**

```bash
AIRoute usage proxy-logs
```

