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.
npx skills add CrestApps/CrestApps.AgentSkills --skill orchardcore-ai-usage-analyticsgit clone --depth 1 https://github.com/CrestApps/CrestApps.AgentSkillsWrote 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.
[](https://agentmods.dev/skills/crestapps/crestapps.agentskills/orchardcore-ai-usage-analytics)<a href="https://agentmods.dev/skills/crestapps/crestapps.agentskills/orchardcore-ai-usage-analytics"><img src="https://agentmods.dev/badge/skills/crestapps/crestapps.agentskills/orchardcore-ai-usage-analytics/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/crestapps/crestapps.agentskills/orchardcore-ai-usage-analytics"><img src="https://agentmods.dev/badge/skills/crestapps/crestapps.agentskills/orchardcore-ai-usage-analytics.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00222 | $0.03950 |
| Opus 5.5 | $0.00089 | $0.01580 |
| Sonnet 5.5 | $0.00044 | $0.00790 |
| Haiku 4.5 | $0.00022 | $0.00395 |
Grade A, and why
orchardcore-ai-usage-analytics 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 5d 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.
How it starts
The opening of the file, as written. The whole thing — 297 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Orchard Core AI Usage Analytics
Every AI client the site creates through IAIClientFactory meters its own requests, whatever the
provider and whatever the kind (chat, embeddings, images, speech-to-text, text-to-speech, realtime), while
the AI Usage Analytics feature is enabled. Its report shows those records per model, category and
purpose, audio usage, chat completions and automated voice calls, with an estimated cost from the prices set
on each deployment.
Setup
| Item | Value |
|---|---|
| Feature | AI Usage Analytics, CrestApps.OrchardCore.AI.UsageAnalytics (in the CrestApps.OrchardCore.AI.Chat package; depends on CrestApps.OrchardCore.AI.Chat and CrestApps.OrchardCore.Reports) |
| Report | Reports > Billing & Usage > AI Usage Analytics (/Admin/Reports/view/ai-usage-analytics, AIUsageAnalyticsReport) |
| Permission | ViewChatAnalytics (granted to Administrator by default) |
| Exports | CSV, Excel with Reports (OpenXml), PDF with Reports (PDF) |
Usage is recorded only while the feature is on (its startup calls AddCoreAIUsageTracking()); nothing used
before it was enabled can be reported. There is no tracking checkbox any more.
{
"steps": [
{
"name": "Feature",
"enable": [
"CrestApps.OrchardCore.AI.UsageAnalytics",
"CrestApps.OrchardCore.AI.Chat.Analytics"
],
"disable": []
}
]
}
CrestApps.OrchardCore.AI.Chat.Analytics (AI Chat Session Analytics) registers the usage and voice
summary index tables and the store that persists voice session summaries; without it automated calls leave
no voice summary and the Report Builder data sets below are not listed.
What the report shows
| Section | Contents | Group by |
|---|---|---|
| Metered usage | One row per request sent to a provider: planning, query rewriting, each tool-calling step, image descriptions and each embedding batch count separately. Cached responses add nothing. Est. cost, Cache writes and Other usage columns, and the estimated total per currency above the table | Model, Model and category, Model and purpose |
| Audio usage | Speech-to-text and text-to-speech: requests, hours, speech hours, characters, audio in and out, segments, tokens, Est. cost. An asterisk on hours means some requests reported no length, so the figure is a minimum | Model, Model and voice, Model and language |
| Completions | Chat completions that belong to a chat session or chat interaction: calls, sessions, interactions, tokens, average latency, Est. cost | User and model, Model, Deployment, AI profile, Connection |
| Voice | One summary per automated AI call: calls, AI, caller and silence minutes, average call, handoff rate, barge-ins, text and audio tokens, answer and model latency | Deployment (model), AI profile, Campaign, Channel, Engine, Day |
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.
- 5d ago Changed 131060a4de59
- 13d ago Changed · +22 lines · +3 tokens per session ad123d486426
- 26d ago Changed · +81 lines · -5 tokens per session 4dbf8a9ef692
- 1mo ago First seen · 194 lines · 224 tokens per session scan A 3b088572ecb1
orchardcore-ai-usage-analytics is a skill published in the GitHub repository CrestApps/CrestApps.AgentSkills (14 stars, last pushed 5d ago), licensed MIT. It adds 222 tokens to every session and 3,950 once invoked, about $0.0009 per session on Opus 5.5. 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-10-22.
orchardcore-ai-usage-analytics compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| orchardcore-ai-usage-analyticsCrestApps/CrestApps.AgentSkills | Skill | 14 | 5d ago | MIT | A | 222 | Claude Code |
| local-ai-agentsmicrosoft/ai-agents-for-beginners | Skill | 82k | today | MIT | A | 200 | Claude Code, Codex |
| imagegenopenai/codex | Skill | 137k | today | Apache-2.0 | A | 113 | Codex |
| playwright-climicrosoft/playwright | Skill | 102k | today | Apache-2.0 | A | 19 | Claude Code |
| browser-automationopenclaw/openclaw | Skill | 396k | today | MIT | A | 36 | Claude Code |
| free-llm-apismnfst/awesome-free-llm-apis | Skill | 15k | today | CC0-1.0 | A | 113 | Claude Code, Codex |
| next-cache-components-adoptionvercel/next.js | Skill | 144k | today | MIT | A | 95 | Claude Code |