Skip to content
Back to skills

Usage

ASecurity

Read token usage, costs and subscription list-price equivalents by model, origin, source or brain

  • 15 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 9, 2026
ai-agentsbashapi

Works with

  • cli
  • api

Security analysis

A100/100

Pro scans all 3 files and shows the line behind each finding

Scanned November 9, 2026

npx -y skills add istota-project/istota --skill usage --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Usage?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Usage
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/istota-project-usage/badge)](https://www.skillsdirectory.com/skills/istota-project-usage)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: usage
description: Read token usage, costs and subscription list-price equivalents by model, origin, source or brain
cli: true
shared_room: private
egress: local
---
# Usage

Read recorded usage directly when asked about token counts, spending, or what subscription usage would cost at API list prices. Every response is JSON; `--json` is accepted explicitly too.

```bash
istota-skill usage --days 30 --by model --json
istota-skill usage --since 2026-08-01 --until 2026-08-31 --by origin
istota-skill usage --days 7 --by source
istota-skill usage --days 30 --by brain
```

The default window is the last 30 days. Dates are UTC; `--until` includes the whole date. Choose `--days` or `--since`. Without `--by`, the response has one totals group.

Members see only their own usage. Admins see all usage by default and may use `--user alice` to narrow it or `--by user` to compare users. Both options are refused for non-admins. Usage is personal data and is unavailable to a task whose room withholds scopes.

Each group includes token totals, cache hit rate, context measurements and `cost_by_basis`. Interpret each cost basis separately:

- `api`: recorded API cost.
- `subscription`: list-price equivalent of the recorded usage, not an amount billed or the subscription fee. Use this for questions about what the same usage would cost on the API, and label it as a list-price equivalent.
- `estimated`: catalog estimate, not a recorded bill; an unknown model can have a zero estimate.

Always report `unmeasured_tasks` when it is nonzero. Those are prompt tasks that recorded no usage, so the totals are incomplete; command and skill jobs call no model and are not counted, and neither are tasks that have not run yet. Completed tasks are deleted after a retention period much shorter than usage records, so the count covers only the tasks since `unmeasured_since`. When that is later than `since`, say so. `null` means the window ends before the task-retention cutoff and the count is unknown, not zero. Rows can include retries and calls outside tasks, so a row count is not a task count. The response covers retained records only. Do not present subscription or estimated costs as actual spending or mix them into an API bill.

Files in this skill

  • __init__.py2.7 KB
  • __main__.py222 B
  • skill.md2.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.