sipcode-spend

sipcode-spend is a skill for Claude Code from Anuj7411/sipcode. It costs 81 tokens per session (1,237 once invoked), scanned A, original, MIT.

A local-log reporting workflow for Codex that uses Sipcode to calculate token use and cost at API prices over a day, month, projected month end, or chosen period.

In plain words
What is it for?
It reports Codex spending, token totals, and month-end projections for requested time ranges.
Why use it?
It gives a record of usage and spending based on the user's own Codex logs rather than an estimate from memory.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: positional $N argument; reads ~/.codex paths; mentions Codex.

Part of the sipcode plugin — 8 skills, 1 MCP server shipped together

Good fit It reports Codex spending, token totals, and month-end projections for requested time ranges.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/anuj7411/sipcode/sipcode-spend
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.

Any agent
npx skills add Anuj7411/sipcode --skill sipcode-spend
Clone the repo
git clone --depth 1 https://github.com/Anuj7411/sipcode

Made for: Claude Code.

Or install sipcode, the plugin that ships this one along with the rest of its 8 skills, 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 sipcode-spend

README.md
[![agentmods](https://agentmods.dev/badge/skills/anuj7411/sipcode/sipcode-spend/github.svg)](https://agentmods.dev/skills/anuj7411/sipcode/sipcode-spend)
Your own site
<a href="https://agentmods.dev/skills/anuj7411/sipcode/sipcode-spend"><img src="https://agentmods.dev/badge/skills/anuj7411/sipcode/sipcode-spend/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 sipcode-spend

Your own site · 80×15
<a href="https://agentmods.dev/skills/anuj7411/sipcode/sipcode-spend"><img src="https://agentmods.dev/badge/skills/anuj7411/sipcode/sipcode-spend.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 81 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,237 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 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.1 $0.00081 $0.01237
Opus 5.5 $0.00032 $0.00495
Sonnet 5.5 $0.00016 $0.00247
Haiku 4.5 $0.00008 $0.00124

Measured 3d ago against content hash 6d04fa995a7d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

sipcode-spend 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.

plugins/sipcode/skills/sipcode-spend/SKILL.md · 44 lines

How it starts

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

Codex spend

Answer from the user's own Codex logs on this computer, through the published sipcode command. Explicit instructions from the user take priority over this skill.

Run Sipcode

  1. Run the command for the question below straight away. Do not check the Sipcode version first: every extra command is another request that re-sends this whole chat. If the shell says sipcode is not found or not recognized, tell the user: "Sipcode is not installed. Run npm i -g sipcode once in a terminal, then ask again." and stop. If Sipcode says the command or an option is unknown, tell the user: "Your Sipcode is older than this plugin. Run npm i -g sipcode@latest, then ask again." and stop. Do not try npx (the sandbox usually blocks network access) and do not install anything yourself.
  2. Sipcode reads ~/.codex (or the folder CODEX_HOME points to). If the sandbox blocks that folder (a permission error, or a result that says no sessions while the user clearly uses Codex), request permission to run the same command again with read access to that folder, for example by running it outside the sandbox. Do not report an empty result caused by the sandbox.
  3. Never open, read, search or summarise the log files yourself, and never paste their contents. Work only from Sipcode's output.

Pick one command

The user asks about Run
today sipcode today --agent codex --json
this month, month end, "what will this month cost" sipcode forecast --agent codex --json
a period: last 7 days, since a date, all time sipcode stats --agent codex --since 7d --json (use 7d, 30d, 90d, all or a yyyy-mm-dd date)

Run it once. Lines Sipcode prints on stderr that start with note: are part of the answer. If Sipcode prints a line starting "warning:" that log files could not be read, say it first in your answer, as printed: the numbers leave those logs out. With --json the same thing comes on stderr as a note: that log files or folders could not be read or parsed, or that compressed logs were skipped: say that first too.

Read the full file on GitHub · 44 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 Changed 6d04fa995a7d
  2. 4d ago Changed · +9 lines bf97533e251d
  3. 6d ago First seen · 35 lines · 81 tokens per session scan A e5cc3c03c5ea

Subscribe to this mod's changes

sipcode-spend is a skill published in the GitHub repository Anuj7411/sipcode (46 stars, last pushed 2d ago), licensed MIT. It adds 81 tokens to every session and 1,237 once invoked, about $0.0003 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-13.

Related

Other skills, from other repositories

loongsuite-pilot-insight

A reporting workflow for turning LoongSuite Pilot and AI coding-agent logs into structured reports about events, teams, data quality, development efficiency, and AI use. It defines the meaning of the log fields and the measurements used in dashboards.

alibaba/loongsuite-pilot · 91 tokens

finance-ops

Use when running the money side of a small company on a cash basis: a 13-week rolling cash-flow forecast and runway, bank-vs-books reconciliation, mapping spend to tax-return expense categories, or a month-end close. NOT posting journal entries, payroll or depreciation (that is bookkeeping); NOT multi-year projections…

ericrisco/rsc-harness · 77 tokens

investor-materials

Use when packaging or circulating the documents an investor reads outside the meeting — setting up or cleaning a data room, writing the one-pager or teaser that earns the first meeting, or drafting the recurring monthly investor update. NOT the slide narrative (that is pitch-deck), NOT the projection spreadsheet (that…

ericrisco/rsc-harness · 87 tokens

procurement

Use when a small operator must choose what to buy and from whom: pick a supplier, write an RFI/RFQ/RFP that returns comparable bids, score quotes on total cost of ownership, negotiate price and payment terms, or judge single-source risk. NOT redlining the purchase agreement (that is contracts), NOT the price you…

ericrisco/rsc-harness · 92 tokens

memstack-business-invoice-generator

Use this skill when the user says 'invoice', 'generate invoice', 'create invoice', 'bill client', 'line items', 'payment terms', or needs professional invoices with tax calculations and payment instructions. Do NOT use for contracts or financial projections.

cwinvestments/memstack · 57 tokens

memstack-business-financial-model

Use this skill when the user says 'financial model', 'projections', 'revenue forecast', 'unit economics', 'break-even', 'cash flow', or mentions MRR, churn, CAC, LTV, or runway. Builds monthly projections with scenario modeling. Do NOT use for pricing strategy or invoice generation.

cwinvestments/memstack · 71 tokens