monthly

monthly is a command for coding agents from omrikais/cctally. It costs 0 tokens per session (660 once invoked), scanned A, original, Apache-2.0.

A report that groups Claude usage by calendar month and works without an internet connection. It is a drop-in replacement for the similarly named ccusage command.

In plain words
What is it for?
Use it to filter months by date, sort them, view totals by model, choose how costs are calculated or displayed, and export machine-readable JSON.
Why use it?
It makes longer-term usage easier to review without manually adding daily records. Its cost totals come from conversation transcripts and are lower-bound estimates, not the provider’s exact billing totals.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/omrikais/cctally/monthly
Clone the repo
git clone --depth 1 https://github.com/omrikais/cctally

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for monthly

README.md
[![agentmods](https://agentmods.dev/badge/commands/omrikais/cctally/monthly.svg)](https://agentmods.dev/commands/omrikais/cctally/monthly)
Your own site
<a href="https://agentmods.dev/commands/omrikais/cctally/monthly"><img src="https://agentmods.dev/badge/commands/omrikais/cctally/monthly.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 660 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.00660
Opus 5 $0.00000 $0.00330
Sonnet 5 $0.00000 $0.00132
Haiku 4.5 $0.00000 $0.00066

Measured 3d ago against content hash b6f065e1fe2c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

monthly scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

docs/commands/monthly.md · 59 lines

How it starts

The opening of the file, as written. The whole thing — 59 lines — stays where its author put it; the contents beside it link to each section on GitHub.

monthly

Claude usage grouped by calendar month. Drop-in replacement for ccusage monthly, offline.

Cost coverage: Claude dollar and token totals are transcript-derived lower bounds, not exact /usage billing totals.

Canonical form: cctally claude monthly (this flat form remains as an alias).

Synopsis

cctally monthly
    [-s YYYYMMDD] [-u YYYYMMDD]
    [-b] [-o {asc,desc}]
    [-m {auto,calculate,display}]
    [--json]

Options

Flag Description
-s, --since YYYYMMDD Filter from date (inclusive).
-u, --until YYYYMMDD Filter until date (inclusive).
-b, --breakdown Show per-model cost breakdown sub-rows.
-o, --order {asc,desc} Sort direction by month (default asc).
-m, --mode {auto,calculate,display} Cost source (drop-in for ccusage monthly --mode). auto (default) uses the recorded costUSD from JSONL when present, else computes from embedded pricing — this is the pre-Session-C behavior. calculate always computes from embedded pricing, ignoring any recorded costUSD. display shows the recorded costUSD only, rendering $0.00 when a row has none (ccusage-faithful). Most modern Claude Code JSONL omits costUSD, so under display near-everything reports $0.
--tz TZ Display timezone for this call (local, utc, or IANA, e.g. America/New_York). Overrides config display.tz. See Display timezone for the full contract (parsing scope, JSON UTC invariant).
--json Output JSON matching ccusage monthly format.

Examples

cctally monthly --since 20260101
cctally monthly --since 20260101 --until 20260331
cctally monthly --since 20260101 --breakdown
cctally monthly --since 20260101 --json
cctally monthly --order desc

Notes

  • Calendar months — UTC-bucketed. If you live in a non-UTC zone and want local-month bucketing, post-process the JSON.
  • Cost recomputes on every read (same semantics as daily).

Read the full file on GitHub · 59 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 59 lines · 0 tokens per session scan A b6f065e1fe2c

Subscribe to this mod's changes

monthly is a command published in the GitHub repository omrikais/cctally (5 stars, last pushed 5d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 660 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.