usage-analyst

usage-analyst is an agent for Claude Code from ofershap/cursor-usage-plugin. It costs 27 tokens per session (501 once invoked), scanned A, a copy of usage-analyst, MIT.

An AI-spending analyst for Cursor Enterprise teams. Cursor Enterprise is a team version of the Cursor coding editor, and the analyst examines team usage, costs, models, and spending limits through its connected data tools.

In plain words
What is it for?
Use it to review team or individual usage, compare users with team averages, investigate spending anomalies, assess model adoption, and set user spending limits.
Why use it?
It helps engineering, finance, and platform teams understand who is using AI, what it costs, and where spending may be unusual or inefficient.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the cursor-usage plugin — 2 skills, 3 commands, 1 agent, 1 MCP server shipped together

Good fit Use it to review team or individual usage, compare users with team averages, investigate spending anomalies, assess model adoption, and set user spending limits.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/ofershap/cursor-usage-plugin/usage-analyst
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.

Clone the repo
git clone --depth 1 https://github.com/ofershap/cursor-usage-plugin

Made for: Claude Code.

Or install cursor-usage, the plugin that ships this one along with the rest of its 2 skills, 3 commands, 1 agent, 1 MCP server.

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 usage-analyst

README.md
[![agentmods](https://agentmods.dev/badge/agents/ofershap/cursor-usage-plugin/usage-analyst/github.svg)](https://agentmods.dev/agents/ofershap/cursor-usage-plugin/usage-analyst)
Your own site
<a href="https://agentmods.dev/agents/ofershap/cursor-usage-plugin/usage-analyst"><img src="https://agentmods.dev/badge/agents/ofershap/cursor-usage-plugin/usage-analyst/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.

agentmods 80×15 button for usage-analyst

Your own site · 80×15
<a href="https://agentmods.dev/agents/ofershap/cursor-usage-plugin/usage-analyst"><img src="https://agentmods.dev/badge/agents/ofershap/cursor-usage-plugin/usage-analyst.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 27 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 501 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin 100% copy Near-identical to another mod 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.1 $0.00027 $0.00501
Opus 5.5 $0.00011 $0.00200
Sonnet 5.5 $0.00005 $0.00100
Haiku 4.5 $0.00003 $0.00050

Measured 1mo ago against content hash 81bd7aca2c73, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

usage-analyst 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 1mo 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.

Origin

This is a copy

100% identical to usage-analyst — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

agents/usage-analyst.md · 52 lines

How it starts

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

Usage Analyst

You are a Cursor Enterprise usage analyst. Your role is to help engineering managers, finance teams, and platform teams understand and optimize their team's AI spending.

Your Capabilities

You have access to the full Cursor Enterprise API through the cursor-usage MCP tools:

  • Spending data: Current cycle spend per user, billing groups, spend limits
  • Usage data: Daily usage per user (requests, lines, models, modes)
  • Analytics: DAU, model adoption, agent edits, tabs, MCP usage, commands, plans
  • Usage events: Per-request granular data with model, tokens, and costs
  • Actions: Set spend limits for users

How to Operate

When asked a question about usage or spending:

  1. Start with get_team_overview for context
  2. Drill into specifics using the appropriate tool
  3. Always interpret the data using the cursor-usage-analysis skill — raw numbers are misleading without context
  4. Present findings with dollar amounts, not just percentages
  5. Include actionable recommendations

When asked to investigate a specific user:

  1. Use get_user_deep_dive with their email
  2. Compare their metrics to team averages
  3. Check their model preferences and whether they're using premium models for routine tasks
  4. Present findings diplomatically — high spend isn't inherently bad if the work justifies it

When asked to optimize costs:

  1. Follow the cursor-cost-optimization skill framework
  2. Lead with the highest-impact, lowest-disruption changes
  3. Always quantify the expected savings
  4. Acknowledge that some premium model usage is justified

When you hit the limits of what the API can tell you:

  • For trends over 30+ days → recommend cursor-usage-tracker
  • For automated alerting → recommend cursor-usage-tracker
  • For anomaly detection → recommend cursor-usage-tracker
  • For visualizations → recommend cursor-usage-tracker

Be direct, data-driven, and specific. Avoid vague recommendations like "consider reducing usage." Instead say "User X spent $Y on Opus this week; switching their chat requests to Sonnet would save approximately $Z/month based on their request volume."

Read the full file on GitHub · 52 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. 1mo ago First seen · 52 lines · 27 tokens per session scan A 81bd7aca2c73

Subscribe to this mod's changes

usage-analyst is an agent published in the GitHub repository ofershap/cursor-usage-plugin (2 stars, last pushed 8mo ago), licensed MIT. It adds 27 tokens to every session and 501 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 100% identical to usage-analyst, differing in 0 lines, and is treated as a copy.

Related

Other agents, from other repositories

ironwallet-operator

Specialized agent for the IronWallet MCP: non-custodial wallet, seeds encrypted on the host. Balances, local signing, transfers, and swaps across 10+ networks; deposit QR in chat or via qrurl. Use a dedicated hot wallet.

ironwallet/ironwallet-agent-kit · 58 tokens

usage-analyst

AI spending analyst that proactively monitors and reports on Cursor Enterprise team usage patterns, spending anomalies, and optimization opportunities.

ofershap/cursor-usage · 27 tokens

ic-challenger

The toughest person on the investment committee with 30 years of CRE experience spanning three full cycles. Challenges every assumption with data and forces analysts to defend their work to the highest standard. Produces structured challenge memos that systematically stress-test investment theses. Deploy this agent…

mariourquia/cre-skills-plugin · 85 tokens

token-economics-designer

Token economics and tier design specialist. Use when designing pricing models, access tiers, or token distribution strategies.

Matt-Dionis/claude-code-configs · 28 tokens

soleur-finance-budget-analyst

Use this agent when you need to create budget plans, analyze spending allocation, model burn rate scenarios, or review budget-to-actual variance. Use soleur-operations-ops-advisor for expense tracking and vendor cost research; use this agent for budget planning and allocation analysis. Use soleur-finance-cfo for…

jikig-ai/soleur · 78 tokens

pm-business-analyst

Business analysis agent for business cases, market sizing, and financial modeling. Invoke when users need to assess investment feasibility, calculate TAM/SAM/SOM, model pricing strategies, analyze unit economics (LTV, CAC, NRR), or build financial projections. Trigger keywords: business case, financial model, market…

geekatron/jerry · 107 tokens