accounts

accounts is a command for Claude Code from sophymarine/openregistry. It costs 52 tokens per session (433 once invoked), scanned A, original, Apache-2.0.

A financial-records extractor that reads statutory accounts filed with government registries. Statutory accounts are the financial statements companies are required to submit.

In plain words
What is it for?
Use it to find revenue, profit, EBITDA, assets, liabilities, equity, cash, employees, and dividends for recent years.
Why use it?
It saves you from downloading filings and manually searching them for key figures, while preserving the original documents and their data labels.

Command for Claude Code

Written for Claude Code: argument-hint in frontmatter. Also seen: positional $N argument.

Part of the openregistry plugin — 35 skills, 6 commands, 1 MCP server shipped together

Good fit Use it to find revenue, profit, EBITDA, assets, liabilities, equity, cash, employees, and dividends for recent years.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/sophymarine/openregistry/accounts
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/sophymarine/openregistry

Made for: Claude Code.

Or install openregistry, the plugin that ships this one along with the rest of its 35 skills, 6 commands, 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 accounts

README.md
[![agentmods](https://agentmods.dev/badge/commands/sophymarine/openregistry/accounts.svg)](https://agentmods.dev/commands/sophymarine/openregistry/accounts)
Your own site
<a href="https://agentmods.dev/commands/sophymarine/openregistry/accounts"><img src="https://agentmods.dev/badge/commands/sophymarine/openregistry/accounts.svg" alt="Measured on agentmods" height="20"></a>
Per session 52 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 433 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.00052 $0.00433
Opus 5 $0.00026 $0.00217
Sonnet 5 $0.00010 $0.00087
Haiku 4.5 $0.00005 $0.00043

Measured 8d ago against content hash a8327a8d106c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

accounts 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 8d 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.

commands/accounts.md · 25 lines

What it actually says

Pull the last $3 year(s) (default 1) of financial statements for "$1" in $2 using OpenRegistry. Every document is returned unmodified — the actual bytes the company filed with the government.

Step 1 — Resolve search_companies + get_company_profile → canonical company_id.

Step 2 — Access path FI or KR: use get_financials (native XBRL). Others: list_filings({ category: "accounts", limit: ${3:-1} })fetch_document. FR / DE / ES accounts may be behind paid upstream portals — surface alternative_url + cost if paywalled.

Step 3 — Fetch bytes get_document_metadata + fetch_document for each filing. GB returns XHTML iXBRL (machine-readable via <ix:nonFraction> tags carrying GAAP/IFRS concept URIs); KR returns DS003 fnlttXbrl.xml ZIP; IS returns free PDF.

Step 4 — Extract For each year: Revenue/Turnover · Cost of sales · Gross profit · Operating profit · EBITDA (derive from op profit + D&A) · PBT · Tax · Net income · Total assets · Current/non-current assets · Total/current/non-current liabilities · Equity · Cash · Avg employees · Dividends. Record XBRL concept URIs + currency + thousands/millions flag for every figure.

Step 5 — Deliver Single-year mode: statement with prior-year comparators. Multi-year mode: time series with YoY % changes. Plus: going-concern note, qualified audit opinion flag, micro-entity exemption flag (GB), filing-deadline status.

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. 8d ago First seen · 25 lines · 52 tokens per session scan A a8327a8d106c

Subscribe to this mod's changes

accounts is a command published in the GitHub repository sophymarine/openregistry (17 stars, last pushed today), licensed Apache-2.0. It adds 52 tokens to every session and 433 once invoked, about $0.0003 per session on Opus 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-08-30.