/openai-admin:spend-reviewfrom openai-admin
Analyzes OpenAI Admin cost reports to produce per-client spend reviews: daily cost by project/user/API key, token/request volume, month-over-month comparisons, spike attribution, and rate-limit headroom for 429 troubleshooting.
Ships in openai-admin. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
openai_admin_costs is the money view: daily cost buckets, optionally
broken down by project, user, line item, API key, or API source. The ten
usage tools are the volume view behind it (tokens, requests, images,
seconds of audio, storage). A spend review starts from cost, then uses
usage only to explain the lines that matter.
None of these tools are admin-gated in Conduit; a read grant on OpenAI
Admin is enough for everything in this skill.
| Tool | Measures | Groupable by |
|---|---|---|
openai_admin_costs | Cost per day (amount.value in amount.currency, normally USD) | project_id, user_id, line_item, api_key_id, api_source |
openai_admin_usage_completions | Input, cached, output, and audio tokens; request counts | project_id, user_id, api_key_id, model, batch, service_tier, api_source |
openai_admin_usage_embeddings | Embedding tokens | project_id, user_id, api_key_id, model |
openai_admin_usage_moderations | Moderation tokens | project_id, user_id, api_key_id, model |
openai_admin_usage_images | Images generated, edited, varied | project_id, user_id, api_key_id, model, size, source |
openai_admin_usage_audio_speeches | Text-to-speech characters | project_id, user_id, api_key_id, model |
openai_admin_usage_audio_transcriptions | Seconds of audio transcribed | project_id, user_id, api_key_id, model |
openai_admin_usage_vector_stores | Vector store bytes | project_id |
openai_admin_usage_code_interpreter_sessions | Code interpreter sessions | project_id |
openai_admin_usage_file_search_calls | File search calls | project_id, user_id, api_key_id, vector_store_id |
openai_admin_usage_web_search_calls | Web search calls | project_id, user_id, api_key_id, model, context_level, api_source |
All times are UTC Unix seconds; start_time is required and end_time
is exclusive. Cost is daily only.
openai_admin_costs with start_time, end_time, limit: 31,
group_by: ["project_id"]. Follow next_page while has_more.amount.value per project_id across the daily buckets.openai_admin_projects_list (with include_archived: true, since
spend can land on a project archived mid-month) to turn project IDs
into names.Report rows that come back with no project_id as "unattributed"
rather than dropping them; they are still the client's money.
openai_admin_costs with group_by: ["project_id", "line_item"] over
the spike window plus the same length before it. The line item names
the model and direction (for example input vs output) that moved.openai_admin_usage_completions
with bucket_width: "1h", project_ids: [...], and
group_by: ["api_key_id", "model"] to find the key and the hour it
started.Use "1h" buckets for a few days at most (168 per page); use "1d" for
anything longer.
openai_admin_usage_completions with group_by: ["user_id"] over the
month, then openai_admin_users_list to map IDs to emails. Usage made
through a service account's key has no user; group by api_key_id as
well to see it.
openai_admin_project_rate_limits_list for the client's project returns
the per-model request, token, and image limits. Compare them with the
peak hour from openai_admin_usage_completions (bucket_width: "1h",
group_by: ["model"]). Raising a limit or the organization's usage tier
is done in the OpenAI dashboard, not here.
project_id, user_id, and
api_key_id are null unless they are in group_by. Always group when
the answer has to name a client.limit counts buckets. A 31-day month needs limit: 31 on daily
buckets, or two pages at the default of 7 is not "the month".truncated: true, repeat with a smaller limit; do not page on from
next_page.batch or
service_tier before comparing token volume to cost between months.What SKILL.md sets; muted values are Claude Code's defaults
When reviewing what a client's OpenAI organization costs, attributing spend to client projects or people for chargeback, explaining a cost spike, or preparing AI spend for a QBR. Use when: openai spend, openai cost, openai bill, openai usage by project, openai chargeback, token usage, gpt cost, openai qbr, openai spike, or openai rate limit headroom.
Three short reads, in order
npx claudepluginhub wyre-ai/msp-claude-plugins --plugin openai-admin4 skills in this plugin
/api-patternsOpenAI Admin API PatternsOpenAI Admin MCP fundamentals: the Admin key sent as the `X-OpenAI-Admin-Key` header through Conduit, the 30-tool read-only surface and which five tools Conduit admin-gates, the two pagination styles (object cursors for lists, page tokens for usage and cost reports), Unix-second time ranges, truncated pages, and the error and 429 shapes the server returns.
/seat-key-inventoryOpenAI Admin Seat and Key InventoryBuilding the access inventory of a client's OpenAI organization: organization members and their roles, pending and expired invites, projects and their members, service accounts, project API keys and Admin keys with owner and last-used dates, and how to reconcile that inventory against the client's staff list to find stale seats and orphaned keys.
/security-reviewOpenAI Admin Security ReviewSecurity and offboarding review of a client's OpenAI organization from the audit log (logins, membership and role changes, key and project lifecycle), the key inventory (keys left behind by removed users, unused and over-privileged Admin keys), and mTLS certificate expiry, plus how to scope an incident question to an actor, a project, or a time window.
Other plugins' skills for the same job